| Problem | tourist_noi |
|---|---|
| User | abcd |
| Submission Time | 2026-01-12 13:23:35 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
tourist_noi.cpp: In function ‘int main()’:
tourist_noi.cpp:17:15: error: ‘INT_MAX’ was not declared in this scope
17 | int Final = INT_MAX;
| ^~~~~~~
tourist_noi.cpp:5:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
4 | #include <cmath>
+++ |+#include <climits>
5 | using namespace std;
tourist_noi.cpp:24:35: error: no matching function for call to ‘min(float&, int&)’
24 | Final = min(Day_cost,Final);
| ^
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from tourist_noi.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::min(const _T