0_0_32591466_32437.cpp: In function 'int main()': 0_0_32591466_32437.cpp:12:12: error: redeclaration of 'int i' int i,n,m1,m2; ^ 0_0_32591466_32437.cpp:9:13: note: 'int i' previously declared here for(int i=0;i<num;i++) ^