/in/foo.cc: In function 'int main()':
/in/foo.cc:114: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:114: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:165:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(sm[i][j] == 'x' && (curArr[j] & 0x1)
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/in/foo.cc:167:57: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
|| j>=1 && (curArr[j] & 0x1) && (curArr[RI] & 0x1)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:242:13: warning: unused variable 'keep_0' [-Wunused-variable]
int keep_0 = 0;
^~~~~~
/tmp/ccTU0gZb.o: In function `main':
foo.cc:(.text.startup+0x55): warning: the `gets' function is dangerous and should not be used.