Problem nprime
User Magenta
Submission Time 2026-06-24 15:59:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nprime.cpp: In function ‘int main()’:
nprime.cpp:10:8: error: ‘i’ was not declared in this scope
10 | } if (i == 2) {
| ^
nprime.cpp:11:10: error: ‘isprime’ was not declared in this scope; did you mean ‘isprint’?
11 | isprime = true;
| ^~~~~~~
| isprint
nprime.cpp:15:18: error: ‘isprime’ was not declared in this scope; did you mean ‘isprint’?
15 | isprime = false;
| ^~~~~~~
| isprint
nprime.cpp:20:9: error: ‘isprime’ was not declared in this scope; did you mean ‘isprint’?
20 | if (isprime) {
| ^~~~~~~
| isprint
nprime.cpp:24:17: error: ‘i’ was not declared in this scope
24 | cout << i;
| ^
nprime.cpp:25:17: error: expected ‘;’ before ‘}’ token
25 | return 0
| ^
| ;