Problem | nprime2 |
---|---|
User | tacticalnerd |
Submission Time | 2024-05-04 09:12:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
nprime2.cpp: In function ‘int nth_prime_mod6(long long int)’:
nprime2.cpp:44:17: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
44 | s = max(s, 2);
| ^~~
| std::max
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from nprime2.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:268:5: note: ‘std::max’ declared here
268 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
nprime2.cpp:46:17: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
46 | s = max(s, 1);
| ^~~
| std::max
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/