Problem firefighting
User cobnet
Submission Time 2023-01-29 01:59:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

firefighting.cpp: In function ‘int main()’:
firefighting.cpp:59:33: error: missing template arguments after ‘array<...auto...>’
59 | 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:59:2: error: ‘memset’ was not declared in this scope
59 | memset(dist_table, INF, sizeof(array[0][0]) * 300000 * 300000);
| ^~~~~~
firefighting.cpp:5:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘