0_0_37736015_14319.cpp: In function 'point operator+(const point&, const point&)':
0_0_37736015_14319.cpp:53:13: error: expected unqualified-id before '[' token
auto[L_one_max, Lp, Lq]=u.one_pair;
^
0_0_37736015_14319.cpp:54:13: error: expected unqualified-id before '[' token
auto[R_one_max, Rp, Rq]=v.one_pair;
^
0_0_37736015_14319.cpp:56:38: error: 'L_one_max' was not declared in this scope
if (u.max - v.min > std::max(L_one_max, R_one_max))
^
0_0_37736015_14319.cpp:56:49: error: 'R_one_max' was not declared in this scope
if (u.max - v.min > std::max(L_one_max, R_one_max))
^
0_0_37736015_14319.cpp:57:26: error: converting to 'std::tuple<long long int, long long int, long long int>' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {long long int, const long long int&, const long long int&}; <template-parameter-2-2> = void; _Elements = {long long int, long long int, long long int}]'
ans.one_pair = {u.max - v.min, u.max, v.min};
^
0_0_37736015_14319.cpp:68:82: error: 'L_one_max' was not declared in this scope
ans.sum = std::max({u.sum, v.sum, u.max + u.sec_max - v.min - v.sec_min, L_one_max + R_one_max});
^
0_0_37736015_14319.cpp:68:94: error: 'R_one_max' was not declared in this scope
ans.sum = std::max({u.sum, v.sum, u.max + u.sec_max - v.min - v.sec_min, L_one_max + R_one_max});
^
0_0_37736015_14319.cpp:68:104: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
ans.sum = std::max({u.sum, v.sum, u.max + u.sec_max - v.min - v.sec_min, L_one_max + R_one_max});
^
0_0_37736015_14319.cpp:68:104: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_37736015_14319.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:217:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:217:5: note: template argument deduction/substitution failed:
0_0_37736015_14319.cpp:68:104: note: candidate expects 2 arguments, 1 provided
ans.sum = std::max({u.sum, v.sum, u.max + u.sec_max - v.min - v.sec_min, L_one_max + R_one_max});
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_37736015_14319.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: template argument deduction/substitution failed:
0_0_37736015_14319.cpp:68:104: note: candidate expects 3 arguments, 1 provided
ans.sum = std::max({u.sum, v.sum, u.max + u.sec_max - v.min - v.sec_min, L_one_max + R_one_max});
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_37736015_14319.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3449:5: note: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>)
max(initializer_list<_Tp> __l)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3449:5: note: template argument deduction/substitution failed:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare)
max(initializer_list<_Tp> __l, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: template argument deduction/substitution failed:
0_0_37736015_14319.cpp:70:22: error: 'Lp' was not declared in this scope
if (u.max == Lp)
^
0_0_37736015_14319.cpp:74:22: error: 'Rq' was not declared in this scope
if (v.min == Rq)
^
|