Record Detail

Runtime Error

/in/isSibling.c: In function 'sort':
/in/isSibling.c:9:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0;i<strlen(s)-1;i++)
              ^
/in/isSibling.c:11:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(j=0;j<strlen(s)-1-i;j++)
                  ^
/in/isSibling.c: In function 'isSibling':
/in/isSibling.c:21:10: warning: passing argument 1 of 'sort' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     sort(phrase1);
          ^~~~~~~
/in/isSibling.c:5:6: note: expected 'char *' but argument is of type 'const char *'
 void sort(char s[])
      ^~~~
/in/isSibling.c:22:10: warning: passing argument 1 of 'sort' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     sort(phrase2);
          ^~~~~~~
/in/isSibling.c:5:6: note: expected 'char *' but argument is of type 'const char *'
 void sort(char s[])
      ^~~~
# Status Time Cost Memory Cost
#1 Accepted Detail 1ms 260.0 KiB
#2 Accepted Detail 1ms 212.0 KiB
#3 Wrong Answer Detail 1ms 276.0 KiB
#4 Accepted Detail 1ms 256.0 KiB
#5 Accepted Detail 1ms 256.0 KiB
#6 Accepted Detail 1ms 256.0 KiB
#7 Accepted Detail 1ms 256.0 KiB
#8 Wrong Answer Detail 1ms 284.0 KiB
#9 Wrong Answer Detail 1ms 276.0 KiB
#10 Runtime Error (-11) Detail 2ms 452.0 KiB
#11 Accepted Detail 1ms 256.0 KiB
#12 Accepted Detail 1ms 276.0 KiB
#13 Accepted Detail 1ms 268.0 KiB
#14 Wrong Answer Detail 1ms 264.0 KiB
#15 Accepted Detail 1ms 264.0 KiB
#16 Accepted Detail 2ms 276.0 KiB
#17 Wrong Answer Detail 1ms 256.0 KiB
#18 Accepted Detail 35ms 272.0 KiB
#19 Wrong Answer Detail 23ms 292.0 KiB
#20 Accepted Detail 4ms 272.0 KiB
#21 Runtime Error (-11) Detail 2ms 460.0 KiB
#22 Accepted Detail 0ms 208.0 KiB
#23 Wrong Answer Detail 0ms 340.0 KiB
#24 Accepted Detail 0ms 208.0 KiB
#25 Wrong Answer Detail 0ms 256.0 KiB

Information

Submit By
Type
Submission
Homework
Midterm Exam 2
Language
C
Submit At
2022-07-07 14:56:59
Judged At
2022-07-08 16:05:10
Judged By
Score
60
Total Time
94ms
Peak Memory
460.0 KiB