xylophone.cpp: In function 'int solve(int)':
xylophone.cpp:11:28: error: 'query' was not declared in this scope
for(int i=1;i<n;i++)d1[i]=query(i,i+1);
^~~~~
xylophone.cpp:12:30: error: 'query' was not declared in this scope
for(int i=1;i<n-1;i++)d2[i]=query(i,i+2);
^~~~~
xylophone.cpp:46:2: error: 'a' was not declared in this scope
a[minn]=1;
^
xylophone.cpp:50:23: error: 'answer' was not declared in this scope
for(int i=1;i<=n;i++)answer(i,a[i]);
^~~~~~
xylophone.cpp:50:23: note: suggested alternative: 'assert'
for(int i=1;i<=n;i++)answer(i,a[i]);
^~~~~~
assert
xylophone.cpp:51:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^