xylophone.cpp: In function 'void solve(int)':
xylophone.cpp:3:5: error: 'vector' was not declared in this scope
3 | vector<vector<int>> a(n + 1, vector<int>(n + 1));
| ^~~~~~
xylophone.cpp:3:19: error: expected primary-expression before 'int'
3 | vector<vector<int>> a(n + 1, vector<int>(n + 1));
| ^~~
xylophone.cpp:4:12: error: 'set' was not declared in this scope
4 | vector<set<pair<int, int>>> s(n + 1);
| ^~~
xylophone.cpp:4:16: error: 'pair' was not declared in this scope
4 | vector<set<pair<int, int>>> s(n + 1);
| ^~~~
xylophone.cpp:4:21: error: expected primary-expression before 'int'
4 | vector<set<pair<int, int>>> s(n + 1);
| ^~~
xylophone.cpp:7:9: error: 'a' was not declared in this scope
7 | a[i][i + 1] = query(i, i + 1);
| ^
xylophone.cpp:7:23: error: 'query' was not declared in this scope
7 | a[i][i + 1] = query(i, i + 1);
| ^~~~~
xylophone.cpp:8:9: error: 's' was not declared in this scope
8 | s[a[i][i + 1]].insert({i, i + 1});
| ^
xylophone.cpp:12:17: error: 'query' was not declared in this scope
12 | int v = query(i, i + 2);
| ^~~~~
xylophone.cpp:13:18: error: 'a' was not declared in this scope
13 | if (v == a[i][i + 1] + a[i + 1][i + 2])
| ^
xylophone.cpp:16:13: error: 's' was not declared in this scope
16 | s[v].insert({i, i + 2});
| ^
xylophone.cpp:23:17: error: 's' was not declared in this scope
23 | s[a[i][i + 2]].insert({i, i + 2});
| ^
xylophone.cpp:28:17: error: 's' was not declared in this scope
28 | s[a[i][i + 2]].insert({i, i + 2});
| ^
xylophone.cpp:36:20: error: 'a' was not declared in this scope
36 | sum += a[j][j + 1];
| ^
xylophone.cpp:39:20: error: 'a' was not declared in this scope
39 | sum -= a[j - 1][j];
| ^
xylophone.cpp:41:21: error: 'query' was not declared in this scope
41 | int v = query(j, i + j);
| ^~~~~
xylophone.cpp:45:17: error: 's' was not declared in this scope
45 | s[v].insert({j, i + j});
| ^
xylophone.cpp:49:26: error: 's' was not declared in this scope
49 | auto t = s[v].lower_bound({j, 0});
| ^
xylophone.cpp:62:39: error: 'min' was not declared in this scope
62 | a[j][i + j] = v - min(a[j][t->first] + a[t->second][j + i], a[j][t->second] + a[t->first][j + i]);
| ^~~
xylophone.cpp:71:17: error: 'a' was not declared in this scope
71 | if (a[i][j] == n - 1)
| ^
xylophone.cpp:86:13: error: 'answer' was not declared in this scope
86 | answer(i, 1);
| ^~~~~~
xylophone.cpp:88:38: error: 'a' was not declared in this scope
88 | answer(i, 1 + (i < pos ? a[i][pos] : a[pos][i]));
| ^
xylophone.cpp:88:13: error: 'answer' was not declared in this scope
88 | answer(i, 1 + (i < pos ? a[i][pos] : a[pos][i]));
| ^~~~~~
xylophone.cpp:91:9: error: 's' was not declared in this scope
91 | s[i].clear();
| ^