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

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:28:44: error: ‘ceil’ is not a member of ‘std’; did you mean ‘std::chrono::ceil’?
28 | for (unsigned long long i = 6; i < std::ceil(std::sqrt(N)); i+=6) {
| ^~~~
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)
| ^~~~
prime.cpp:28:54: error: ‘sqrt’ is not a member of ‘std’
28 | for (unsigned long long i = 6; i < std::ceil(std::sqrt(N)); i+=6) {
| ^~~~