Problem mrt
User HighLithop
Submission Time 2025-07-30 16:11:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mrt.cpp: In function ‘void floyd()’:
mrt.cpp:18:44: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> >, std::vector<long long int> >::value_type’ {aka ‘std::vector<long long int>’} to ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’} in assignment
18 | dist[i][neighbour] = adj_list[i]; // adj list is i -> neighbour, dist[from][to]
| ^
mrt.cpp: In function ‘int main()’:
mrt.cpp:38:19: error: ‘Q’ was not declared in this scope
38 | cin >> N >> M >> Q;
| ^
mrt.cpp:44:34: error: no matching function for call to ‘std::vector<long long int>::push_back(<brace-enclosed initializer list>)’
44 | adj_list[a].push_back({b, w});
| ^
In file included from /us