Problem addition
User Elias
Submission Time 2026-06-23 09:06:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:3:1: error: expected identifier before ‘int’
3 | int pace std;
| ^~~
addition.cpp:2:16: error: expected ‘;’ before ‘int’
2 | using namespace
| ^
| ;
3 | int pace std;
| ~~~
addition.cpp:3:10: error: expected initializer before ‘std’
3 | int pace std;
| ^~~
addition.cpp: In function ‘int main()’:
addition.cpp:8:3: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
8 | cin >> a >> b;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from addition.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
addition.cpp:9:3: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
9