xylophone.cpp: In function 'void solve(int)':
xylophone.cpp:4:8: error: 'N' was not declared in this scope
int a[N], d1[N], d2[N];
^
xylophone.cpp:6:3: error: 'd1' was not declared in this scope
d1[i] = query(i + 1, i + 2);
^~
xylophone.cpp:8:3: error: 'd2' was not declared in this scope
d2[i] = query(i + 1, i + 3);
^~
xylophone.cpp:9:2: error: 'a' was not declared in this scope
a[0] = 0, a[1] = d1[1];
^
xylophone.cpp:9:19: error: 'd1' was not declared in this scope
a[0] = 0, a[1] = d1[1];
^~
xylophone.cpp:12:35: error: 'd2' was not declared in this scope
tmp = 1 - (d1[i - 1] + d1[i] != d2[i - 1]);
^~