Problem moneychanger
User Forsteri123
Submission Time 2023-04-11 22:24:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

moneychanger.cpp: In function ‘int main()’:
moneychanger.cpp:10:42: error: ‘INT_MAX’ was not declared in this scope
10 | for (int i = 0; i <= v; i++) dp[i] = INT_MAX;
| ^~~~~~~
moneychanger.cpp:3:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
2 | #include <cstring>
+++ |+#include <climits>
3 | using namespace std;
moneychanger.cpp:23:18: error: ‘INT_MAX’ was not declared in this scope
23 | if (dp[v] == INT_MAX)
| ^~~~~~~
moneychanger.cpp:23:18: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?