Problem | 7up |
---|---|
User | glog |
Submission Time | 2023-02-27 17:37:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
7up.cpp: In function ‘int main()’:
7up.cpp:14:21: error: expected primary-expression before ‘)’ token
14 | if(((i+1)%7)==0)){
| ^
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