0_0_38845550_15216.cpp:4:5: error: cannot declare '::main' to be a global variable
4 | int main{
| ^~~~
0_0_38845550_15216.cpp:5:5: error: expected primary-expression before 'int'
5 | int a,b;
| ^~~
0_0_38845550_15216.cpp:5:5: error: expected '}' before 'int'
0_0_38845550_15216.cpp:4:9: note: to match this '{'
4 | int main{
| ^
0_0_38845550_15216.cpp:6:5: error: 'cin' does not name a type
6 | cin>>a>>b;
| ^~~
0_0_38845550_15216.cpp:7:5: error: 'cout' does not name a type
7 | cout<<a+b<<endl;
| ^~~~
0_0_38845550_15216.cpp:8:5: error: expected unqualified-id before 'return'
8 | return 0;
| ^~~~~~
0_0_38845550_15216.cpp:10:1: error: expected declaration before '}' token
10 | }
| ^
|