| Problem | weddingcoins |
|---|---|
| User | Rayn |
| Submission Time | 2026-11-03 08:59:14 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:10:15: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
10 | n = n % 1000000;
| ~ ^ ~~~~~~~
| | |
| | int
| float
weddingcoins.cpp:14:15: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
14 | n = n % 500000;
| ~ ^ ~~~~~~
| | |
| | int
| float
weddingcoins.cpp:18:15: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
18 | n = n % 100000;
| ~ ^ ~~~~~~
| | |
| | int
| float
weddingcoins.cpp:22:15: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
22 | n = n % 50000;
| ~ ^ ~~~~~
|