Record Detail

Wrong Answer

/in/ex1_1.cpp: In function 'int main()':
/in/ex1_1.cpp:8:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<s.size()-2;i++){
                 ~^~~~~~~~~~~
/in/ex1_1.cpp:11:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
         else cout<<0; break;
         ^~~~
/in/ex1_1.cpp:11:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
         else cout<<0; break;
                       ^~~~~
/in/ex1_1.cpp:12:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (i==s.size()) cout<<1;
             ~^~~~~~~~~~
/in/ex1_1.cpp:7:9: warning: unused variable 'j' [-Wunused-variable]
     int j;
         ^
# Status Time Cost Memory Cost
#1 Accepted Detail 2ms 388.0 KiB
#2 Accepted Detail 2ms 384.0 KiB
#3 Accepted Detail 1ms 444.0 KiB
#4 Wrong Answer Detail 2ms 384.0 KiB
#5 Wrong Answer Detail 2ms 388.0 KiB

Information

Submit By
Type
Submission
Homework
Final Exam
Language
C++
Submit At
2020-08-07 16:45:53
Judged At
2020-08-09 18:19:23
Judged By
Score
30
Total Time
10ms
Peak Memory
444.0 KiB