Problem | cyberland_apio23 |
---|---|
User | Hijackedsoul |
Submission Time | 2024-02-12 17:57:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cyberland_apio23.cpp: In function ‘void dijkstra(int, int, std::vector<int>)’:
cyberland_apio23.cpp:19:10: error: no match for ‘operator[]’ (operand types are ‘std::vector<int>’ and ‘std::pair<int, int>’)
19 | if(arr[i]=0){
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from cyberland_apio23.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:1040:7: note: candidate: ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::reference = int&; std::vector<_Tp, _Alloc>::size_type = long uns