Problem addition
User Emma167
Submission Time 2026-06-23 10:18:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:5:8: error: cannot declare ‘::main’ to be a global variable
5 | signed main{
| ^~~~
addition.cpp:2:14: error: expected primary-expression before ‘long’
2 | # define int long long
| ^~~~
addition.cpp:6:2: note: in expansion of macro ‘int’
6 | int a;
| ^~~
addition.cpp:2:14: error: expected ‘}’ before ‘long’
2 | # define int long long
| ^~~~
addition.cpp:6:2: note: in expansion of macro ‘int’
6 | int a;
| ^~~
addition.cpp:5:12: note: to match this ‘{’
5 | signed main{
| ^
addition.cpp:8:2: error: ‘cout’ does not name a type
8 | cout << (a + b);
| ^~~~
addition.cpp:9:2: error: expected unqualified-id before ‘return’
9 | return 0;
| ^~~~~~
addition.cpp:11:1: error: expected declaration before ‘}’ token
11 | }
| ^