| Problem | addition |
|---|---|
| User | yihai |
| Submission Time | 2026-01-21 16:00:08 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
addition.cpp:3:5: error: cannot declare ‘::main’ to be a global variable
3 | int main{
| ^~~~
addition.cpp:4:8: error: ‘a’ was not declared in this scope
4 | cin<< a, b;
| ^
addition.cpp:4:11: error: ‘b’ was not declared in this scope
4 | cin<< a, b;
| ^
addition.cpp:4:12: error: expected ‘}’ before ‘;’ token
4 | cin<< a, b;
| ^
addition.cpp:3:9: note: to match this ‘{’
3 | int main{
| ^
addition.cpp:3:5: error: scalar object ‘main’ requires one element in initializer
3 | int main{
| ^~~~
addition.cpp:5:2: error: ‘cout’ does not name a type
5 | cout << a+b;
| ^~~~
addition.cpp:6:1: error: expected declaration before ‘}’ token
6 | }
| ^