记录详情

Compile Error

foo.cc:16:7: error: expected nested-name-specifier before ‘namspace’
   16 | using namspace std;
      |       ^~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:20:9: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
   20 |         cin>>score;
      |         ^~~
      |         std::cin
iostream:62:18: note: ‘std::cin’ declared here
foo.cc:31:9: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
   31 |         cout<<level<<endl;
      |         ^~~~
      |         std::cout
iostream:63:18: note: ‘std::cout’ declared here
foo.cc:31:22: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’?
   31 |         cout<<level<<endl;
      |                      ^~~~
      |                      std::endl
In file included from iostream:41:
/nix/gcc-13.2.0/include/c++/13.2.0/ostream:735:5: note: ‘std::endl’ declared here
  735 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
正在同步测试数据,请稍后

信息

递交者
类型
递交
题目
判定等级
语言
C++
递交时间
2024-05-06 15:44:15
评测时间
2024-05-06 15:44:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes