Record Detail

Compile Error

/in/isSibling.c: In function 'isSibling':
/in/isSibling.c:15:15: warning: array subscript has type 'char' [-Wchar-subscripts]
         count1[phrase1[i]]++;
               ^
/in/isSibling.c:16:15: warning: array subscript has type 'char' [-Wchar-subscripts]
         count2[phrase2[i]]++;
               ^
/in/isSibling.c: In function 'main':
/in/isSibling.c:32:10: error: array size missing in 'phrase1'
     char phrase1[];
          ^~~~~~~
/in/isSibling.c:33:10: error: array size missing in 'phrase2'
     char phrase2[];
          ^~~~~~~
/in/isSibling.c:35:13: warning: format '%c' expects argument of type 'char *', but argument 2 has type 'char (*)[1]' [-Wformat=]
     scanf("%c", &phrase1);
            ~^   ~~~~~~~~
/in/isSibling.c:36:13: warning: format '%c' expects argument of type 'char *', but argument 2 has type 'char (*)[1]' [-Wformat=]
     scanf("%c", &phrase2);
            ~^   ~~~~~~~~

Information

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