Problem | mrt |
---|---|
User | wezmaster |
Submission Time | 2023-11-17 13:29:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mrt.cpp: In function ‘void dijkstra(const std::vector<std::vector<Edge> >&, int, std::vector<int>&)’:
mrt.cpp:24:14: error: invalid conversion from ‘int’ to ‘time_t*’ {aka ‘long int*’} [-fpermissive]
24 | time(current_distance, current_node) = pq.top();
| ^~~~~~~~~~~~~~~~
| |
| int
mrt.cpp:24:44: error: too many arguments to function ‘time_t time(time_t*)’
24 | time(current_distance, current_node) = pq.top();
| ^
In file included from /usr/include/pthread.h:23,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h:148,
from /usr/include/c++/9/ext/atomicity.h:35,
from /usr/include/c++/9/bits/ios_base.h:39,
from /usr/include/c++/9/ios:42,