/in/foo.cc:4:1: error: expected ',' or ';' before 'int'
4 | int n,p,q,a[N],b[N];
| ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:14: error: 'n' was not declared in this scope
6 | cin>>n>>p>>q;
| ^
/in/foo.cc:6:17: error: 'p' was not declared in this scope
6 | cin>>n>>p>>q;
| ^
/in/foo.cc:6:20: error: 'q' was not declared in this scope
6 | cin>>n>>p>>q;
| ^
/in/foo.cc:8:22: error: 'a' was not declared in this scope
8 | cin>>a[i];
| ^
/in/foo.cc:9:17: error: 'b' was not declared in this scope
9 | b[i]=i;
| ^
/in/foo.cc:13:23: error: 'a' was not declared in this scope
13 | int x=a[i],y=b[i];
| ^
/in/foo.cc:14:40: error: 'y' was not declared in this scope
14 | for(;(x<a[j]||a[j]==x&&y>b[j])&&j>=1;j--){
| ^
/in/foo.cc:14:42: error: 'b' was not declared in this scope
14 | for(;(x<a[j]||a[j]==x&&y>b[j])&&j>=1;j--){
| ^
/in/foo.cc:18:26: error: 'b' was not declared in this scope
18 | a[j+1]=x,b[j+1]=y;
| ^
/in/foo.cc:18:33: error: 'y' was not declared in this scope
18 | a[j+1]=x,b[j+1]=y;
| ^
/in/foo.cc:21:23: error: 'b' was not declared in this scope
21 | cout<<b[i]<<' ';
| ^