Problem 3nplus1
User PerihelionfromAphelion
Submission Time 2026-02-14 09:50:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:12:6: error: ‘temp1’ was not declared in this scope; did you mean ‘temp’?
12 | if (temp1 % 2 != 0) {
| ^~~~~
| temp
3nplus1.cpp:16:6: error: ‘temp1’ was not declared in this scope; did you mean ‘temp’?
16 | if (temp1 == 1) break;
| ^~~~~
| temp
3nplus1.cpp:16:18: error: break statement not within loop or switch
16 | if (temp1 == 1) break;
| ^~~~~