| Problem | festival |
|---|---|
| User | shenshiqi |
| Submission Time | 2026-05-10 12:57:16 |
| 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:34:20: error: ‘memset’ was not declared in this scope
34 | bool hasTaken[n]; memset(hasTaken, 0, sizeof(hasTaken));
| ^~~~~~
festival.cpp:4:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
3 | #include <algorithm>
+++ |+#include <cstring>
4 | using namespace std;
festival.cpp:38:15: error: ‘LLONG_MIN’ was not declared in this scope
38 | ll maxLft = LLONG_MIN, maxIdx = -1;
| ^~~~~~~~~
festival.cpp:4:1: note: ‘LLONG_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
3 | #include <algorithm>
+++ |+#include <climits>
4 | using namespace std;
festival.cpp:44:5: error: ‘maxIdx’ was not declared in this scope
44 | maxIdx