Problem binarycoins
User beefburger
Submission Time 2026-02-18 17:04:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarycoins.cpp: In function ‘int main()’:
binarycoins.cpp:10:13: error: conflicting declaration ‘std::bitset<64> b’
10 | bitset<64> b(b);
| ^
binarycoins.cpp:6:21: note: previous declaration as ‘long long unsigned int b’
6 | unsigned long long b;
| ^
binarycoins.cpp:11:4: error: request for member ‘to_string’ in ‘b’, which is of non-class type ‘long long unsigned int’
11 | b.to_string();
| ^~~~~~~~~
binarycoins.cpp:12:24: error: request for member ‘size’ in ‘b’, which is of non-class type ‘long long unsigned int’
12 | for (int i = 1; i<= b.size(); i++){
| ^~~~
binarycoins.cpp:13:6: error: expected ‘(’ before ‘b’
13 | if b[i] == 1{
| ^
| (