Problem | timeexam |
---|---|
User | P55D2K |
Submission Time | 2023-04-14 20:10:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
timeexam.cpp: In function ‘int main()’:
timeexam.cpp:14:62: error: invalid operands of types ‘long double’ and ‘int’ to binary ‘operator%’
14 | cout << "0" << amt_of_minutes / 60 << amt_of_minutes % 60 << endl;
| ~~~~~~~~~~~~~~ ^ ~~
| | |
| long double int
timeexam.cpp:16:64: error: invalid operands of types ‘long double’ and ‘int’ to binary ‘operator%’
16 | cout << amt_of_minutes / 3600 << (amt_of_minutes / 60) % 60 << amt_of_minutes % 60 << endl;
| ~~~~~~~~~~~~~~~~~~~~~ ^ ~~
| | |
| | int
|