Problem 7up
User cokeaholic07
Submission Time 2023-02-22 21:51:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

7up.cpp: In function ‘int main()’:
7up.cpp:12:6: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
12 | if(i%N==X) {
| ~^~
| | |
| | int
| double
7up.cpp:13:11: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
13 | int x= i%100;
| ~^~~~
| | |
| | int
| double
7up.cpp:14:11: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
14 | int y= i%1000;
| ~^~~~~
| | |
| | int
| double
7up.cpp:15:8: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
15 | if (i%7==0) {
| ~^~
| | |
| | int
| double
7up.cpp:18:15: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
18 | } else if