0_0_37689331_15012.cpp: In function 'void solve()': 0_0_37689331_15012.cpp:29:30: error: 'gcd' was not declared in this scope int g = gcd(dx,dy); ^