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