Problem nprime
User chlq3x
Submission Time 2026-06-25 15:50:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nprime.cpp: In function ‘int main()’:
nprime.cpp:11:9: error: ‘prime’ was not declared in this scope; did you mean ‘primes’?
11 | while (prime.size()<n) {
| ^~~~~
| primes
nprime.cpp:14:5: error: ‘isPrime’ was not declared in this scope
14 | isPrime = false;
| ^~~~~~~
nprime.cpp:18:7: error: ‘isPrime’ was not declared in this scope
18 | if (isPrime == true) {
| ^~~~~~~
nprime.cpp:22:9: error: expected ‘;’ before ‘}’ token
22 | curr++ // move on to the next number
| ^
| ;
23 | }
| ~