0_0_38883793_19736.cpp:2:5: error: cannot declare '::main' to be a global variable
2 | int main{
| ^~~~
0_0_38883793_19736.cpp:3:4: error: expected primary-expression before 'int'
3 | int a, b;
| ^~~
0_0_38883793_19736.cpp:3:4: error: expected '}' before 'int'
0_0_38883793_19736.cpp:2:9: note: to match this '{'
2 | int main{
| ^
0_0_38883793_19736.cpp:4:9: error: expected constructor, destructor, or type conversion before '(' token
4 | scanf("%d%d",&a,&b);
| ^
0_0_38883793_19736.cpp:5:10: error: expected constructor, destructor, or type conversion before '(' token
5 | printf("%d",a+b);
| ^
0_0_38883793_19736.cpp:6:4: error: expected unqualified-id before 'return'
6 | return 0;
| ^~~~~~
0_0_38883793_19736.cpp:7:1: error: expected declaration before '}' token
7 | }
| ^
|