Record Detail

Wrong Answer

/in/ex3.c: In function 'main':
/in/ex3.c:8:5: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
     gets(sentence);
     ^~~~
/in/ex3.c:16:17: warning: unused variable 'scnt' [-Wunused-variable]
     char b; int scnt = 0;
                 ^~~~
/in/ex3.c:16:10: warning: unused variable 'b' [-Wunused-variable]
     char b; int scnt = 0;
          ^
/in/ex3.c:9:10: warning: unused variable 'a' [-Wunused-variable]
     char a;int cnt = 0;
          ^
/in/ex3.c:27:12: warning: array subscript is below array bounds [-Warray-bounds]
         if (tmp != &sentence[cnt - 1]){
            ^
/tmp/ccY6yjF7.o: In function `main':
ex3.c:(.text.startup+0x27): warning: the `gets' function is dangerous and should not be used.
# Status Time Cost Memory Cost
#1 Accepted 0ms 332.0 KiB
#2 Accepted 0ms 320.0 KiB
#3 Accepted 0ms 244.0 KiB
#4 Accepted 0ms 348.0 KiB
#5 Accepted 0ms 332.0 KiB
#6 Wrong Answer 0ms 372.0 KiB
#7 Wrong Answer 0ms 324.0 KiB
#8 Wrong Answer 0ms 256.0 KiB
#9 Wrong Answer 1ms 360.0 KiB
#10 Wrong Answer 0ms 204.0 KiB

Information

Submit By
Type
Submission
Homework
Assignment 5
Language
C
Submit At
2018-06-27 23:46:56
Judged At
2018-06-27 23:46:56
Judged By
Score
50
Total Time
9ms
Peak Memory
372.0 KiB