Problem | addition |
---|---|
User | Abi |
Submission Time | 2024-07-15 16:35:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp:5:5: error: cannot declare ‘::main’ to be a global variable
5 | int main {
| ^~~~
addition.cpp:6:2: error: expected primary-expression before ‘int’
6 | int a;
| ^~~
addition.cpp:6:2: error: expected ‘}’ before ‘int’
addition.cpp:5:10: note: to match this ‘{’
5 | int main {
| ^
addition.cpp:7:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
7 | cin >> a;
| ^~~
| sin
addition.cpp:9:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
9 | cin >> b;
| ^~~
| sin
addition.cpp:10:10: error: ‘a’ was not declared in this scope
10 | int c = a + b;
| ^
addition.cpp:11:2: error: ‘cout’ does not name a type
11 | cout << c;
| ^~~~
addition.cpp:13:1: error: expected declaration before ‘}’ token
13 | }
| ^