Problem addition
User griuehiruhigero
Submission Time 2023-06-18 10:16:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:2:5: error: cannot declare ‘::main’ to be a global variable
2 | int main{
| ^~~~
addition.cpp:3:2: error: expected primary-expression before ‘long’
3 | long long a;
| ^~~~
addition.cpp:3:2: error: expected ‘}’ before ‘long’
addition.cpp:2:9: note: to match this ‘{’
2 | 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 | }
| ^