Problem | prime |
---|---|
User | geometric2 |
Submission Time | 2023-11-04 21:57:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prime.cpp: In function ‘int main()’:
prime.cpp:13:19: error: the value of ‘n’ is not usable in a constant expression
13 | std::bitset<n + 1> isprime;
| ^
prime.cpp:5:4: note: ‘ln n’ is not const
5 | ln n;
| ^
prime.cpp:13:20: error: the value of ‘n’ is not usable in a constant expression
13 | std::bitset<n + 1> isprime;
| ^
prime.cpp:5:4: note: ‘ln n’ is not const
5 | ln n;
| ^
prime.cpp:13:17: note: in template argument for type ‘long unsigned int’
13 | std::bitset<n + 1> isprime;
| ~~^~~
prime.cpp:15:11: error: request for member ‘reset’ in ‘isprime’, which is of non-class type ‘int’
15 | isprime.reset();
| ^~~~~
prime.cpp:16:11: error: request for member ‘flip’ in ‘isprime’, which is of non-class type ‘int’
16 | isprime.flip();
| ^~~~
prime.cpp:17:12: