Problem | firefighting |
---|---|
User | cobnet |
Submission Time | 2023-01-29 01:59:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
firefighting.cpp: In function ‘long long int shortestPath(int, int, std::vector<std::pair<int, int> >*, int)’:
firefighting.cpp:51:2: error: ‘else’ without a previous ‘if’
51 | else
| ^~~~
firefighting.cpp: In function ‘int main()’:
firefighting.cpp:58:33: error: missing template arguments after ‘array<...auto...>’
58 | memset(dist_table, INF, sizeof(array[0][0]) * 300000 * 300000);
| ^~~~~
In file included from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from firefighting.cpp:4:
/usr/include/c++/9/array:94:12: note: ‘template<class _Tp, long unsigned int _Nm> struct std::array’ declared here
94 | struct array
| ^~~~~
firefighting.cpp:58:2: error: ‘memset’ w