记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:8:5: error: 'gets_s' was not declared in this scope; did you mean 'gets'?
    8 |     gets_s(arr1);
      |     ^~~~~~
      |     gets
foo.cc:9:13: error: 'strlen' was not declared in this scope
    9 |     int x = strlen(arr1);
      |             ^~~~~~
foo.cc:4:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    3 | #include<string>
  +++ |+#include <cstring>
    4 | //A8-1
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
语言
C++
递交时间
2022-10-09 20:16:04
评测时间
2022-10-09 20:16:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes