Problem veryeasyproblem
User huyleisme
Submission Time 2024-01-20 13:03:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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