0_0_37686385_31822.cpp: In function 'void update2(int, int, int, int, int)': 0_0_37686385_31822.cpp:18:21: error: 'gcd' was not declared in this scope a[i]=gcd(a[i],val); ^