Problem snacks
User giaan1231
Submission Time 2025-03-21 01:50:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snacks.cpp: In function ‘void build_tree(int, int, int)’:
snacks.cpp:20:14: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Node>, Node>::value_type’ {aka ‘struct Node’} has no member named ‘lazy’; did you mean ‘lazy1’?
20 | tree[id].lazy = -1;
| ^~~~
| lazy1
snacks.cpp: In function ‘void push(int, int, int)’:
snacks.cpp:29:18: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Node>, Node>::value_type’ {aka ‘struct Node’} has no member named ‘lazy’; did you mean ‘lazy1’?
29 | if (tree[id].lazy != -1) {
| ^~~~
| lazy1
snacks.cpp:30:45: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Node>, Node>::value_type’ {aka ‘struct Node’} has no member named ‘lazy’; did you mean ‘lazy1’?
30 | tree[id].count = (r-l+1) * tree[id].lazy;
| ^~~~
|