Main.cc: In function 'int main()':
Main.cc:10:14: error: 'x' was not declared in this scope
cin>>x>>y;
^
Main.cc:7:26: warning: unused variable 'j' [-Wunused-variable]
int l,m,a[10001]={0},j,y,s=0;
^