Problem | addition |
---|---|
User | haileyc |
Submission Time | 2024-01-29 16:07:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp:3:9: error: cannot declare ‘::main’ to be a global variable
3 | int main(
| ^
addition.cpp:5:2: error: expected primary-expression before ‘int’
5 | int a = 0, b = 0;
| ^~~
addition.cpp:5:2: error: expected ‘}’ before ‘int’
addition.cpp:4:1: note: to match this ‘{’
4 | {
| ^
addition.cpp:4:2: error: expected ‘)’ before ‘int’
4 | {
| ^
| )
5 | int a = 0, b = 0;
| ~~~
addition.cpp:3:9: note: to match this ‘(’
3 | int main(
| ^
addition.cpp:5:13: error: ‘b’ was not declared in this scope
5 | int a = 0, b = 0;
| ^
addition.cpp:6:2: error: ‘cout’ does not name a type
6 | cout << "a =";
| ^~~~
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; d