foo.cc: In function 'int main()':
foo.cc:91:26: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
for(int i=0;i<n;i++) gets(sm[i]);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/c++/5/ext/string_conversions.h:43,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/bits/locale_classes.h:40,
from /usr/include/c++/5/bits/ios_base.h:41,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from foo.cc:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
foo.cc:91:26: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
for(int i=0;i<n;i++) gets(sm[i]);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/c++/5/ext/string_conversions.h:43,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/bits/locale_classes.h:40,
from /usr/include/c++/5/bits/ios_base.h:41,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from foo.cc:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
foo.cc:91:36: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
for(int i=0;i<n;i++) gets(sm[i]);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/c++/5/ext/string_conversions.h:43,
from /usr/include/c++/5/bits/basic_string.h:5352,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/bits/locale_classes.h:40,
from /usr/include/c++/5/bits/ios_base.h:41,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from foo.cc:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
foo.cc:118:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(sm[i][j] == 'x' && (curArr[j] & 0x2)== 2
^
foo.cc:120:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
|| j>=1 && (curArr[j] & 0x2) == 2 && (curArr[j-1]) == 1
^
foo.cc:89:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int m,n; scanf("%d%d", &n,&m);
^
foo.cc:91:37: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=0;i<n;i++) gets(sm[i]);
^
/tmp/ccA7DPEJ.o: In function `main':
foo.cc:(.text.startup+0x5e): warning: the `gets' function is dangerous and should not be used.
自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)
{"receive":"2020-04-28T09:37:16.264Z","handle":"2020-04-28T09:37:16.264Z","cache_start":"2020-04-28T09:37:16.283Z","read_cases":"2020-04-28T09:37:16.428Z","judge":"2020-04-28T09:37:16.432Z","done":"2020-04-28T09:37:27.245Z"}