0_0_17281438_32586.cpp: In function 'int main()': 0_0_17281438_32586.cpp:35:6: error: redeclaration of 'int i' int i=0; ^ 0_0_17281438_32586.cpp:27:11: note: 'int i' previously declared here for(int i=1;i<=N;i++){ ^