0_0_29204726_16159.cpp:46:5: error: redefinition of 'int n' int n; ^ 0_0_29204726_16159.cpp:45:6: note: 'int n' previously declared here int n = read(); ^