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

Compile Error

snakes_usaco.cpp: In function ‘std::pair<long long int, int> query_tree(int, int, int, int, int, ll)’:
snakes_usaco.cpp:72:42: error: ‘struct std::pair<long long int, int>’ has no member named ‘cnt’
72 | return {left_res.first, min(left_res.cnt, right_res.cnt)};
| ^~~
snakes_usaco.cpp:72:57: error: ‘struct std::pair<long long int, int>’ has no member named ‘cnt’
72 | return {left_res.first, min(left_res.cnt, right_res.cnt)};
| ^~~
snakes_usaco.cpp:72:61: error: could not convert ‘{left_res.std::pair<long long int, int>::first, <expression error>}’ from ‘<brace-enclosed initializer list>’ to ‘std::pair<long long int, int>’
72 | return {left_res.first, min(left_res.cnt, right_res.cnt)};
| ^
|