/in/foo.c:7:6: warning: return type of 'main' is not 'int' [-Wmain]
void main()
^~~~
/in/foo.c: In function 'main':
/in/foo.c:14:5: warning: 'gets' is deprecated [-Wdeprecated-declarations]
gets(str2);
^~~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.c:25:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(x=0;x<i;x++)
^~~
/in/foo.c:32:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
i++;
^
/in/foo.c:38:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(;t<i;t++)
^~~
/in/foo.c:40:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
return 0;
^~~~~~
/in/foo.c:40:9: warning: 'return' with a value, in function returning void
return 0;
^
/in/foo.c:7:6: note: declared here
void main()
^~~~
/tmp/ccS0fb1R.o: In function `main':
foo.c:(.text.startup+0x1f): warning: the `gets' function is dangerous and should not be used.