Problem moneychanger
User ansellee
Submission Time 2024-03-15 22:39:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

moneychanger.cpp: In function ‘int recurCoinsCalc(std::vector<int>, int, int, std::vector<int>&)’:
moneychanger.cpp:15:18: error: ‘INT_MAX’ was not declared in this scope
15 | int result = INT_MAX;
| ^~~~~~~
moneychanger.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;
moneychanger.cpp: In function ‘int main()’:
moneychanger.cpp:48:17: error: ‘INT_MAX’ was not declared in this scope
48 | if (temp == INT_MAX)
| ^~~~~~~
moneychanger.cpp:48:17: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?