Problem nprime
User Vistryx
Submission Time 2026-06-24 16:00:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nprime.cpp: In function ‘int main()’:
nprime.cpp:10:3: error: expected primary-expression before ‘bool’
10 | bool isprime = true;
| ^~~~
nprime.cpp:9:34: error: expected ‘)’ before ‘bool’
9 | for(int i = 2; i < 200000; i++)(
| ~^
| )
10 | bool isprime = true;
| ~~~~
nprime.cpp:11:6: error: ‘i’ was not declared in this scope
11 | if(i == 2){
| ^
nprime.cpp:17:6: error: ‘isprime’ was not declared in this scope; did you mean ‘isprint’?
17 | isprime = false;
| ^~~~~~~
| isprint
nprime.cpp:22:7: error: ‘isprime’ was not declared in this scope; did you mean ‘isprint’?
22 | if (isprime){
| ^~~~~~~
| isprint
nprime.cpp:26:11: error: ‘i’ was not declared in this scope
26 | cout<< i;
| ^<