Problem 3nplus1
User Mingxuan
Submission Time 2024-10-08 20:55:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:5: error: expected initializer before ‘if’
8 | if (n <= 0 || n > 10000) {
| ^~
3nplus1.cpp:13:12: error: ‘n’ was not declared in this scope
13 | while (n != 1) {
| ^