/ OPS /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:3:8: error: 'cin' was not declared in this scope
    3 |  while(cin>>a){
      |        ^~~
/in/foo.cc:4:10: error: 'strlen' was not declared in this scope
    4 |  int len=strlen(a);
      |          ^~~~~~
/in/foo.cc:1:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  +++ |+#include <cstring>
    1 | int main(){
/in/foo.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout<<"Yes"<<endl;
      |   ^~~~
/in/foo.cc:14:16: error: 'endl' was not declared in this scope
   14 |   cout<<"Yes"<<endl;
      |                ^~~~
/in/foo.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout<<"No"<<endl;
      |   ^~~~
/in/foo.cc:16:15: error: 'endl' was not declared in this scope
   16 |   cout<<"No"<<endl;
      |               ^~~~

信息

递交者
类型
递交
题目
P1059 数字字串
语言
C++
递交时间
2024-05-24 13:52:37
评测时间
2024-05-24 13:52:37
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes