Problem cyberland_apio23
User asbx
Submission Time 2023-11-20 11:54:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cyberland_apio23.cpp: In function ‘double solve(int, int, int, int, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)’:
cyberland_apio23.cpp:8:12: error: request for member ‘first’ in ‘i’, which is of non-class type ‘int’
8 | adjList[i.first]=x[M];
| ^~~~~
cyberland_apio23.cpp:9:12: error: request for member ‘second’ in ‘i’, which is of non-class type ‘int’
9 | adjList[i.second]=y[M];
| ^~~~~~
cyberland_apio23.cpp:14:10: error: ‘e’ was not declared in this scope
14 | dist[i]=e[i];
| ^
cyberland_apio23.cpp:21:10: error: ‘class std::vector<int>’ has no member named ‘first’
21 | if(c.first != dist[e.second]) continue;
| ^~~~~