xylophone.cpp: In function 'void solve(int)':
xylophone.cpp:5:13: error: 'maxn' was not declared in this scope
int arr[maxn];
^~~~
xylophone.cpp:8:9: error: 'two' was not declared in this scope
two[i]=query(i, i+1);
^~~
xylophone.cpp:10:9: error: 'three' was not declared in this scope
three[i]=query(i, i+2);
^~~~~
xylophone.cpp:11:8: error: 'three' was not declared in this scope
if(three[1]==two[1]+two[2])
^~~~~
xylophone.cpp:11:18: error: 'two' was not declared in this scope
if(three[1]==two[1]+two[2])
^~~
xylophone.cpp:12:9: error: 'sgn' was not declared in this scope
sgn[1]=sgn[2]=1;
^~~
xylophone.cpp:12:9: note: suggested alternative: 'signed'
sgn[1]=sgn[2]=1;
^~~
signed
xylophone.cpp:13:10: error: 'sgn' was not declared in this scope
else sgn[1]=1, sgn[2]=-1;
^~~
xylophone.cpp:13:10: note: suggested alternative: 'signed'
else sgn[1]=1, sgn[2]=-1;
^~~
signed
xylophone.cpp:16:12: error: 'two' was not declared in this scope
if(two[i-1]+two[i]!=three[i-1])
^~~
xylophone.cpp:16:29: error: 'three' was not declared in this scope
if(two[i-1]+two[i]!=three[i-1])
^~~~~
xylophone.cpp:17:13: error: 'sgn' was not declared in this scope
sgn[i]=-sgn[i-1];
^~~
xylophone.cpp:17:13: note: suggested alternative: 'signed'
sgn[i]=-sgn[i-1];
^~~
signed
xylophone.cpp:18:14: error: 'sgn' was not declared in this scope
else sgn[i]=sgn[i-1];
^~~
xylophone.cpp:18:14: note: suggested alternative: 'signed'
else sgn[i]=sgn[i-1];
^~~
signed
xylophone.cpp:20:5: error: 'arr' was not declared in this scope
arr[1]=1;
^~~
xylophone.cpp:21:12: error: 'INT_MAX' was not declared in this scope
int mn=INT_MAX;
^~~~~~~
xylophone.cpp:21:12: note: suggested alternative: '__INT_MAX__'
int mn=INT_MAX;
^~~~~~~
__INT_MAX__
xylophone.cpp:24:25: error: 'sgn' was not declared in this scope
arr[i]=arr[i-1]+sgn[i-1]*two[i-1];
^~~
xylophone.cpp:24:34: error: 'two' was not declared in this scope
arr[i]=arr[i-1]+sgn[i-1]*two[i-1];
^~~
xylophone.cpp:25:12: error: 'min' was not declared in this scope
mn=min(mn, arr[i]);
^~~
xylophone.cpp:25:12: note: suggested alternative: 'mn'
mn=min(mn, arr[i]);
^~~
mn