Problem | addition |
---|---|
User | Ningja |
Submission Time | 2023-11-08 09:54:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp:4:5: error: cannot declare ‘::main’ to be a global variable
4 | int main {
| ^~~~
addition.cpp:5:2: error: expected primary-expression before ‘int’
5 | int a,b;
| ^~~
addition.cpp:5:2: error: expected ‘}’ before ‘int’
addition.cpp:4:10: note: to match this ‘{’
4 | int main {
| ^
addition.cpp:6:2: error: ‘cin’ does not name a type
6 | cin >> a >> b;
| ^~~
addition.cpp:7:2: error: ‘cout’ does not name a type
7 | cout << a+b;
| ^~~~
addition.cpp:8:1: error: expected declaration before ‘}’ token
8 | }
| ^