candies.cpp: In constructor 'node::node()':
candies.cpp:38:30: warning: 'node::val' will be initialized after [-Wreorder]
38 | int min=inf,max=0,lazy=0,val=0;
| ^~~
candies.cpp:38:23: warning: 'long long int node::lazy' [-Wreorder]
38 | int min=inf,max=0,lazy=0,val=0;
| ^~~~
candies.cpp:39:5: warning: when initialized here [-Wreorder]
39 | node():min(inf),max(0),val(0),lazy(0){}
| ^~~~
candies.cpp: At global scope:
candies.cpp:93:8: error: '__int32' was not declared in this scope; did you mean '__rintf32'?
93 | vector<__int32> distribute_candies(vector<__int32> C, vector<__int32> L, vector<__int32> R, vector<__int32> V)
| ^~~~~~~
| __rintf32
candies.cpp:93:15: error: template argument 1 is invalid
93 | vector<__int32> distribute_candies(vector<__int32> C, vector<__int32> L, vector<__int32> R, vector<__int32> V)
| ^
candies.cpp:93:15: error: template argument 2 is invalid
candies.cpp:93:43: error: '__int32' was not declared in this scope; did you mean '__rintf32'?
93 | vector<__int32> distribute_candies(vector<__int32> C, vector<__int32> L, vector<__int32> R, vector<__int32> V)
| ^~~~~~~
| __rintf32
candies.cpp:93:50: error: template argument 1 is invalid
93 | vector<__int32> distribute_candies(vector<__int32> C, vector<__int32> L, vector<__int32> R, vector<__int32> V)
| ^
candies.cpp:93:50: error: template argument 2 is invalid
candies.cpp:93:62: error: '__int32' was not declared in this scope; did you mean '__rintf32'?
93 | vector<__int32> distribute_candies(vector<__int32> C, vector<__int32> L, vector<__int32> R, vector<__int32> V)
| ^~~~~~~
| __rintf32
candies.cpp:93:69: error: template argument 1 is invalid
93 | vector<__int32> distribute_candies(vector<__int32> C, vector<__int32> L, vector<__int32> R, vector<__int32> V)
| ^
candies.cpp:93:69: error: template argument 2 is invalid
candies.cpp:93:81: error: '__int32' was not declared in this scope; did you mean '__rintf32'?
93 | vector<__int32> distribute_candies(vector<__int32> C, vector<__int32> L, vector<__int32> R, vector<__int32> V)
| ^~~~~~~
| __rintf32
candies.cpp:93:88: error: template argument 1 is invalid
93 | vector<__int32> distribute_candies(vector<__int32> C, vector<__int32> L, vector<__int32> R, vector<__int32> V)
| ^
candies.cpp:93:88: error: template argument 2 is invalid
candies.cpp:93:100: error: '__int32' was not declared in this scope; did you mean '__rintf32'?
93 | vector<__int32> distribute_candies(vector<__int32> C, vector<__int32> L, vector<__int32> R, vector<__int32> V)
| ^~~~~~~
| __rintf32
candies.cpp:93:107: error: template argument 1 is invalid
93 | vector<__int32> distribute_candies(vector<__int32> C, vector<__int32> L, vector<__int32> R, vector<__int32> V)
| ^
candies.cpp:93:107: error: template argument 2 is invalid
candies.cpp: In function 'int distribute_candies(int, int, int, int)':
candies.cpp:95:9: error: request for member 'size' in 'C', which is of non-class type 'int'
95 | n=C.size();
| ^~~~
candies.cpp:96:7: error: no match for 'operator=' (operand types are 'std::vector<long long int>' and 'int')
96 | a=C;
| ^
In file included from /usr/include/c++/10/vector:72,
from /usr/include/c++/10/functional:62,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from candies.cpp:8:
/usr/include/c++/10/bits/vector.tcc:198:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = long long int; _Alloc = std::allocator<long long int>]'
198 | vector<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/vector.tcc:199:42: note: no known conversion for argument 1 from 'int' to 'const std::vector<long long int>&'
199 | operator=(const vector<_Tp, _Alloc>& __x)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/functional:62,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from candies.cpp:8:
/usr/include/c++/10/bits/stl_vector.h:709:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = long long int; _Alloc = std::allocator<long long int>]'
709 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
| ^~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:709:26: note: no known conversion for argument 1 from 'int' to 'std::vector<long long int>&&'
709 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
| ~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_vector.h:730:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = long long int; _Alloc = std::allocator<long long int>]'
730 | operator=(initializer_list<value_type> __l)
| ^~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:730:46: note: no known conversion for argument 1 from 'int' to 'std::initializer_list<long long int>'
730 | operator=(initializer_list<value_type> __l)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
candies.cpp:98:18: error: request for member 'size' in 'L', which is of non-class type 'int'
98 | FOR(i,(int)L.size())
| ^~~~
candies.cpp:12:37: note: in definition of macro 'rep'
12 | #define rep(i,x,n) for(int i=(x);i<(n);i++)
| ^
candies.cpp:98:5: note: in expansion of macro 'FOR'
98 | FOR(i,(int)L.size())
| ^~~
candies.cpp:99:17: error: invalid types 'int[long long int]' for array subscript
99 | update(L[i]+1,R[i]+1,V[i]);
| ^
candies.cpp:99:24: error: invalid types 'int[long long int]' for array subscript
99 | update(L[i]+1,R[i]+1,V[i]);
| ^
candies.cpp:99:31: error: invalid types 'int[long long int]' for array subscript
99 | update(L[i]+1,R[i]+1,V[i]);
| ^
candies.cpp:102:21: error: invalid types 'int[long long int]' for array subscript
102 | ans[i]=min(C[i],query(i+1));
| ^
candies.cpp:103:12: error: cannot convert 'std::vector<long long int>' to 'int' in return
103 | return ans;
| ^~~