0_0_36233577_14681.cpp: In function 'int main()': 0_0_36233577_14681.cpp:62:8: error: redeclaration of 'int i' int i; ^ 0_0_36233577_14681.cpp:49:11: note: 'int i' previously declared here for(int i=0;i<n;i++) ^