0_0_34221353_10656.cpp: In function 'int main()': 0_0_34221353_10656.cpp:29:13: error: redeclaration of 'int p' int p = b[n]; ^ 0_0_34221353_10656.cpp:22:13: note: 'int p' previously declared here int p = 1; ^