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

Compile Error

7up.cpp: In function ‘int main()’:
7up.cpp:17:30: error: invalid operands of types ‘__gnu_cxx::__enable_if<true, double>::__type’ {aka ‘double’} and ‘int’ to binary ‘operator%’
17 | else if (((floor(f/10)-7)%10)==0){
| ~~~~~~~~~~~~~~~^~~
| | |
| | int
| __gnu_cxx::__enable_if<true, double>::__type {aka double}
7up.cpp:20:31: error: invalid operands of types ‘__gnu_cxx::__enable_if<true, double>::__type’ {aka ‘double’} and ‘int’ to binary ‘operator%’
20 | else if (((floor(f/100)-7)%10)==0){
| ~~~~~~~~~~~~~~~~^~~
| | |
| | int
| __gnu_cxx::__enable_if<true, double>::__type {aka double}
7up.cpp:23:32: error: invalid operands of types ‘__gnu_cxx::__enable_if<true, double&g