Problem addition
User pkdagoat
Submission Time 2026-11-10 09:48:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:3:20: error: expected ‘;’ before ‘int’
3 | using namespace std
| ^
| ;
4 |
5 | int main {
| ~~~
addition.cpp:5:5: error: cannot declare ‘::main’ to be a global variable
5 | int main {
| ^~~~
addition.cpp:7:2: error: expected primary-expression before ‘int’
7 | int a, b;
| ^~~
addition.cpp:7:2: error: expected ‘}’ before ‘int’
addition.cpp:5:10: note: to match this ‘{’
5 | int main {
| ^
addition.cpp:8:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
8 | cin >> a >> b;
| ^~~
| sin
addition.cpp:9:2: error: ‘cout’ does not name a type
9 | cout >> a+b;
| ^~~~
addition.cpp:11:1: error: expected declaration before ‘}’ token
11 | }
| ^