0_0_28598905_2014.cpp: In function 'int main()': 0_0_28598905_2014.cpp:12:13: error: redeclaration of 'int i' int i,j=0,k,t; ^ 0_0_28598905_2014.cpp:10:13: note: 'int i' previously declared here for(int i=0;i<n;i++) ^