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

Compile Error

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