Record Detail

Wrong Answer

/in/ex3.c: In function 'main':
/in/ex3.c:5:52: warning: unused variable 'temp' [-Wunused-variable]
     char sentence[100],word[10],c;int i,n=0,flag=1,temp=0;size_t lw,ls;
                                                    ^~~~
/in/ex3.c:5:45: warning: unused variable 'flag' [-Wunused-variable]
     char sentence[100],word[10],c;int i,n=0,flag=1,temp=0;size_t lw,ls;
                                             ^~~~
/in/ex3.c:7:30: warning: iteration 10 invokes undefined behavior [-Waggressive-loop-optimizations]
     for(i=0;i<11;i++) word[i]=0;
                       ~~~~~~~^~
/in/ex3.c:7:5: note: within this loop
     for(i=0;i<11;i++) word[i]=0;
     ^~~
/in/ex3.c:6:35: warning: iteration 100 invokes undefined behavior [-Waggressive-loop-optimizations]
     for(i=0;i<101;i++) sentence[i]=0; //initialize the array
                        ~~~~~~~~~~~^~
/in/ex3.c:6:5: note: within this loop
     for(i=0;i<101;i++) sentence[i]=0; //initialize the array
     ^~~
# Status Time Cost Memory Cost
#1 Wrong Answer 0ms 332.0 KiB
#2 Wrong Answer 1ms 328.0 KiB
#3 Wrong Answer 0ms 332.0 KiB
#4 Wrong Answer 0ms 248.0 KiB
#5 Wrong Answer 0ms 332.0 KiB
#6 Wrong Answer 0ms 344.0 KiB
#7 Wrong Answer 0ms 204.0 KiB
#8 Wrong Answer 0ms 272.0 KiB
#9 Wrong Answer 0ms 256.0 KiB
#10 Wrong Answer 0ms 248.0 KiB

Information

Submit By
Type
Submission
Homework
Assignment 5
Language
C
Submit At
2018-06-27 20:16:51
Judged At
2018-06-27 20:16:51
Judged By
Score
0
Total Time
9ms
Peak Memory
344.0 KiB