mecho.cpp: In function 'void solve()':
mecho.cpp:13:5: warning: left operand of comma operator has no effect [-Wunused-value]
13 | n, S; cin >> n >> S;
| ^
mecho.cpp:13:9: warning: right operand of comma operator has no effect [-Wunused-value]
13 | n, S; cin >> n >> S;
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/c++allocator.h:33,
from /usr/include/c++/10/bits/allocator.h:46,
from /usr/include/c++/10/string:41,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from mecho.cpp:1:
/usr/include/c++/10/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = point; _Args = {int&, int&}; _Tp = point]':
/usr/include/c++/10/bits/alloc_traits.h:512:17: required from 'static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = point; _Args = {int&, int&}; _Tp = point; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<point>]'
/usr/include/c++/10/bits/vector.tcc:115:30: required from 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, int&}; _Tp = point; _Alloc = std::allocator<point>; std::vector<_Tp, _Alloc>::reference = point&]'
mecho.cpp:21:60: required from here
/usr/include/c++/10/ext/new_allocator.h:150:4: error: new initializer expression list treated as compound expression [-fpermissive]
150 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/10/ext/new_allocator.h:150:4: error: no matching function for call to 'point::point(int&)'
mecho.cpp:8:8: note: candidate: 'point::point()'
8 | struct point{
| ^~~~~
mecho.cpp:8:8: note: candidate expects 0 arguments, 1 provided
mecho.cpp:8:8: note: candidate: 'constexpr point::point(const point&)'
mecho.cpp:8:8: note: no known conversion for argument 1 from 'int' to 'const point&'
mecho.cpp:8:8: note: candidate: 'constexpr point::point(point&&)'
mecho.cpp:8:8: note: no known conversion for argument 1 from 'int' to 'point&&'
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/c++allocator.h:33,
from /usr/include/c++/10/bits/allocator.h:46,
from /usr/include/c++/10/string:41,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from mecho.cpp:1:
/usr/include/c++/10/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = point; _Args = {int, int}; _Tp = point]':
/usr/include/c++/10/bits/alloc_traits.h:512:17: required from 'static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = point; _Args = {int, int}; _Tp = point; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<point>]'
/usr/include/c++/10/bits/deque.tcc:170:30: required from 'std::deque<_Tp, _Alloc>::reference std::deque<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int, int}; _Tp = point; _Alloc = std::allocator<point>; std::deque<_Tp, _Alloc>::reference = point&]'
/usr/include/c++/10/bits/stl_queue.h:277:25: required from 'decltype(auto) std::queue<_Tp, _Sequence>::emplace(_Args&& ...) [with _Args = {int, int}; _Tp = point; _Sequence = std::deque<point, std::allocator<point> >]'
mecho.cpp:38:48: required from here
/usr/include/c++/10/ext/new_allocator.h:150:4: error: new initializer expression list treated as compound expression [-fpermissive]
150 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/10/ext/new_allocator.h:150:4: error: no matching function for call to 'point::point(int)'
mecho.cpp:8:8: note: candidate: 'point::point()'
8 | struct point{
| ^~~~~
mecho.cpp:8:8: note: candidate expects 0 arguments, 1 provided
mecho.cpp:8:8: note: candidate: 'constexpr point::point(const point&)'
mecho.cpp:8:8: note: no known conversion for argument 1 from 'int' to 'const point&'
mecho.cpp:8:8: note: candidate: 'constexpr point::point(point&&)'
mecho.cpp:8:8: note: no known conversion for argument 1 from 'int' to 'point&&'