Problem binarycoins
User dumgod
Submission Time 2025-02-26 09:19:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarycoins.cpp: In function ‘int main()’:
binarycoins.cpp:16:17: error: expected ‘;’ before ‘>’ token
16 | for(int i=63, i>0, i++){
| ^
| ;
binarycoins.cpp:16:17: error: expected primary-expression before ‘>’ token
binarycoins.cpp:16:24: error: expected ‘;’ before ‘)’ token
16 | for(int i=63, i>0, i++){
| ^
| ;
binarycoins.cpp:18:4: error: invalid operands of types ‘long long unsigned int’ and ‘__gnu_cxx::__promote_2<int, long long unsigned int, double, double>::__type’ {aka ‘double’} to binary ‘operator%’
18 | n%=pow(2,i);
| ~^~~~~~~~~~
binarycoins.cpp:18:13: error: in evaluation of ‘operator%=(long long unsigned int, __gnu_cxx::__promote_2<int, long long unsigned int, double, double>::__type {aka double})’
18 | n%=pow(2,i);
| ^