Record Detail

Compile Error

/in/ex1.c: In function 'count_substr':
/in/ex1.c:9:10: error: unused variable 'str_cpy' [-Werror=unused-variable]
     char str_cpy[50] = {0};
          ^~~~~~~
/in/ex1.c: In function 'main':
/in/ex1.c:41:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Werror=implicit-function-declaration]
   gets(syn);
   ^~~~
   fgets
/in/ex1.c:46:23: error: comparison between pointer and integer [-Werror]
     for(i=0; *(syn+i) != NULL;i++)
                       ^~
/in/ex1.c:52:23: error: comparison between pointer and integer [-Werror]
     for(i=0;*(word+i) != NULL;i++)
                       ^~
/in/ex1.c:38:10: error: unused variable 'ch' [-Werror=unused-variable]
     char ch;
          ^~
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Mid2 Sample Exam
Language
C
Submit At
2020-07-12 04:06:53
Judged At
2020-07-15 20:58:29
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes