wall.cpp: In function 'void push(int, int, int)':
wall.cpp:11:117: warning: capture of variable 'lazy' with non-automatic storage duration
lazy[v*2][0] = t[v*2][0] = lazy[v][0], lazy[v*2][1] = max(lazy[v*2][1],lazy[v][0]), t[v*2][1] = max (t[v*2][1],[lazy[v][0]]);
^~~~
wall.cpp:5:15: note: 'int lazy [8000000][2]' declared here
int t[4*N][2],lazy[4*N][2],l,r,val;// min h, max h
^~~~
wall.cpp:11:121: error: expected ',' before '[' token
lazy[v*2][0] = t[v*2][0] = lazy[v][0], lazy[v*2][1] = max(lazy[v*2][1],lazy[v][0]), t[v*2][1] = max (t[v*2][1],[lazy[v][0]]);
^
wall.cpp:11:121: error: expected identifier before '[' token
wall.cpp: In lambda function:
wall.cpp:11:128: error: expected '{' before ')' token
lazy[v*2][0] = t[v*2][0] = lazy[v][0], lazy[v*2][1] = max(lazy[v*2][1],lazy[v][0]), t[v*2][1] = max (t[v*2][1],[lazy[v][0]]);
^
wall.cpp: In function 'void push(int, int, int)':
wall.cpp:11:128: error: no matching function for call to 'max(int&, push(int, int, int)::<lambda()>)'
In file included from /usr/include/c++/7/bits/specfun.h:45:0,
from /usr/include/c++/7/cmath:1914,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:41,
from wall.cpp:1:
/usr/include/c++/7/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^~~
/usr/include/c++/7/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
wall.cpp:11:128: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'push(int, int, int)::<lambda()>')
lazy[v*2][0] = t[v*2][0] = lazy[v][0], lazy[v*2][1] = max(lazy[v*2][1],lazy[v][0]), t[v*2][1] = max (t[v*2][1],[lazy[v][0]]);
^
In file included from /usr/include/c++/7/bits/specfun.h:45:0,
from /usr/include/c++/7/cmath:1914,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:41,
from wall.cpp:1:
/usr/include/c++/7/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
/usr/include/c++/7/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
wall.cpp:11:128: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'push(int, int, int)::<lambda()>')
lazy[v*2][0] = t[v*2][0] = lazy[v][0], lazy[v*2][1] = max(lazy[v*2][1],lazy[v][0]), t[v*2][1] = max (t[v*2][1],[lazy[v][0]]);
^
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from wall.cpp:1:
/usr/include/c++/7/bits/stl_algo.h:3462:5: note: candidate: template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)
max(initializer_list<_Tp> __l)
^~~
/usr/include/c++/7/bits/stl_algo.h:3462:5: note: template argument deduction/substitution failed:
wall.cpp:11:128: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
lazy[v*2][0] = t[v*2][0] = lazy[v][0], lazy[v*2][1] = max(lazy[v*2][1],lazy[v][0]), t[v*2][1] = max (t[v*2][1],[lazy[v][0]]);
^
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from wall.cpp:1:
/usr/include/c++/7/bits/stl_algo.h:3468:5: note: candidate: template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)
max(initializer_list<_Tp> __l, _Compare __comp)
^~~
/usr/include/c++/7/bits/stl_algo.h:3468:5: note: template argument deduction/substitution failed:
wall.cpp:11:128: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
lazy[v*2][0] = t[v*2][0] = lazy[v][0], lazy[v*2][1] = max(lazy[v*2][1],lazy[v][0]), t[v*2][1] = max (t[v*2][1],[lazy[v][0]]);
^
wall.cpp:13:127: warning: capture of variable 'lazy' with non-automatic storage duration
lazy[v*2|1][0] = t[v*2|1][0] = lazy[v][0] , lazy[v*2|1][1] = max(t[v*2|1][1],lazy[v][0]), t[v*2|1][1] = max (t[v*2|1][1],[lazy[v][0]]);
^~~~
wall.cpp:5:15: note: 'int lazy [8000000][2]' declared here
int t[4*N][2],lazy[4*N][2],l,r,val;// min h, max h
^~~~
wall.cpp:13:131: error: expected ',' before '[' token
lazy[v*2|1][0] = t[v*2|1][0] = lazy[v][0] , lazy[v*2|1][1] = max(t[v*2|1][1],lazy[v][0]), t[v*2|1][1] = max (t[v*2|1][1],[lazy[v][0]]);
^
wall.cpp:13:131: error: expected identifier before '[' token
wall.cpp: In lambda function:
wall.cpp:13:138: error: expected '{' before ')' token
lazy[v*2|1][0] = t[v*2|1][0] = lazy[v][0] , lazy[v*2|1][1] = max(t[v*2|1][1],lazy[v][0]), t[v*2|1][1] = max (t[v*2|1][1],[lazy[v][0]]);
^
wall.cpp: In function 'void push(int, int, int)':
wall.cpp:13:138: error: no matching function for call to 'max(int&, push(int, int, int)::<lambda()>)'
In file included from /usr/include/c++/7/bits/specfun.h:45:0,
from /usr/include/c++/7/cmath:1914,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:41,
from wall.cpp:1:
/usr/include/c++/7/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^~~
/usr/include/c++/7/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
wall.cpp:13:138: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'push(int, int, int)::<lambda()>')
lazy[v*2|1][0] = t[v*2|1][0] = lazy[v][0] , lazy[v*2|1][1] = max(t[v*2|1][1],lazy[v][0]), t[v*2|1][1] = max (t[v*2|1][1],[lazy[v][0]]);
^
In file included from /usr/include/c++/7/bits/specfun.h:45:0,
from /usr/include/c++/7/cmath:1914,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:41,
from wall.cpp:1:
/usr/include/c++/7/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
/usr/include/c++/7/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
wall.cpp:13:138: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'push(int, int, int)::<lambda()>')
lazy[v*2|1][0] = t[v*2|1][0] = lazy[v][0] , lazy[v*2|1][1] = max(t[v*2|1][1],lazy[v][0]), t[v*2|1][1] = max (t[v*2|1][1],[lazy[v][0]]);
^
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from wall.cpp:1:
/usr/include/c++/7/bits/stl_algo.h:3462:5: note: candidate: template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)
max(initializer_list<_Tp> __l)
^~~
/usr/include/c++/7/bits/stl_algo.h:3462:5: note: template argument deduction/substitution failed:
wall.cpp:13:138: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
lazy[v*2|1][0] = t[v*2|1][0] = lazy[v][0] , lazy[v*2|1][1] = max(t[v*2|1][1],lazy[v][0]), t[v*2|1][1] = max (t[v*2|1][1],[lazy[v][0]]);
^
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from wall.cpp:1:
/usr/include/c++/7/bits/stl_algo.h:3468:5: note: candidate: template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)
max(initializer_list<_Tp> __l, _Compare __comp)
^~~
/usr/include/c++/7/bits/stl_algo.h:3468:5: note: template argument deduction/substitution failed:
wall.cpp:13:138: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
lazy[v*2|1][0] = t[v*2|1][0] = lazy[v][0] , lazy[v*2|1][1] = max(t[v*2|1][1],lazy[v][0]), t[v*2|1][1] = max (t[v*2|1][1],[lazy[v][0]]);
^
wall.cpp:23:22: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses]
if (lazy[v*2|1][1] > lazy[v][1] != t[v*2|1][1])
~~~~~~~~~~~~~~~^~~~~~~~~~~~
wall.cpp:23:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (lazy[v*2|1][1] > lazy[v][1] != t[v*2|1][1])
^~
wall.cpp:25:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if (t[v*2][0] > t[v*2][1] || !t[v*2][0]){
^~