Record Detail

Runtime Error

/in/isSibling.c: In function 'isSibling':
/in/isSibling.c:6:18: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
     int m=strlen(*phrase1);
                  ^
In file included from /in/isSibling.c:3:0:
/usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'char'
 extern size_t strlen (const char *__s)
               ^~~~~~
/in/isSibling.c:7:18: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
     int n=strlen(*phrase2);
                  ^
In file included from /in/isSibling.c:3:0:
/usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'char'
 extern size_t strlen (const char *__s)
               ^~~~~~
/in/isSibling.c:20:9: warning: unused variable 'b' [-Wunused-variable]
     int b[30];
         ^
/in/isSibling.c:9:10: warning: unused variable 'word2' [-Wunused-variable]
     char word2[30];
          ^~~~~
/in/isSibling.c:7:9: warning: unused variable 'n' [-Wunused-variable]
     int n=strlen(*phrase2);
         ^
/in/isSibling.c:31:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# Status Time Cost Memory Cost
#1 Runtime Error (-11) Detail 1ms 316.0 KiB
#2 Runtime Error (-11) Detail 15ms 336.0 KiB
#3 Runtime Error (-11) Detail 1ms 336.0 KiB
#4 Runtime Error (-11) Detail 1ms 332.0 KiB

Information

Submit By
Type
Submission
Homework
Midterm Exam 2
Language
C
Submit At
2022-07-08 16:16:38
Judged At
2022-07-08 16:16:38
Judged By
Score
0
Total Time
18ms
Peak Memory
336.0 KiB