Problem | bobek |
---|---|
User | Pan |
Submission Time | 2023-09-06 15:49:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bobek.cpp: In function ‘int main()’:
bobek.cpp:23:30: error: the value of ‘b1’ is not usable in a constant expression
23 | string bi = bitset<b1>(i1).to_string();
| ^
bobek.cpp:17:9: note: ‘int b1’ is not const
17 | int b1 = N / 2;
| ^~
bobek.cpp:23:30: note: in template argument for type ‘long unsigned int’
23 | string bi = bitset<b1>(i1).to_string();
| ^
bobek.cpp:34:30: error: the value of ‘b2’ is not usable in a constant expression
34 | string bi = bitset<b2>(i1).to_string();
| ^
bobek.cpp:18:9: note: ‘int b2’ is not const
18 | int b2 = N - b1;
| ^~
bobek.cpp:34:30: note: in template argument for type ‘long unsigned int’
34 | string bi = bitset<b2>(i1).to_string();
| ^