Compile Error

foo.cc: In function 'void revstr(const char*, char*)':
foo.cc:6:9: error: 'strlen' was not declared in this scope
 int len=strlen(s),i;
         ^~~~~~
foo.cc:6:9: note: suggested alternative: 'mbrlen'
 int len=strlen(s),i;
         ^~~~~~
         mbrlen
foo.cc:7:6: error: 'i' was not declared in this scope
  for(i=0;i<len;++i)
      ^
foo.cc:9:6: error: 'i' was not declared in this scope
  res[i]=0;
      ^
foo.cc: In function 'int main()':
foo.cc:25:8: error: 'strcmp' was not declared in this scope
    if(!strcmp(str,res))
        ^~~~~~
foo.cc:25:8: note: suggested alternative: 'str'
    if(!strcmp(str,res))
        ^~~~~~
        str
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1106 回文数猜想(1)
语言
C++
递交时间
2021-11-14 18:28:15
评测时间
2021-11-14 18:28:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes