Record Detail

Wrong Answer

/in/ex2.c: In function 'main':
/in/ex2.c:9:17: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char **' [-Wformat=]
     scanf ("%d %s",&month,firstday);
                 ^
/in/ex2.c:16:23: warning: passing argument 1 of 'whatday' from incompatible pointer type [-Wincompatible-pointer-types]
     int First=whatday(firstday);
                       ^~~~~~~~
/in/ex2.c:5:5: note: expected 'char *' but argument is of type 'char **'
 int whatday(char* firstday);
     ^~~~~~~
/in/ex2.c:11:10: warning: unused variable 'weekday' [-Wunused-variable]
     char*weekday[7]={"Sun","Mon","Tue","Wed","Thu","Fri","Sat",};
          ^~~~~~~
# Status Time Cost Memory Cost
#1 Wrong Answer 0ms 200.0 KiB
#2 Wrong Answer 0ms 324.0 KiB
#3 Wrong Answer 0ms 328.0 KiB
#4 Wrong Answer 0ms 200.0 KiB
#5 Wrong Answer 0ms 200.0 KiB
#6 Wrong Answer 0ms 204.0 KiB
#7 Wrong Answer 1ms 204.0 KiB
#8 Wrong Answer 1ms 248.0 KiB
#9 Wrong Answer 1ms 256.0 KiB
#10 Wrong Answer 0ms 256.0 KiB
#11 Wrong Answer 0ms 256.0 KiB
#12 Wrong Answer 1ms 328.0 KiB

Information

Submit By
Type
Submission
Homework
Assignment 5
Language
C
Submit At
2018-07-06 19:42:52
Judged At
2018-07-06 19:42:52
Judged By
Score
0
Total Time
11ms
Peak Memory
328.0 KiB