Problem 3nplus1
User Yuhmama
Submission Time 2026-06-22 16:31:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:28: error: ‘i’ was not declared in this scope
6 | for (int n = 1; n<=10000; i++) {
| ^
3nplus1.cpp:9:12: error: expected ‘;’ before ‘{’ token
9 | } else n {
| ^~
| ;
3nplus1.cpp:15:1: error: expected ‘}’ at end of input
15 | }
| ^
3nplus1.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^