Problem bobek
User Pan
Submission Time 2023-09-06 15:50:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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:15: note: ‘b1’ was not initialized with a constant expression
17 | const 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:15: note: ‘b2’ was not initialized with a constant expression
18 | const int b2 = N - b1;
| ^~
bobek.cpp:34:30: note: in template argument for type ‘long unsigned int’
34 | string bi = bits