wall.cpp: In function 'void comp(long long int, long long int)':
wall.cpp:16:35: error: 'x' was not declared in this scope; did you mean 'x1'?
16 | st[x2][0] = min(st[x2][0], st[x][0]);
| ^
| x1
wall.cpp: In function 'void buildWall(int, int, int*, int*, int*, int*, int*)':
wall.cpp:58:19: error: expected ')' before '{' token
58 | st.assign(sz*4 {0, inf});
| ~ ^~
| )
wall.cpp:58:28: error: no matching function for call to 'std::vector<std::array<long long int, 2> >::assign(long long int)'
58 | st.assign(sz*4 {0, inf});
| ^
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 wall.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:749:7: note: candidate: 'void std::vector<_Tp, _Alloc>::assign(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = std::array<long long int, 2>; _Alloc = std::allocator<std::array<long long int, 2> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::array<long long int, 2>]'
749 | assign(size_type __n, const value_type& __val)
| ^~~~~~
/usr/include/c++/10/bits/stl_vector.h:749:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/10/bits/stl_vector.h:768:2: note: candidate: 'template<class _InputIterator, class> void std::vector<_Tp, _Alloc>::assign(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = std::array<long long int, 2>; _Alloc = std::allocator<std::array<long long int, 2> >]'
768 | assign(_InputIterator __first, _InputIterator __last)
| ^~~~~~
/usr/include/c++/10/bits/stl_vector.h:768:2: note: template argument deduction/substitution failed:
wall.cpp:58:28: note: candidate expects 2 arguments, 1 provided
58 | st.assign(sz*4 {0, inf});
| ^
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 wall.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:794:7: note: candidate: 'void std::vector<_Tp, _Alloc>::assign(std::initializer_list<_Tp>) [with _Tp = std::array<long long int, 2>; _Alloc = std::allocator<std::array<long long int, 2> >]'
794 | assign(initializer_list<value_type> __l)
| ^~~~~~
/usr/include/c++/10/bits/stl_vector.h:794:43: note: no known conversion for argument 1 from 'long long int' to 'std::initializer_list<std::array<long long int, 2> >'
794 | assign(initializer_list<value_type> __l)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
wall.cpp:57:11: warning: unused variable 'j' [-Wunused-variable]
57 | ll i, j, sz, z = 0;
| ^