记录详情

Compile Error

foo.cc: In function 'void Replace(char*, char*, char*)':
foo.cc:10:9: error: 'Find' was not declared in this scope
   10 |   pos = Find(s1,pos, s2);
      |         ^~~~
foo.cc:12:3: error: 'Replace1' was not declared in this scope; did you mean 'Replace'?
   12 |   Replace1(s1,pos, s2,s3);
      |   ^~~~~~~~
      |   Replace
foo.cc: In function 'int main()':
foo.cc:20:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   20 |  gets(s1);
      |         ^
In file included from /usr/include/stdio.h:867,
                 from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.cc:20:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   20 |  gets(s1);
      |         ^
In file included from /usr/include/stdio.h:867,
                 from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.cc:21:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   21 |  gets(s2);
      |         ^
In file included from /usr/include/stdio.h:867,
                 from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.cc:21:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   21 |  gets(s2);
      |         ^
In file included from /usr/include/stdio.h:867,
                 from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.cc:22:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   22 |  gets(s3);
      |         ^
In file included from /usr/include/stdio.h:867,
                 from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.cc:22:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   22 |  gets(s3);
      |         ^
In file included from /usr/include/stdio.h:867,
                 from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.cc:20:6: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
   20 |  gets(s1);
      |  ~~~~^~~~
foo.cc:21:6: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
   21 |  gets(s2);
      |  ~~~~^~~~
foo.cc:22:6: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
   22 |  gets(s3);
      |  ~~~~^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
4-3 爱情故事
语言
C++
递交时间
2022-05-03 10:19:15
评测时间
2022-05-03 10:19:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes