Main.cc: In function 'int main()':
Main.cc:8:7: error: 'a' was not declared in this scope
cin>>a[i];
^
Main.cc:10:9: error: conflicting declaration 'int b [11]'
int b[11];
^
Main.cc:6:5: note: previous declaration as 'int b [(m + 1)]'
int b[m+1];
^
Main.cc:15:8: error: 'a' was not declared in this scope
int x=a[i];
^