xylophone.cpp: In function 'int solve(int)':
xylophone.cpp:15:6: error: 'query' was not declared in this scope
if(query(1,mid)==n-1)
^~~~~
xylophone.cpp:27:22: error: 'query' was not declared in this scope
if(sol<n)a[sol+1]=n-query(sol,sol+1);
^~~~~
xylophone.cpp:28:13: error: 'query' was not declared in this scope
a[sol-1]=n-query(sol-1,sol);
^~~~~
xylophone.cpp:45:28: error: expected ']' before ')' token
else if(br2<1 || bio[br2)a[i]=br1;
^
xylophone.cpp:74:28: error: expected ']' before ')' token
else if(br2<1 || bio[br2)a[i]=br1;
^
xylophone.cpp:89:23: error: 'answer' was not declared in this scope
for(int i=1;i<=n;i++)answer(i,a[i]);
^~~~~~
xylophone.cpp:89:23: note: suggested alternative: 'assert'
for(int i=1;i<=n;i++)answer(i,a[i]);
^~~~~~
assert
xylophone.cpp:90:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^