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

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:10:11: error: ‘temp’ was not declared in this scope; did you mean ‘temp2’?
10 | cout << temp << " ";
| ^~~~
| temp2
3nplus1.cpp:14:11: error: ‘temp’ was not declared in this scope; did you mean ‘temp2’?
14 | cout << temp << " ";
| ^~~~
| temp2
3nplus1.cpp:16:18: error: break statement not within loop or switch
16 | if (temp1 == 1) break;
| ^~~~~