| Problem | binarycoins |
|---|---|
| User | KYKY027 |
| Submission Time | 2026-03-06 14:04:57 |
| 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:21:48: error: expected ‘;’ before ‘!=’ token
21 | for(auto iterator = numNotes.begin(), iterator != numNotes.end(), iterator++){
| ^~~
| ;
binarycoins.cpp:21:49: error: expected primary-expression before ‘!=’ token
21 | for(auto iterator = numNotes.begin(), iterator != numNotes.end(), iterator++){
| ^~
binarycoins.cpp:21:78: error: expected ‘;’ before ‘)’ token
21