记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:4:1: error: ‘gets’ was not declared in this scope
    4 | gets(num);
      | ^~~~
foo.cc:7:11: error: ‘strlen’ was not declared in this scope
    7 | int len = strlen(ch);
      |           ^~~~~~
foo.cc:1:1: note: ‘strlen’ is defined in header ‘<cstring>’; this is probably fixable by adding ‘#include <cstring>’
  +++ |+#include <cstring>
    1 | int main()
foo.cc:16:1: error: ‘printf’ was not declared in this scope
   16 | printf("%s", ch);
      | ^~~~~~
foo.cc:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; this is probably fixable by adding ‘#include <cstdio>’
  +++ |+#include <cstdio>
    1 | int main()

信息

递交者
类型
递交
题目
P1097 xf2-10倒叙输出
语言
C++
递交时间
2025-05-14 12:48:20
评测时间
2025-05-14 12:48:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes