xylophone.cpp: In function 'void solve(int)':
xylophone.cpp:4:9: error: 'vector' was not declared in this scope
4 | vector<int> a(n+1,0);
| ^~~~~~
xylophone.cpp:4:16: error: expected primary-expression before 'int'
4 | vector<int> a(n+1,0);
| ^~~
xylophone.cpp:5:9: error: 'a' was not declared in this scope
5 | a[1]=query(1,2);
| ^
xylophone.cpp:9:37: error: 'x' was not declared in this scope; did you mean 'x2'?
9 | a[i]=a[i-1]+a*((abs(x-x2)==abs(a[i-1]-a[i-2]))==a[i-1]>a[i-2]? 1:-1);
| ^
| x2
xylophone.cpp:9:33: error: 'abs' was not declared in this scope
9 | a[i]=a[i-1]+a*((abs(x-x2)==abs(a[i-1]-a[i-2]))==a[i-1]>a[i-2]? 1:-1);
| ^~~