Problem nextprime
User wtnetlegend
Submission Time 2026-07-06 18:45:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nextprime.cpp:1:17: error: variable or field ‘primesieve’ declared void
1 | void primesieve(ll n, vector<bool>& isprime){
| ^~
nextprime.cpp:1:17: error: ‘ll’ was not declared in this scope
nextprime.cpp:1:23: error: ‘vector’ was not declared in this scope
1 | void primesieve(ll n, vector<bool>& isprime){
| ^~~~~~
nextprime.cpp:1:30: error: expected primary-expression before ‘bool’
1 | void primesieve(ll n, vector<bool>& isprime){
| ^~~~
nextprime.cpp: In function ‘int main()’:
nextprime.cpp:14:5: error: ‘ios’ has not been declared
14 | ios::sync_with_stdio(false);
| ^~~
nextprime.cpp:15:5: error: ‘cin’ was not declared in this scope
15 | cin.tie(0);
| ^~~
nextprime.cpp:16:5: error: ‘cout’ was not declared in this scope
16 | cout.tie(0);
| ^~~~
nextprime.cpp:17:5: