/ OPS /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:29:15: error: 'strlen' was not declared in this scope
   29 |    int lena = strlen(a[i]);
      |               ^~~~~~
/in/foo.cc:2:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
/in/foo.cc:45:44: error: 'strlen' was not declared in this scope
   45 |    if (num[0] == num[i]&& char_to_int(a[0],strlen(a[0]))> char_to_int(a[i], strlen(a[i]))) {
      |                                            ^~~~~~
/in/foo.cc:45:44: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?

信息

递交者
类型
递交
题目
P1079 美丽的数
语言
C++
递交时间
2024-03-26 19:07:05
评测时间
2024-03-26 19:07:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes