Problem snakes_usaco
User altmanalt
Submission Time 2026-03-03 21:11:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snakes_usaco.cpp: In member function ‘std::pair<long long int, int> LiChao::query(LiChao::Node*, ll, ll, ll)’:
snakes_usaco.cpp:43:69: error: ‘struct std::pair<long long int, int>’ has no member named ‘cnt’
43 | if (next_res.first == res.first) return {res.first, min(res.cnt, next_res.cnt)};
| ^~~
snakes_usaco.cpp:43:83: error: ‘struct std::pair<long long int, int>’ has no member named ‘cnt’
43 | if (next_res.first == res.first) return {res.first, min(res.cnt, next_res.cnt)};
| ^~~
snakes_usaco.cpp:43:87: error: could not convert ‘{res.std::pair<long long int, int>::first, <expression error>}’ from ‘<brace-enclosed initializer list>’ to ‘std::pair<long long int, int>’
43 | if (next_res.first == res.first) return {res.first, min(r