| Problem | binarycoins |
|---|---|
| User | KYKY027 |
| Submission Time | 2026-03-06 14:01:09 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarycoins.cpp: In function ‘int main()’:
binarycoins.cpp:11:20: error: invalid type argument of unary ‘*’ (have ‘int’)
11 | biggestNote = 2**maxPower;
| ^~~~~~~~
binarycoins.cpp:15:16: error: conflicting declaration ‘std::map<int, int> numNotes’
15 | map<int, int> numNotes;
| ^~~~~~~~
binarycoins.cpp:5:32: note: previous declaration as ‘int numNotes’
5 | int B, maxPower, biggestNote, numNotes;
| ^~~~~~~~
binarycoins.cpp:19:8: error: invalid operands of types ‘int’ and ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} to binary ‘operator%’
19 | B = B%(pow(2,(maxPower-i)));
| ~^~~~~~~~~~~~~~~~~~~~~~
| | |
| int __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}
binarycoins.cpp:20:31: error: invalid types ‘int[__gnu_cxx::__promote_2<