Problem smallprimes_ex
User shenshiqi
Submission Time 2026-10-25 18:09:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

smallprimes_ex.cpp: In function ‘void genL(int, int, long long int)’:
smallprimes_ex.cpp:15:9: error: ‘gen’ was not declared in this scope; did you mean ‘genL’?
15 | gen(idx + 1, end, cur);
| ^~~
| genL
smallprimes_ex.cpp: In function ‘void genR(int, int, long long int)’:
smallprimes_ex.cpp:23:9: error: reference to ‘right’ is ambiguous
23 | right.push_back(cur);
| ^~~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from smallprimes_ex.cpp:1:
/usr/include/c++/9/bits/ios_base.h:1019:3: note: candidates are: ‘std::ios_base& std::right(std::ios_base&)’
1019 | right(ios_