Problem gcd
User LeonKong
Submission Time 2026-11-02 13:01:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:11:15: error: invalid operands of types ‘float’ and ‘long long int’ to binary ‘operator%’
11 | if (a % i == 0 && b % i == 0){
| ~ ^ ~
| | |
| | long long int
| float
gcd.cpp:11:29: error: invalid operands of types ‘float’ and ‘long long int’ to binary ‘operator%’
11 | if (a % i == 0 && b % i == 0){
| ~ ^ ~
| | |
| | long long int
| float