| Problem | binarycoins |
|---|---|
| User | KYKY027 |
| Submission Time | 2026-03-06 14:05:17 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarycoins.cpp: In function ‘int main()’:
binarycoins.cpp:18:8: error: invalid operands of types ‘int’ and ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} to binary ‘operator%’
18 | B = B%(pow(2,(maxPower-i)));
| ~^~~~~~~~~~~~~~~~~~~~~~
| | |
| int __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}
binarycoins.cpp:22:12: error: no match for ‘operator+=’ (operand types are ‘std::map<int, int>’ and ‘const int’)
22 | numNotes += iterator->first;
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~
binarycoins.cpp:24:6: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::map<int, int>’)
24 | cout<<numNotes;
| ~~~~^~~~~~~~~~
| | |
| | std::map<int, int>
| std::ostream {aka std::basic_ostream<char>}
In file includ