/in/foo.c:3:6: warning: return type of 'main' is not 'int' [-Wmain]
void main()
^~~~
/in/foo.c: In function 'main':
/in/foo.c:10:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if((fp=fopen("my5.out","w"))==NULL);
^~
/in/foo.c:12:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
{
^
/in/foo.c:29:14: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
fprintf("%d ",str[i]);
^~~~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:358:12: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'char *'
extern int fprintf (FILE *__restrict __stream,
^~~~~~~
/in/foo.c:29:20: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion]
fprintf("%d ",str[i]);
^~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:358:12: note: expected 'const char * restrict' but argument is of type 'char'
extern int fprintf (FILE *__restrict __stream,
^~~~~~~
/in/foo.c:37:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while(str[i]!='!');
^~~~~
/in/foo.c:38:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
{
^
/in/foo.c:6:7: warning: unused variable 'n' [-Wunused-variable]
int n=10,count[10],i,j;
^
/in/foo.c:37:12: warning: array subscript is above array bounds [-Warray-bounds]
while(str[i]!='!');
~~~^~~