Problem veryeasyproblem
User SongWei6339
Submission Time 2023-01-07 13:47:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

veryeasyproblem.cpp:4:5: error: cannot declare ‘::main’ to be a global variable
4 | int main{
| ^~~~
veryeasyproblem.cpp:5:2: error: expected primary-expression before ‘int’
5 | int a;
| ^~~
veryeasyproblem.cpp:5:2: error: expected ‘}’ before ‘int’
veryeasyproblem.cpp:4:9: note: to match this ‘{’
4 | int main{
| ^
veryeasyproblem.cpp:6:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
6 | cin >> a;
| ^~~
| sin
veryeasyproblem.cpp:7:2: error: ‘cout’ does not name a type
7 | cout >> a;
| ^~~~
veryeasyproblem.cpp:8:1: error: expected declaration before ‘}’ token
8 | }
| ^