0_0_33555525_1454.cpp: In function 'int main()': 0_0_33555525_1454.cpp:17:7: error: redeclaration of 'int max' int max = 0 ; ^ 0_0_33555525_1454.cpp:15:22: note: 'int max' previously declared here int a[1001] = {} , max = 0 , i , j; ^