Problem binarycoins
User xinjiapowan
Submission Time 2025-09-03 14:39:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarycoins.cpp: In function ‘int main()’:
binarycoins.cpp:5:2: error: ‘unsigend’ was not declared in this scope; did you mean ‘unsigned’?
5 | unsigend long long n,ans=0;
| ^~~~~~~~
| unsigned
binarycoins.cpp:6:9: error: ‘n’ was not declared in this scope
6 | cin >> n;
| ^
binarycoins.cpp:9:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
9 | ans += (n & 1);
| ^~~
| abs
binarycoins.cpp:12:10: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
12 | cout << ans;
| ^~~
| abs