Problem 3nplus1
User Tolo925kt
Submission Time 2026-03-06 08:50:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:10:14: error: expected ‘;’ before ‘)’ token
10 | for (n > 1) {
| ^
| ;
3nplus1.cpp:21:4: error: expected primary-expression before ‘return’
21 | return 0;
| ^~~~~~
3nplus1.cpp:20:11: error: expected ‘)’ before ‘return’
20 | cout << n;
| ^
| )
21 | return 0;
| ~~~~~~
3nplus1.cpp:10:8: note: to match this ‘(’
10 | for (n > 1) {
| ^
3nplus1.cpp:22:3: error: expected ‘}’ at end of input
22 | }
| ^
3nplus1.cpp:3:13: note: to match this ‘{’
3 | int main () {
| ^