Problem addition
User benji9736
Submission Time 2025-11-12 09:30:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:3:5: error: cannot declare ‘::main’ to be a global variable
3 | int main{
| ^~~~
addition.cpp:4:2: error: expected primary-expression before ‘long’
4 | long long a, b;
| ^~~~
addition.cpp:4:2: error: expected ‘}’ before ‘long’
addition.cpp:3:9: note: to match this ‘{’
3 | int main{
| ^
addition.cpp:5:2: error: ‘cin’ does not name a type
5 | cin>>a>>b;
| ^~~
addition.cpp:6:2: error: ‘cout’ does not name a type
6 | cout<<a + b<<endl;
| ^~~~
addition.cpp:7:1: error: expected declaration before ‘}’ token
7 | }
| ^