Problem | binaryroads |
---|---|
User | jeongwonho64 |
Submission Time | 2023-12-01 09:23:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
binaryroads.cpp: In function ‘int32_t main()’:
binaryroads.cpp:40:21: error: no match for ‘operator[]’ (operand types are ‘long long int [(n + 5)][2]’ and ‘std::pair<long long int, long long int>’)
40 | if (dist[i][!c.second] != -1) continue;
| ^
binaryroads.cpp:42:17: error: no match for ‘operator[]’ (operand types are ‘long long int [(n + 5)][2]’ and ‘std::pair<long long int, long long int>’)
42 | dist[i][i.second] = dist[c.first][c.second] + 1;
| ^
binaryroads.cpp:43:33: error: no matching function for call to ‘std::queue<std::pair<long long int, long long int> >::push(<brace-enclosed initializer list>)’
43 | q.push({i, i.second});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from binaryr