Main.cc: In function 'void move(int)':
Main.cc:6:19: error: 'n' was not declared in this scope
for(int i=idx;i<=n;i++){
^
Main.cc:9:4: error: 'n' was not declared in this scope
a[n]=tp;
^
Main.cc: In function 'int main()':
Main.cc:20:8: error: 't' was not declared in this scope
cin>>t;
^
Main.cc:13:10: warning: unused variable 'x' [-Wunused-variable]
int n,k,x;
^