Problem reopening
User LCJLY
Submission Time 2022-12-28 17:00:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

reopening.cpp: In function ‘int32_t main()’:
reopening.cpp:87:25: error: request for member ‘first’ in ‘it’, which is of non-class type ‘long long int’
87 | int nx = it.first, nd = d+1;
| ^~~~~
reopening.cpp:88:47: error: ‘nd’ was not declared in this scope; did you mean ‘nx’?
88 | if (dist[nx] != -1 && dist[nx] <= nd) continue;
| ^~
| nx
reopening.cpp:89:24: error: ‘nd’ was not declared in this scope; did you mean ‘nx’?
89 | dist[nx] = nd;
| ^~
| nx
reopening.cpp:97:16: error: no match for ‘operator[]’ (operand types are ‘long long int [(a + 1)]’ and ‘std::vector<long long int>’)
97 | if(dist[v]>best){
| ^
reopening.cpp:98:22: error: no match for ‘operator[]’ (oper