Problem trains
User dhivinaash
Submission Time 2024-07-17 16:12:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trains.cpp: In function ‘int main()’:
trains.cpp:16:23: error: ‘INT_MAX’ was not declared in this scope
16 | vector<int> dp(N, INT_MAX);
| ^~~~~~~
trains.cpp:4:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
3 | #include <cmath>
+++ |+#include <climits>
4 | using namespace std;