| Problem | festival |
|---|---|
| User | shenshiqi |
| Submission Time | 2026-05-10 12:57:25 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
festival.cpp: In function ‘std::vector<int> max_coupons(int, std::vector<int>, std::vector<int>)’:
festival.cpp:39:15: error: ‘LLONG_MIN’ was not declared in this scope
39 | ll maxLft = LLONG_MIN, maxIdx = -1;
| ^~~~~~~~~
festival.cpp:5:1: note: ‘LLONG_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
4 | #include <cstring>
+++ |+#include <climits>
5 | using namespace std;
festival.cpp:45:5: error: ‘maxIdx’ was not declared in this scope
45 | maxIdx = coupons[i].idx;
| ^~~~~~
festival.cpp:48:7: error: ‘maxIdx’ was not declared in this scope
48 | if (maxIdx == -1) break;
| ^~~~~~
festival.cpp:49:17: error: ‘maxIdx’ was not declared in this scope
49 | ans.push_back(maxIdx);
| ^~~~~~