Record Detail

Compile Error

/in/isSibling.c:3:1: error: unknown type name 'bool'; did you mean '_Bool'?
 bool isSiling(const char * phrase1, const char *phrase2) {
 ^~~~
 _Bool
/in/isSibling.c: In function 'isSiling':
/in/isSibling.c:6:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     for (p =  phrase1; *p; p++)
            ^
/in/isSibling.c:7:15: warning: array subscript has type 'char' [-Wchar-subscripts]
         count1[*p]++;
               ^
/in/isSibling.c:8:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     for (p =  phrase2; *p; p++)
            ^
/in/isSibling.c:9:15: warning: array subscript has type 'char' [-Wchar-subscripts]
         count2[*p]++;
               ^

Information

Submit By
Type
Submission
Homework
Midterm Exam 2
Language
C
Submit At
2022-07-07 15:15:30
Judged At
2022-07-08 16:06:00
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes