/in/foo.c:3:1: error: unknown type name 'viod'; did you mean 'void'?
viod main()
^~~~
void
/in/foo.c: In function 'main':
/in/foo.c:5:12: error: 'N' undeclared (first use in this function)
char str1[N],str2[10];
^
/in/foo.c:5:12: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:7:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[10]' [-Wformat=]
scanf("%s\n",&str2);
~^ ~~~~~
/in/foo.c:8:9: warning: missing terminating " character
printf("n=%d',strcount(str1,str2));
^
/in/foo.c:8:9: error: missing terminating " character
printf("n=%d',strcount(str1,str2));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:10:1: error: expected expression before '}' token
}
^
/in/foo.c:10:1: error: expected ';' before '}' token
/in/foo.c:5:7: warning: unused variable 'str1' [-Wunused-variable]
char str1[N],str2[10];
^~~~
/in/foo.c: In function 'strcount':
/in/foo.c:20:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
if(*(p+i)=*(q=i))
^
/in/foo.c:20:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(*(p+i)=*(q=i))
^