Problem 3nplus1
User CalebKow
Submission Time 2025-06-23 02:58:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:8: error: expected ‘(’ before ‘n’
8 | while n != 1:
| ^
| (
3nplus1.cpp:8:14: error: expected ‘)’ before ‘:’ token
8 | while n != 1:
| ~ ^
| )
3nplus1.cpp:8:14: error: expected primary-expression before ‘:’ token
3nplus1.cpp:13:3: error: ‘else’ without a previous ‘if’
13 | else {
| ^~~~