| Problem | nprime |
|---|---|
| User | Jaysonwee22 |
| Submission Time | 2026-06-24 16:44:45 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
nprime.cpp: In function ‘int main()’:
nprime.cpp:10:13: error: expected ‘;’ before ‘-’ token
10 | for (int i - 1; i <= sqrt(ans); i++)
| ^~
| ;
nprime.cpp:10:33: error: expected ‘)’ before ‘;’ token
10 | for (int i - 1; i <= sqrt(ans); i++)
| ~ ^
| )
nprime.cpp:10:35: error: ‘i’ was not declared in this scope
10 | for (int i - 1; i <= sqrt(ans); i++)
| ^
nprime.cpp:15:9: error: ‘divisors’ was not declared in this scope
15 | if (divisors -- 1) {
| ^~~~~~~~
nprime.cpp:15:20: error: expected ‘)’ before numeric constant
15 | if (divisors -- 1) {
| ~ ^~
| )
nprime.cpp:16:10: error: expected ‘;’ before numeric constant
16 | n -- 1;
| ^~
| ;