Problem | firefighting |
---|---|
User | cobnet |
Submission Time | 2023-01-29 04:06:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
firefighting.cpp: In function ‘int shortestPath(int, int, std::vector<std::pair<int, int> >*, int)’:
firefighting.cpp:8:13: error: ‘INT_MAX’ was not declared in this scope
8 | #define INF INT_MAX
| ^~~~~~~
firefighting.cpp:17:25: note: in expansion of macro ‘INF’
17 | vector<int> dist(V, INF);
| ^~~
firefighting.cpp:5:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
4 | #include <algorithm>
+++ |+#include <climits>
5 | using namespace std;
firefighting.cpp: In function ‘int main()’:
firefighting.cpp:8:13: error: ‘INT_MAX’ was not declared in this scope
8 | #define INF INT_MAX
| ^~~~~~~
firefighting.cpp:92:16: note: in expansion of macro ‘INF’
92 | int md = INF;
| ^~~
firefighting.cpp:8:13: note: ‘INT_MAX’ is defined in header ‘&l