Problem 3nplus1
User CrackingCodes
Submission Time 2024-04-05 14:04:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:5:2: error: expected initializer before ‘cin’
5 | cin >> n
| ^~~
3nplus1.cpp:9:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
9 | cout << n;
| ^
| yn
3nplus1.cpp: At global scope:
3nplus1.cpp:11:5: error: expected unqualified-id before ‘if’
11 | if (n%2 == 1){
| ^~