Problem | change |
---|---|
User | TheGhostKing |
Submission Time | 2023-01-10 19:39:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
change.cpp: In function ‘int main()’:
change.cpp:14:18: error: expected initializer before ‘-=’ token
14 | int left -= i*50;
| ^~
change.cpp:18:32: error: invalid operands of types ‘std::ios_base&(std::ios_base&)’ and ‘int’ to binary ‘operator/’
18 | int twenty = min(c,left/20);
| ~~~~^~~
| | |
| | int
| std::ios_base&(std::ios_base&)
change.cpp:19:14: error: assignment of read-only location ‘std::left’
19 | left -= twenty * 20;
| ~~~~~^~~~~~~~~~~~~~
change.cpp:20:29: error: invalid operands of types ‘std::ios_base&(std::ios_base&)’ and ‘int’ to binary ‘operator/’
20 | int ten = min(c,left/10);
| ~~~~^~~
| | |
| | int