0_0_19157790_1474.cpp: In function 'int main()': 0_0_19157790_1474.cpp:95:9: error: redeclaration of 'int g' int g = 1; ^ 0_0_19157790_1474.cpp:94:9: note: 'int g' previously declared here int g = abs(gcd(Y, X)); ^