/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