Record Detail

Wrong Answer

/in/ex1.c: In function 'main':
/in/ex1.c:12:13: warning: format '%f' expects argument of type 'float *', but argument 2 has type 'double' [-Wformat=]
     scanf("%f%f\n",creal(a),cimag(a));
             ^
/in/ex1.c:12:15: warning: format '%f' expects argument of type 'float *', but argument 3 has type 'double' [-Wformat=]
     scanf("%f%f\n",creal(a),cimag(a));
               ^
/in/ex1.c:15:13: warning: format '%f' expects argument of type 'float *', but argument 2 has type 'double' [-Wformat=]
     scanf("%f%f\n",creal(b),cimag(b));
             ^
/in/ex1.c:15:15: warning: format '%f' expects argument of type 'float *', but argument 3 has type 'double' [-Wformat=]
     scanf("%f%f\n",creal(b),cimag(b));
               ^
/in/ex1.c:9:26: warning: 'e' is used uninitialized in this function [-Wuninitialized]
     double complex a = d + e * _Complex_I;
                          ^
/in/ex1.c:9:26: warning: 'd' is used uninitialized in this function [-Wuninitialized]
/in/ex1.c:10:26: warning: 'g' is used uninitialized in this function [-Wuninitialized]
     double complex b = f + g * _Complex_I;
                          ^
/in/ex1.c:10:26: warning: 'f' is used uninitialized in this function [-Wuninitialized]
# Status Time Cost Memory Cost
#1 Wrong Answer 1ms 336.0 KiB
#2 Wrong Answer 0ms 248.0 KiB
#3 Wrong Answer 0ms 200.0 KiB
#4 Wrong Answer 1ms 328.0 KiB
#5 Wrong Answer 0ms 200.0 KiB
#6 Wrong Answer 0ms 324.0 KiB
#7 Wrong Answer 0ms 328.0 KiB
#8 Wrong Answer 0ms 256.0 KiB
#9 Wrong Answer 0ms 200.0 KiB
#10 Wrong Answer 1ms 356.0 KiB

Information

Submit By
Type
Submission
Problem
h4ex1: Structure, basic programming
Homework
Assignment 4
Language
C
Submit At
2018-06-21 12:51:57
Judged At
2018-06-21 12:51:57
Judged By
Score
0
Total Time
9ms
Peak Memory
356.0 KiB