记录详情

Compile Error

/in/foo.cc: In function 'int length(const char*)':
/in/foo.cc:5:19: error: 'strlen' was not declared in this scope
  return strlen(str);
                   ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:15:5: error: 'cin' was not declared in this scope
     cin.getline(s1, changdu);
     ^~~
/in/foo.cc:18:5: error: 'cout' was not declared in this scope
     cout<<length(s1)<<" "<<length(s2)<<endl;
     ^~~~
/in/foo.cc:18:40: error: 'endl' was not declared in this scope
     cout<<length(s1)<<" "<<length(s2)<<endl;
                                        ^~~~

信息

递交者
类型
递交
比赛
泰院2401程序设计基础作业赛第六场
语言
C++
递交时间
2024-11-25 17:31:06
评测时间
2024-11-25 17:31:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes