Record Detail

Accepted

/in/isSibling.c: In function 'searchelement2':
/in/isSibling.c:8:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<strlen(phrase);i++)
                  ^
/in/isSibling.c:10:26: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
         if(phrase[i]==x||abs((int)(phrase[i]-x))==32)
                          ^~~
/in/isSibling.c: In function 'isSibling':
/in/isSibling.c:21:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          for(int i=0;i<strlen(phrase1);i++)
                       ^
/in/isSibling.c:23:31: warning: passing argument 1 of 'searchelement2' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
             if(searchelement2(phrase1,phrase1[i])==searchelement2(phrase2,phrase1[i]))
                               ^~~~~~~
/in/isSibling.c:6:5: note: expected 'char *' but argument is of type 'const char *'
 int searchelement2(char *phrase,char x)
     ^~~~~~~~~~~~~~
/in/isSibling.c:23:67: warning: passing argument 1 of 'searchelement2' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
             if(searchelement2(phrase1,phrase1[i])==searchelement2(phrase2,phrase1[i]))
                                                                   ^~~~~~~
/in/isSibling.c:6:5: note: expected 'char *' but argument is of type 'const char *'
 int searchelement2(char *phrase,char x)
     ^~~~~~~~~~~~~~
/in/isSibling.c:17:9: warning: variable 'flag' set but not used [-Wunused-but-set-variable]
 {   int flag;
         ^~~~
# Status Time Cost Memory Cost
#1 Accepted Detail 1ms 256.0 KiB
#2 Accepted Detail 1ms 256.0 KiB
#3 Accepted Detail 1ms 296.0 KiB
#4 Accepted Detail 2ms 256.0 KiB
#5 Accepted Detail 1ms 256.0 KiB
#6 Accepted Detail 1ms 316.0 KiB
#7 Accepted Detail 1ms 256.0 KiB
#8 Accepted Detail 1ms 256.0 KiB
#9 Accepted Detail 1ms 256.0 KiB
#10 Accepted Detail 1ms 256.0 KiB
#11 Accepted Detail 1ms 260.0 KiB
#12 Accepted Detail 1ms 256.0 KiB
#13 Accepted Detail 0ms 260.0 KiB
#14 Accepted Detail 1ms 372.0 KiB
#15 Accepted Detail 1ms 324.0 KiB
#16 Accepted Detail 1ms 256.0 KiB
#17 Accepted Detail 1ms 260.0 KiB
#18 Accepted Detail 1ms 332.0 KiB
#19 Accepted Detail 1ms 260.0 KiB
#20 Accepted Detail 1ms 256.0 KiB
#21 Accepted Detail 1ms 300.0 KiB
#22 Accepted Detail 1ms 268.0 KiB
#23 Accepted Detail 1ms 256.0 KiB
#24 Accepted Detail 1ms 296.0 KiB
#25 Accepted Detail 1ms 324.0 KiB

Information

Submit By
Type
Submission
Homework
Midterm Exam 2
Language
C
Submit At
2022-07-07 15:40:28
Judged At
2022-07-08 16:04:31
Judged By
Score
100
Total Time
31ms
Peak Memory
372.0 KiB