| Problem | addition |
|---|---|
| User | HOK |
| Submission Time | 2026-02-14 10:07: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:1: error: expected primary-expression before ‘int’
4 | int a,b;
| ^~~
addition.cpp:4:1: error: expected ‘}’ before ‘int’
addition.cpp:3:9: note: to match this ‘{’
3 | int main{
| ^
addition.cpp:5:1: error: ‘cin’ does not name a type; did you mean ‘sin’?
5 | cin<<a<<b;
| ^~~
| sin
addition.cpp:6:1: error: ‘a’ does not name a type
6 | a+=b;
| ^
addition.cpp:7:1: error: ‘cout’ does not name a type
7 | cout>>a;
| ^~~~
addition.cpp:8:1: error: expected declaration before ‘}’ token
8 | }
| ^