xylophone.cpp: In function 'void solve(int)':
xylophone.cpp:26:5: error: 'vector' was not declared in this scope
26 | vector<vector<int>> a(n + 1, vector<int>(n + 1));
| ^~~~~~
xylophone.cpp:4:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
3 | #include <set>
+++ |+#include <vector>
4 | #define task ""
xylophone.cpp:26:19: error: expected primary-expression before 'int'
26 | vector<vector<int>> a(n + 1, vector<int>(n + 1));
| ^~~
xylophone.cpp:27:31: error: expected primary-expression before '>' token
27 | vector<set<pair<int, int>>> s(n + 1);
| ^
xylophone.cpp:27:33: error: 's' was not declared in this scope
27 | vector<set<pair<int, int>>> s(n + 1);
| ^
xylophone.cpp:30:9: error: 'a' was not declared in this scope
30 | a[i][i + 1] = query(i, i + 1);
| ^
xylophone.cpp:30:23: error: 'query' was not declared in this scope
30 | a[i][i + 1] = query(i, i + 1);
| ^~~~~
xylophone.cpp:35:17: error: 'query' was not declared in this scope
35 | int v = query(i, i + 2);
| ^~~~~
xylophone.cpp:36:18: error: 'a' was not declared in this scope
36 | if (v == a[i][i + 1] + a[i + 1][i + 2])
| ^
xylophone.cpp:59:20: error: 'a' was not declared in this scope
59 | sum += a[j][j + 1];
| ^
xylophone.cpp:62:20: error: 'a' was not declared in this scope
62 | sum -= a[j - 1][j];
| ^
xylophone.cpp:64:21: error: 'query' was not declared in this scope
64 | int v = query(j, i + j);
| ^~~~~
xylophone.cpp:94:17: error: 'a' was not declared in this scope
94 | if (a[i][j] == n - 1)
| ^
xylophone.cpp:109:13: error: 'answer' was not declared in this scope
109 | answer(i, 1);
| ^~~~~~
xylophone.cpp:111:38: error: 'a' was not declared in this scope
111 | answer(i, 1 + (i < pos ? a[i][pos] : a[pos][i]));
| ^
xylophone.cpp:111:13: error: 'answer' was not declared in this scope
111 | answer(i, 1 + (i < pos ? a[i][pos] : a[pos][i]));
| ^~~~~~