/in/foo.cc: In function 'int word1(int, int, int)':
/in/foo.cc:20:6: warning: unused variable 'i' [-Wunused-variable]
int i;
^
/in/foo.cc: In function 'void word3(int, int, int)':
/in/foo.cc:82:6: warning: unused variable 'i' [-Wunused-variable]
int i,j,t,p=0;
^
/in/foo.cc: In function 'void evidence()':
/in/foo.cc:118:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(crime[i].others[j]==2)
^
/in/foo.cc:124:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(crime[i].others[j]==1)
^
/in/foo.cc:142:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(crime[i].others[j]==2)
^
/in/foo.cc:148:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(crime[i].others[j]==1)
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:219:5: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(word);
^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:219:14: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(word);
^
In file included from /usr/include/c++/6/cstdio:42:0,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:223:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
temp=gets(word);
^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:223:17: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
temp=gets(word);
^
In file included from /usr/include/c++/6/cstdio:42:0,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/tmp/ccA8tVbu.o: In function `main':
foo.cc:(.text.startup+0x87): warning: the `gets' function is dangerous and should not be used.