Problem erp
User HighLithop
Submission Time 2025-08-06 16:32:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

erp.cpp: In function ‘std::vector<long long int> dijkstra(std::vector<std::vector<std::pair<long long int, long long int> > >&, ll)’:
erp.cpp:14:20: error: ‘LLONG_MAX’ was not declared in this scope
14 | dist.resize(N, LLONG_MAX);
| ^~~~~~~~~
erp.cpp:4:1: note: ‘LLONG_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
3 | #include <queue>
+++ |+#include <climits>
4 | using namespace std;
erp.cpp: In function ‘int main()’:
erp.cpp:69:28: error: ‘LLONG_MAX’ was not declared in this scope
69 | ll constant_cost = LLONG_MAX;
| ^~~~~~~~~
erp.cpp:69:28: note: ‘LLONG_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?