Problem binarycoins
User cjcube
Submission Time 2024-12-19 11:26:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarycoins.cpp: In function ‘int main()’:
binarycoins.cpp:2:24: error: ‘cin’ was not declared in this scope
2 | unsigned long long b; cin >> b;
| ^~~
binarycoins.cpp:3:2: error: ‘string’ was not declared in this scope
3 | string binary = bitset<64>(b).to_string(); //cout << binary << "\n";
| ^~~~~~
binarycoins.cpp:6:7: error: ‘binary’ was not declared in this scope
6 | if (binary[i] == '1') count++;
| ^~~~~~
binarycoins.cpp:8:2: error: ‘cout’ was not declared in this scope; did you mean ‘count’?
8 | cout << count;
| ^~~~
| count