/in/foo.cc: In function 'int main()':
/in/foo.cc:174:26: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
for(int i=0;i<n;i++) gets(sm[i]);
^~~~
In file included from /in/foo.cc:2:0:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:174:36: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
for(int i=0;i<n;i++) gets(sm[i]);
^
In file included from /in/foo.cc:2:0:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:222:51: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (sm[i][j+l] == 'x' && (stateValue & s_flag[j])
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:224:71: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
|| j >= 1 && (stateValue & s_flag[j]) && (stateValue & s_flag[RI])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/ccrm3PGs.o: In function `main':
foo.cc:(.text.startup+0x9f): warning: the `gets' function is dangerous and should not be used.