Problem gcd
User monke
Submission Time 2025-12-03 09:21:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:7:14: error: invalid operands of types ‘double’ and ‘double’ to binary ‘operator%’
7 | if (number1%i==0&&number2%i==0){
| ~~~~~~~^~
| | |
| double double
gcd.cpp:7:28: error: invalid operands of types ‘double’ and ‘double’ to binary ‘operator%’
7 | if (number1%i==0&&number2%i==0){
| ~~~~~~~^~
| | |
| double double