Problem heatwv
User MegaG
Submission Time 2026-02-18 19:13:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

heatwv.cpp: In function ‘std::vector<long long int> dijkstra(long long int, std::vector<std::pair<long long int, long long int> >*, long long int)’:
heatwv.cpp:9:29: error: ‘INT_MAX’ was not declared in this scope
9 | vector<int> dist(n + 1, INT_MAX);
| ^~~~~~~
heatwv.cpp:4:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
3 | #include <queue>
+++ |+#include <climits>
4 | #include <utility>