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

Compile Error

bobek.cpp: In function ‘int main()’:
bobek.cpp:24:29: error: the value of ‘q’ is not usable in a constant expression
24 | string bi = bitset<q>(i1).to_string();
| ^
bobek.cpp:23:27: note: ‘q’ was not initialized with a constant expression
23 | const long unsigned int q = b1;
| ^
bobek.cpp:24:29: note: in template argument for type ‘long unsigned int’
24 | string bi = bitset<q>(i1).to_string();
| ^
bobek.cpp:36:29: error: the value of ‘q’ is not usable in a constant expression
36 | string bi = bitset<q>(i1).to_string();
| ^
bobek.cpp:35:27: note: ‘q’ was not initialized with a constant expression
35 | const long unsigned int q = b2;
| ^
bobek.cpp:36:29: note: in template argument for type ‘long unsigned int’
36