0_0_30524955_22943.cpp: In function 'int main()': 0_0_30524955_22943.cpp:10:9: error: redeclaration of 'int n' int n; ^ 0_0_30524955_22943.cpp:9:9: note: 'int n' previously declared here int n, i, j, k, cnt, sum, num; ^