Problem oranges2
User PlayVoltz
Submission Time 2023-09-06 12:55:21
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:82:12: error: request for member ‘begin’ in ‘vect’, which is of non-class type ‘trio [e]’
82 | sort(vect.begin(), vect.end(), customsort);
| ^~~~~
oranges2.cpp:82:26: error: request for member ‘end’ in ‘vect’, which is of non-class type ‘trio [e]’
82