/ Vijos /

记录详情

Compile Error

/in/foo.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> x >> y;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/12/bits/stdc++.h:75,
                 from /in/foo.cc:1:
/usr/include/c++/12/iostream:60:18: note: 'std::cin' declared here
   60 |   extern istream cin;           /// Linked to standard input
      |                  ^~~
/in/foo.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout << x + y;
      |         ^~~~
      |         std::cout
/usr/include/c++/12/iostream:61:18: note: 'std::cout' declared here
   61 |   extern ostream cout;          /// Linked to standard output
      |                  ^~~~

信息

递交者
类型
自测
题目
P1000 A+B Problem
语言
C++
递交时间
2026-06-07 18:17:06
评测时间
2026-06-08 19:42:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes