Problem 7up
User glog
Submission Time 2023-02-27 17:38:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

7up.cpp: In function ‘int main()’:
7up.cpp:17:37: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
17 | else if (((floor((float)f/10)-7)%10)==0){
| ~~~~~~~~~~~~~~~~~~~~~~^~~
| | |
| | int
| float
7up.cpp:20:38: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
20 | else if (((floor((float)f/100)-7)%10)==0){
| ~~~~~~~~~~~~~~~~~~~~~~~^~~
| | |
| | int
| float
7up.cpp:23:39: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
23 | else if (((floor((float)f/1000)-7)%10)==0){
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~
| | |