P1000 A+B Problem
Overview
Judge Result | Compile Error |
Problem | P1000 A+B Problem |
Submit Time | May 17, 2024, 11:57:30 AM |
Language | C++ |
Judger | Default Judger |
Used Time | 0 ms |
Used Memory | 0 K |
Execute Time | May 17, 2024, 3:57:42 AM |
Judge Result
Compile Error.
/tmp/voj-1757/uBrLmCxkyRJq.cpp: In function 'int main()':
/tmp/voj-1757/uBrLmCxkyRJq.cpp:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | cin >> a >> b;
| ^~~
| std::cin
In file included from /tmp/voj-1757/uBrLmCxkyRJq.cpp:1:
/usr/include/c++/11/iostream:60:18: note: 'std::cin' declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
/tmp/voj-1757/uBrLmCxkyRJq.cpp:5:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
5 | cout << a + b;
| ^~~~
| std::cout
In file included from /tmp/voj-1757/uBrLmCxkyRJq.cpp:1:
/usr/include/c++/11/iostream:61:18: note: 'std::cout' declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
Compile Error, Time = 0 ms, Memory = 0 KB, Score = 0.