Problem prime
User Damen
Submission Time 2023-12-30 13:32:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:28:44: error: ‘sqrt’ was not declared in this scope
28 | for (unsigned long long i = 6; i < ceil(sqrt(N)); i+=6) {
| ^~~~
prime.cpp:28:39: error: ‘ceil’ was not declared in this scope; did you mean ‘std::chrono::ceil’?
28 | for (unsigned long long i = 6; i < ceil(sqrt(N)); i+=6) {
| ^~~~
| std::chrono::ceil
In file included from prime.cpp:2:
/usr/include/c++/9/chrono:703:7: note: ‘std::chrono::ceil’ declared here
703 | ceil(const time_point<_Clock, _Dur>& __tp)
| ^~~~