Problem binarycoins
User Cat
Submission Time 2025-04-28 16:19:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarycoins.cpp: In function ‘long long int a(long long int)’:
binarycoins.cpp:5:31: error: ‘sum’ was not declared in this scope
5 | return __builtin_popcount(sum);
| ^~~
binarycoins.cpp:6:14: error: a function-definition is not allowed here before ‘{’ token
6 | signed main(){
| ^
binarycoins.cpp:11:1: error: expected ‘}’ at end of input
11 | }
| ^
binarycoins.cpp:4:14: note: to match this ‘{’
4 | int a(int b) {
| ^