closing.cpp:5:1: error: 'vector' does not name a type
5 | vector<int> adj[MAXN];
| ^~~~~~
closing.cpp: In function 'void dfs(int, int, int*)':
closing.cpp:9:22: error: 'adj' was not declared in this scope
9 | for (auto [to, w] : adj[node]){
| ^~~
closing.cpp: At global scope:
closing.cpp:14:49: error: 'vector' has not been declared
14 | int max_score(int N, int X, int Y, long long K, vector<int> U, vector<int> V, vector<int> W)
| ^~~~~~
closing.cpp:14:55: error: expected ',' or '...' before '<' token
14 | int max_score(int N, int X, int Y, long long K, vector<int> U, vector<int> V, vector<int> W)
| ^
closing.cpp: In function 'int max_score(int, int, int, long long int, int)':
closing.cpp:17:3: error: 'adj' was not declared in this scope
17 | adj[U[i]].push_back({V[i], W[i]});
| ^~~
closing.cpp:17:7: error: 'U' was not declared in this scope
17 | adj[U[i]].push_back({V[i], W[i]});
| ^
closing.cpp:17:24: error: 'V' was not declared in this scope
17 | adj[U[i]].push_back({V[i], W[i]});
| ^
closing.cpp:17:30: error: 'W' was not declared in this scope
17 | adj[U[i]].push_back({V[i], W[i]});
| ^
closing.cpp:22:2: error: 'priority_queue' was not declared in this scope
22 | priority_queue<int, vector<int>, greater<int>> pq;
| ^~~~~~~~~~~~~~
closing.cpp:22:17: error: expected primary-expression before 'int'
22 | priority_queue<int, vector<int>, greater<int>> pq;
| ^~~
closing.cpp:24:3: error: 'pq' was not declared in this scope
24 | pq.push(dep1[i]);
| ^~
closing.cpp:28:10: error: 'pq' was not declared in this scope
28 | while (!pq.empty && pq.top() <= K){
| ^~