Main.cc: In function 'int main()':
Main.cc:7:15: error: redeclaration of 'int a [10000]'
int n,a[10000]={0},m;
^
Main.cc:6:10: note: 'int a' previously declared here
for(int a=1;a<=k;a++){
^
Main.cc:20:15: error: 'b' was not declared in this scope
if(max<=ceil(b/2.0)){
^