Record Detail

Accepted

/in/ex1.c: In function 'main':
/in/ex1.c:22:5: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
     gets(ipt);
     ^~~~
/in/ex1.c:111:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
             printf("%d%di", z1.re, z1.im);
                      ^
/in/ex1.c:111:24: warning: format '%d' expects argument of type 'int', but argument 3 has type 'double' [-Wformat=]
             printf("%d%di", z1.re, z1.im);
                        ^
/in/ex1.c:113:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
             printf("%d+%di", z1.re, z1.im);
                      ^
/in/ex1.c:113:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'double' [-Wformat=]
             printf("%d+%di", z1.re, z1.im);
                         ^
/in/ex1.c:18:9: warning: unused variable 'a' [-Wunused-variable]
     int a=20;
         ^
/in/ex1.c:110:11: warning: 'z.im' may be used uninitialized in this function [-Wmaybe-uninitialized]
         if(z.im<0) {
           ^
/tmp/cc57XYZG.o: In function `main':
ex1.c:(.text.startup+0x23): warning: the `gets' function is dangerous and should not be used.
# Status Time Cost Memory Cost
#1 Accepted 1ms 248.0 KiB
#2 Accepted 1ms 248.0 KiB
#3 Accepted 0ms 332.0 KiB
#4 Accepted 0ms 328.0 KiB
#5 Accepted 0ms 256.0 KiB
#6 Accepted 0ms 324.0 KiB
#7 Accepted 0ms 200.0 KiB
#8 Accepted 0ms 256.0 KiB
#9 Accepted 0ms 200.0 KiB
#10 Accepted 0ms 196.0 KiB

Information

Submit By
Type
Submission
Problem
h4ex1: Structure, basic programming
Homework
Assignment 4
Language
C
Submit At
2018-06-21 01:33:01
Judged At
2018-06-21 01:33:02
Judged By
Score
100
Total Time
9ms
Peak Memory
332.0 KiB