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

Compile Error

binarycoins.cpp: In function ‘int main()’:
binarycoins.cpp:18:4: error: invalid operands of types ‘long long unsigned int’ and ‘__gnu_cxx::__promote_2<long long unsigned int, long long unsigned int, double, double>::__type’ {aka ‘double’} to binary ‘operator%’
18 | n%=pow((int)2,i);
| ~^~~~~~~~~~~~~~~
binarycoins.cpp:18:18: error: in evaluation of ‘operator%=(long long unsigned int, __gnu_cxx::__promote_2<long long unsigned int, long long unsigned int, double, double>::__type {aka double})’
18 | n%=pow((int)2,i);
| ^