Problem binarycoins
User KYKY027
Submission Time 2026-03-07 09:03:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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:3: error: ‘numNotesX’ was not declared in this scope; did you mean ‘numNoteX’?
22 | numNotesX += iterator->first;
| ^~~~~~~~~
| numNoteX
binarycoins.cpp:24:8: error: ‘numNotesX’ was not declared in this scope; did you mean ‘numNoteX’?
24 | cout<<numNotesX;
| ^~~~~~~~~
| numNoteX