Problem oranges2
User PlayVoltz
Submission Time 2023-09-06 12:55:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

oranges2.cpp:8:33: error: template argument 1 is invalid
8 | vector<pair<ll, ll> graph[100000];
| ^
oranges2.cpp:8:33: error: template argument 2 is invalid
oranges2.cpp: In function ‘void precalc(long long int)’:
oranges2.cpp:60:17: error: ‘graph’ was not declared in this scope; did you mean ‘isgraph’?
60 | for (auto num:graph[cnode]){
| ^~~~~
| isgraph
oranges2.cpp: In function ‘int main()’:
oranges2.cpp:72:6: error: request for member ‘resize’ in ‘dsu’, which is of non-class type ‘long long int [100000]’
72 | dsu.resize(n, -1);
| ^~~~~~
oranges2.cpp:85:4: error: ‘graph’ was not declared in this scope; did you mean ‘isgraph’?
85 | graph[num.first].push_back(make_pair(num.second, num.third));
| ^~~~~
| isgraph