Problem 3nplus1
User ayreentazz
Submission Time 2026-02-28 10:27:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:15: error: expected ‘;’ before ‘if’
8 | cout<<n<<" "
| ^
| ;
9 | if(n % 2 = 0){
| ~~
3nplus1.cpp:12:3: error: ‘else’ without a previous ‘if’
12 | else {
| ^~~~