Record Detail

Wrong Answer

/in/ex1.c: In function 'main':
/in/ex1.c:36:13: warning: format '%c' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
     scanf("%c",operation);
             ^
/in/ex1.c:37:19: warning: comparison between pointer and integer
     if (operation == "+") {
                   ^~
/in/ex1.c:37:19: warning: comparison with string literal results in unspecified behavior [-Waddress]
/in/ex1.c:40:19: warning: comparison between pointer and integer
     if (operation == "*"){
                   ^~
/in/ex1.c:40:19: warning: comparison with string literal results in unspecified behavior [-Waddress]
/in/ex1.c:36:5: warning: 'operation' is used uninitialized in this function [-Wuninitialized]
     scanf("%c",operation);
     ^~~~~~~~~~~~~~~~~~~~~
# Status Time Cost Memory Cost
#1 Wrong Answer 1ms 324.0 KiB
#2 Wrong Answer 1ms 256.0 KiB
#3 Wrong Answer 1ms 252.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 4
Language
C
Submit At
2018-06-23 18:06:30
Judged At
2018-06-23 18:06:30
Judged By
Score
0
Total Time
3ms
Peak Memory
324.0 KiB