Problem 3nplus1
User yihai
Submission Time 2026-01-21 19:09:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:7:2: error: expected initializer before ‘cin’
7 | cin >>n
| ^~~
3nplus1.cpp:21:10: error: ‘n’ was not declared in this scope
21 | cout<<n
| ^
3nplus1.cpp:21:10: error: expected ‘}’ at end of input
3nplus1.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^