/ OPS /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:14:11: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     while(gets(tmp)!=NULL){
           ^
In file included from /usr/include/c++/5/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:46,
                 from /in/foo.cc:1:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^
/in/foo.cc:14:11: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     while(gets(tmp)!=NULL){
           ^
In file included from /usr/include/c++/5/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:46,
                 from /in/foo.cc:1:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^
/in/foo.cc:14:19: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     while(gets(tmp)!=NULL){
                   ^
In file included from /usr/include/c++/5/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:46,
                 from /in/foo.cc:1:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^
/in/foo.cc:16:17: error: 'strrev' was not declared in this scope
         strrev(a);
                 ^
/in/foo.cc:21:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0;i<s.size();i++)
              ^

信息

递交者
类型
递交
题目
P1031 对称串
语言
C++
递交时间
2023-04-03 09:12:42
评测时间
2023-04-03 09:12:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes