Problem | flamethrower |
---|---|
User | lingfei123 |
Submission Time | 2023-11-15 14:43:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int max_damage_cost(int, int, const std::vector<int>&)’:
flamethrower.cpp:8:20: error: ‘INT_MIN’ was not declared in this scope
8 | int max_cost = INT_MIN;
| ^~~~~~~
flamethrower.cpp:4:1: note: ‘INT_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
3 | #include <algorithm>
+++ |+#include <climits>
4 |
flamethrower.cpp:11:28: error: ‘accumulate’ was not declared in this scope
11 | int current_cost = accumulate(costs.begin() + i, costs.begin() + i + K, 0);
| ^~~~~~~~~~