Problem candymountain_ex
User jerrielchangjiebin
Submission Time 2025-02-17 16:23:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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