foo.cc:1: warning: "__cplusplus" redefined
1 | #define __cplusplus 88888888
|
<built-in>: note: this is the location of the previous definition
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from foo.cc:2:
/usr/include/c++/9/cmath: In instantiation of 'constexpr _Fp std::__lerp(_Fp, _Fp, _Fp) [with _Fp = float]':
/usr/include/c++/9/cmath:1912:23: required from here
/usr/include/c++/9/cmath:1908:5: error: body of 'constexpr' function 'constexpr _Fp std::__lerp(_Fp, _Fp, _Fp) [with _Fp = float]' not a return-statement
1908 | }
| ^
/usr/include/c++/9/cmath: In instantiation of 'constexpr _Fp std::__lerp(_Fp, _Fp, _Fp) [with _Fp = double]':
/usr/include/c++/9/cmath:1916:23: required from here
/usr/include/c++/9/cmath:1908:5: error: body of 'constexpr' function 'constexpr _Fp std::__lerp(_Fp, _Fp, _Fp) [with _Fp = double]' not a return-statement
/usr/include/c++/9/cmath: In instantiation of 'constexpr _Fp std::__lerp(_Fp, _Fp, _Fp) [with _Fp = long double]':
/usr/include/c++/9/cmath:1920:23: required from here
/usr/include/c++/9/cmath:1908:5: error: body of 'constexpr' function 'constexpr _Fp std::__lerp(_Fp, _Fp, _Fp) [with _Fp = long double]' not a return-statement
In file included from /usr/include/c++/9/bits/stl_iterator.h:66,
from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from foo.cc:2:
/usr/include/c++/9/bits/ptr_traits.h:175:15: error: '__to_address' function uses 'auto' type specifier without trailing return type
175 | constexpr auto
| ^~~~
/usr/include/c++/9/bits/ptr_traits.h:175:15: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/bits/ptr_traits.h:205:15: error: 'to_address' function uses 'auto' type specifier without trailing return type
205 | constexpr auto
| ^~~~
/usr/include/c++/9/bits/ptr_traits.h:205:15: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from foo.cc:2:
/usr/include/c++/9/cstddef: In function 'constexpr std::byte& std::operator|=(std::byte&, std::byte)':
/usr/include/c++/9/cstddef:146:16: error: expression '(__l = ((std::byte)((unsigned char)((int)(((unsigned char)((int)((unsigned char)__l))) | ((unsigned char)((int)((unsigned char)__r))))))))' is not a constant expression
146 | return __l =
| ~~~~^
147 | byte(static_cast<unsigned char>(__l) | static_cast<unsigned char>(__r));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/cstddef: In function 'constexpr std::byte& std::operator&=(std::byte&, std::byte)':
/usr/include/c++/9/cstddef:160:15: error: expression '(__l = ((std::byte)((unsigned char)((int)(((unsigned char)((int)((unsigned char)__l))) & ((unsigned char)((int)((unsigned char)__r))))))))' is not a constant expression
160 | return __l =
| ~~~~^
161 | byte(static_cast<unsigned char>(__l) & static_cast<unsigned char>(__r));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/cstddef: In function 'constexpr std::byte& std::operator^=(std::byte&, std::byte)':
/usr/include/c++/9/cstddef:174:16: error: expression '(__l = ((std::byte)((unsigned char)((int)(((unsigned char)((int)((unsigned char)__l))) ^ ((unsigned char)((int)((unsigned char)__r))))))))' is not a constant expression
174 | return __l =
| ~~~~^
175 | byte(static_cast<unsigned char>(__l) ^ static_cast<unsigned char>(__r));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foo.cc:2:
/usr/include/c++/9/bits/char_traits.h: In static member function 'static constexpr void std::char_traits<char>::assign(std::char_traits<char>::char_type&, const char_type&)':
/usr/include/c++/9/bits/char_traits.h:299:7: error: invalid return type 'void' of 'constexpr' function 'static constexpr void std::char_traits<char>::assign(std::char_traits<char>::char_type&, const char_type&)'
299 | assign(char_type& __c1, const char_type& __c2) _GLIBCXX_NOEXCEPT
| ^~~~~~
/usr/include/c++/9/bits/char_traits.h: In instantiation of 'constexpr bool std::__constant_char_array_p(const _CharT*, std::size_t) [with _CharT = char; std::size_t = long unsigned int]':
/usr/include/c++/9/bits/char_traits.h:321:32: required from here
/usr/include/c++/9/bits/char_traits.h:267:5: error: body of 'constexpr' function 'constexpr bool std::__constant_char_array_p(const _CharT*, std::size_t) [with _CharT = char; std::size_t = long unsigned int]' not a return-statement
267 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In static member function 'static constexpr int std::char_traits<char>::compare(const char_type*, const char_type*, std::size_t)':
/usr/include/c++/9/bits/char_traits.h:333:7: error: body of 'constexpr' function 'static constexpr int std::char_traits<char>::compare(const char_type*, const char_type*, std::size_t)' not a return-statement
333 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In instantiation of 'static constexpr std::size_t __gnu_cxx::char_traits<_CharT>::length(const char_type*) [with _CharT = char; std::size_t = long unsigned int; __gnu_cxx::char_traits<_CharT>::char_type = char]':
/usr/include/c++/9/bits/char_traits.h:340:52: required from here
/usr/include/c++/9/bits/char_traits.h:168:5: error: body of 'constexpr' function 'static constexpr std::size_t __gnu_cxx::char_traits<_CharT>::length(const char_type*) [with _CharT = char; std::size_t = long unsigned int; __gnu_cxx::char_traits<_CharT>::char_type = char]' not a return-statement
168 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In static member function 'static constexpr std::size_t std::char_traits<char>::length(const char_type*)':
/usr/include/c++/9/bits/char_traits.h:343:7: error: body of 'constexpr' function 'static constexpr std::size_t std::char_traits<char>::length(const char_type*)' not a return-statement
343 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In instantiation of 'constexpr bool std::__constant_string_p(const _CharT*) [with _CharT = char]':
/usr/include/c++/9/bits/char_traits.h:339:25: required from here
/usr/include/c++/9/bits/char_traits.h:242:5: error: body of 'constexpr' function 'constexpr bool std::__constant_string_p(const _CharT*) [with _CharT = char]' not a return-statement
242 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In instantiation of 'static constexpr const char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, std::size_t, const char_type&) [with _CharT = char; __gnu_cxx::char_traits<_CharT>::char_type = char; std::size_t = long unsigned int]':
/usr/include/c++/9/bits/char_traits.h:354:50: required from here
/usr/include/c++/9/bits/char_traits.h:179:5: error: body of 'constexpr' function 'static constexpr const char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, std::size_t, const char_type&) [with _CharT = char; __gnu_cxx::char_traits<_CharT>::char_type = char; std::size_t = long unsigned int]' not a return-statement
179 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In static member function 'static constexpr const char_type* std::char_traits<char>::find(const char_type*, std::size_t, const char_type&)':
/usr/include/c++/9/bits/char_traits.h:357:7: error: body of 'constexpr' function 'static constexpr const char_type* std::char_traits<char>::find(const char_type*, std::size_t, const char_type&)' not a return-statement
357 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In static member function 'static constexpr void std::char_traits<wchar_t>::assign(std::char_traits<wchar_t>::char_type&, const char_type&)':
/usr/include/c++/9/bits/char_traits.h:419:7: error: invalid return type 'void' of 'constexpr' function 'static constexpr void std::char_traits<wchar_t>::assign(std::char_traits<wchar_t>::char_type&, const char_type&)'
419 | assign(char_type& __c1, const char_type& __c2) _GLIBCXX_NOEXCEPT
| ^~~~~~
/usr/include/c++/9/bits/char_traits.h: In instantiation of 'constexpr bool std::__constant_char_array_p(const _CharT*, std::size_t) [with _CharT = wchar_t; std::size_t = long unsigned int]':
/usr/include/c++/9/bits/char_traits.h:437:32: required from here
/usr/include/c++/9/bits/char_traits.h:267:5: error: body of 'constexpr' function 'constexpr bool std::__constant_char_array_p(const _CharT*, std::size_t) [with _CharT = wchar_t; std::size_t = long unsigned int]' not a return-statement
267 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In instantiation of 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, std::size_t) [with _CharT = wchar_t; __gnu_cxx::char_traits<_CharT>::char_type = wchar_t; std::size_t = long unsigned int]':
/usr/include/c++/9/bits/char_traits.h:439:53: required from here
/usr/include/c++/9/bits/char_traits.h:157:5: error: body of 'constexpr' function 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, std::size_t) [with _CharT = wchar_t; __gnu_cxx::char_traits<_CharT>::char_type = wchar_t; std::size_t = long unsigned int]' not a return-statement
157 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In static member function 'static constexpr int std::char_traits<wchar_t>::compare(const char_type*, const char_type*, std::size_t)':
/usr/include/c++/9/bits/char_traits.h:442:7: error: body of 'constexpr' function 'static constexpr int std::char_traits<wchar_t>::compare(const char_type*, const char_type*, std::size_t)' not a return-statement
442 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In instantiation of 'static constexpr std::size_t __gnu_cxx::char_traits<_CharT>::length(const char_type*) [with _CharT = wchar_t; std::size_t = long unsigned int; __gnu_cxx::char_traits<_CharT>::char_type = wchar_t]':
/usr/include/c++/9/bits/char_traits.h:449:52: required from here
/usr/include/c++/9/bits/char_traits.h:168:5: error: body of 'constexpr' function 'static constexpr std::size_t __gnu_cxx::char_traits<_CharT>::length(const char_type*) [with _CharT = wchar_t; std::size_t = long unsigned int; __gnu_cxx::char_traits<_CharT>::char_type = wchar_t]' not a return-statement
168 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In static member function 'static constexpr std::size_t std::char_traits<wchar_t>::length(const char_type*)':
/usr/include/c++/9/bits/char_traits.h:452:7: error: body of 'constexpr' function 'static constexpr std::size_t std::char_traits<wchar_t>::length(const char_type*)' not a return-statement
452 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In instantiation of 'constexpr bool std::__constant_string_p(const _CharT*) [with _CharT = wchar_t]':
/usr/include/c++/9/bits/char_traits.h:448:25: required from here
/usr/include/c++/9/bits/char_traits.h:242:5: error: body of 'constexpr' function 'constexpr bool std::__constant_string_p(const _CharT*) [with _CharT = wchar_t]' not a return-statement
242 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In instantiation of 'static constexpr const char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, std::size_t, const char_type&) [with _CharT = wchar_t; __gnu_cxx::char_traits<_CharT>::char_type = wchar_t; std::size_t = long unsigned int]':
/usr/include/c++/9/bits/char_traits.h:463:50: required from here
/usr/include/c++/9/bits/char_traits.h:179:5: error: body of 'constexpr' function 'static constexpr const char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, std::size_t, const char_type&) [with _CharT = wchar_t; __gnu_cxx::char_traits<_CharT>::char_type = wchar_t; std::size_t = long unsigned int]' not a return-statement
179 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In static member function 'static constexpr const char_type* std::char_traits<wchar_t>::find(const char_type*, std::size_t, const char_type&)':
/usr/include/c++/9/bits/char_traits.h:466:7: error: body of 'constexpr' function 'static constexpr const char_type* std::char_traits<wchar_t>::find(const char_type*, std::size_t, const char_type&)' not a return-statement
466 | }
| ^
In file included from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foo.cc:2:
/usr/include/c++/9/bits/char_traits.h: In static member function 'static constexpr void std::char_traits<char16_t>::assign(std::char_traits<char16_t>::char_type&, const char_type&)':
/usr/include/c++/9/bits/char_traits.h:650:7: error: invalid return type 'void' of 'constexpr' function 'static constexpr void std::char_traits<char16_t>::assign(std::char_traits<char16_t>::char_type&, const char_type&)'
650 | assign(char_type& __c1, const char_type& __c2) noexcept
| ^~~~~~
/usr/include/c++/9/bits/char_traits.h: In static member function 'static constexpr int std::char_traits<char16_t>::compare(const char_type*, const char_type*, std::size_t)':
/usr/include/c++/9/bits/char_traits.h:670:7: error: body of 'constexpr' function 'static constexpr int std::char_traits<char16_t>::compare(const char_type*, const char_type*, std::size_t)' not a return-statement
670 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In static member function 'static constexpr std::size_t std::char_traits<char16_t>::length(const char_type*)':
/usr/include/c++/9/bits/char_traits.h:679:7: error: body of 'constexpr' function 'static constexpr std::size_t std::char_traits<char16_t>::length(const char_type*)' not a return-statement
679 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In static member function 'static constexpr const char_type* std::char_traits<char16_t>::find(const char_type*, std::size_t, const char_type&)':
/usr/include/c++/9/bits/char_traits.h:688:7: error: body of 'constexpr' function 'static constexpr const char_type* std::char_traits<char16_t>::find(const char_type*, std::size_t, const char_type&)' not a return-statement
688 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In static member function 'static constexpr void std::char_traits<char32_t>::assign(std::char_traits<char32_t>::char_type&, const char_type&)':
/usr/include/c++/9/bits/char_traits.h:753:7: error: invalid return type 'void' of 'constexpr' function 'static constexpr void std::char_traits<char32_t>::assign(std::char_traits<char32_t>::char_type&, const char_type&)'
753 | assign(char_type& __c1, const char_type& __c2) noexcept
| ^~~~~~
/usr/include/c++/9/bits/char_traits.h: In static member function 'static constexpr int std::char_traits<char32_t>::compare(const char_type*, const char_type*, std::size_t)':
/usr/include/c++/9/bits/char_traits.h:773:7: error: body of 'constexpr' function 'static constexpr int std::char_traits<char32_t>::compare(const char_type*, const char_type*, std::size_t)' not a return-statement
773 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In static member function 'static constexpr std::size_t std::char_traits<char32_t>::length(const char_type*)':
/usr/include/c++/9/bits/char_traits.h:782:7: error: body of 'constexpr' function 'static constexpr std::size_t std::char_traits<char32_t>::length(const char_type*)' not a return-statement
782 | }
| ^
/usr/include/c++/9/bits/char_traits.h: In static member function 'static constexpr const char_type* std::char_traits<char32_t>::find(const char_type*, std::size_t, const char_type&)':
/usr/include/c++/9/bits/char_traits.h:791:7: error: body of 'constexpr' function 'static constexpr const char_type* std::char_traits<char32_t>::find(const char_type*, std::size_t, const char_type&)' not a return-statement
791 | }
| ^
In file included from /usr/include/c++/9/string:48,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foo.cc:2:
/usr/include/c++/9/bits/stl_function.h: At global scope:
/usr/include/c++/9/bits/stl_function.h:537:28: error: expected primary-expression before 'auto'
537 | static constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/bits/stl_function.h:537:28: error: expected ')' before 'auto'
537 | static constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/bits/stl_function.h:537:28: error: expected primary-expression before 'auto'
537 | static constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/bits/stl_function.h:537:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_function.h:537:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_function.h:537:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_function.h:537:19: error: expected unqualified-id before 'decltype'
537 | static constexpr decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/bits/stl_function.h:599:28: error: expected primary-expression before 'auto'
599 | static constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/bits/stl_function.h:599:28: error: expected ')' before 'auto'
599 | static constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/bits/stl_function.h:599:28: error: expected primary-expression before 'auto'
599 | static constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/bits/stl_function.h:599:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_function.h:599:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_function.h:599:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_function.h:599:19: error: expected unqualified-id before 'decltype'
599 | static constexpr decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/bits/stl_function.h:661:28: error: expected primary-expression before 'auto'
661 | static constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/bits/stl_function.h:661:28: error: expected ')' before 'auto'
661 | static constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/bits/stl_function.h:661:28: error: expected primary-expression before 'auto'
661 | static constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/bits/stl_function.h:661:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_function.h:661:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_function.h:661:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_function.h:661:19: error: expected unqualified-id before 'decltype'
661 | static constexpr decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/bits/stl_function.h:723:28: error: expected primary-expression before 'auto'
723 | static constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/bits/stl_function.h:723:28: error: expected ')' before 'auto'
723 | static constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/bits/stl_function.h:723:28: error: expected primary-expression before 'auto'
723 | static constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/bits/stl_function.h:723:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_function.h:723:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_function.h:723:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_function.h:723:19: error: expected unqualified-id before 'decltype'
723 | static constexpr decltype(auto)
| ^~~~~~~~
In file included from /usr/include/c++/9/bits/basic_string.h:48,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foo.cc:2:
/usr/include/c++/9/string_view: In function 'constexpr std::size_t std::__sv_check(std::size_t, std::size_t, const char*)':
/usr/include/c++/9/string_view:60:3: error: body of 'constexpr' function 'constexpr std::size_t std::__sv_check(std::size_t, std::size_t, const char*)' not a return-statement
60 | }
| ^
/usr/include/c++/9/string_view: In function 'constexpr std::size_t std::__sv_limit(std::size_t, std::size_t, std::size_t)':
/usr/include/c++/9/string_view:69:3: error: body of 'constexpr' function 'constexpr std::size_t std::__sv_limit(std::size_t, std::size_t, std::size_t)' not a return-statement
69 | }
| ^
/usr/include/c++/9/string_view: In member function 'constexpr void std::basic_string_view<_CharT, _Traits>::remove_prefix(std::basic_string_view<_CharT, _Traits>::size_type) const':
/usr/include/c++/9/string_view:235:15: error: assignment of read-only location '((const std::basic_string_view<_CharT, _Traits>*)this)->_M_len'
235 | this->_M_len -= __n;
| ~~~~~~~~~~~~~^~~~~~
/usr/include/c++/9/string_view: In member function 'constexpr void std::basic_string_view<_CharT, _Traits>::remove_suffix(std::basic_string_view<_CharT, _Traits>::size_type) const':
/usr/include/c++/9/string_view:240:22: error: assignment of read-only location '((const std::basic_string_view<_CharT, _Traits>*)this)->_M_len'
240 | { this->_M_len -= __n; }
| ~~~~~~~~~~~~~^~~~~~
/usr/include/c++/9/string_view: In instantiation of 'class std::basic_string_view<char>':
/usr/include/c++/9/string_view:608:43: required from here
/usr/include/c++/9/string_view:134:7: error: defaulted declaration 'constexpr std::basic_string_view<_CharT, _Traits>& std::basic_string_view<_CharT, _Traits>::operator=(const std::basic_string_view<_CharT, _Traits>&) const [with _CharT = char; _Traits = std::char_traits<char>]' does not match the expected signature
134 | operator=(const basic_string_view&) noexcept = default;
| ^~~~~~~~
/usr/include/c++/9/string_view:134:7: note: expected signature: 'std::basic_string_view<char>& std::basic_string_view<char>::operator=(const std::basic_string_view<char>&)'
/usr/include/c++/9/string_view: In instantiation of 'class std::basic_string_view<wchar_t>':
/usr/include/c++/9/string_view:622:41: required from here
/usr/include/c++/9/string_view:134:7: error: defaulted declaration 'constexpr std::basic_string_view<_CharT, _Traits>& std::basic_string_view<_CharT, _Traits>::operator=(const std::basic_string_view<_CharT, _Traits>&) const [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>]' does not match the expected signature
/usr/include/c++/9/string_view:134:7: note: expected signature: 'std::basic_string_view<wchar_t>& std::basic_string_view<wchar_t>::operator=(const std::basic_string_view<wchar_t>&)'
/usr/include/c++/9/string_view: In instantiation of 'class std::basic_string_view<char16_t>':
/usr/include/c++/9/string_view:652:41: required from here
/usr/include/c++/9/string_view:134:7: error: defaulted declaration 'constexpr std::basic_string_view<_CharT, _Traits>& std::basic_string_view<_CharT, _Traits>::operator=(const std::basic_string_view<_CharT, _Traits>&) const [with _CharT = char16_t; _Traits = std::char_traits<char16_t>]' does not match the expected signature
/usr/include/c++/9/string_view:134:7: note: expected signature: 'std::basic_string_view<char16_t>& std::basic_string_view<char16_t>::operator=(const std::basic_string_view<char16_t>&)'
/usr/include/c++/9/string_view: In instantiation of 'class std::basic_string_view<char32_t>':
/usr/include/c++/9/string_view:666:41: required from here
/usr/include/c++/9/string_view:134:7: error: defaulted declaration 'constexpr std::basic_string_view<_CharT, _Traits>& std::basic_string_view<_CharT, _Traits>::operator=(const std::basic_string_view<_CharT, _Traits>&) const [with _CharT = char32_t; _Traits = std::char_traits<char32_t>]' does not match the expected signature
/usr/include/c++/9/string_view:134:7: note: expected signature: 'std::basic_string_view<char32_t>& std::basic_string_view<char32_t>::operator=(const std::basic_string_view<char32_t>&)'
In file included from /usr/include/c++/9/string:48,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foo.cc:2:
/usr/include/c++/9/bits/stl_function.h: In instantiation of 'constexpr bool std::less<_Tp*>::operator()(_Tp*, _Tp*) const [with _Tp = const std::_V2::error_category]':
/usr/include/c++/9/system_error:122:43: required from here
/usr/include/c++/9/bits/stl_function.h:444:7: error: body of 'constexpr' function 'constexpr bool std::less<_Tp*>::operator()(_Tp*, _Tp*) const [with _Tp = const std::_V2::error_category]' not a return-statement
444 | }
| ^
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foo.cc:2:
/usr/include/c++/9/complex: At global scope:
/usr/include/c++/9/complex:1170:37: error: defaulted declaration 'constexpr std::complex<float>& std::complex<float>::operator=(const std::complex<float>&) const' does not match the expected signature
1170 | _GLIBCXX14_CONSTEXPR complex& operator=(const complex&) = default;
| ^~~~~~~~
/usr/include/c++/9/complex:1170:37: note: expected signature: 'std::complex<float>& std::complex<float>::operator=(const std::complex<float>&)'
/usr/include/c++/9/complex:1170:37: error: explicitly defaulted function 'constexpr std::complex<float>& std::complex<float>::operator=(const std::complex<float>&) const' cannot be declared as 'constexpr' because the implicit declaration is not 'constexpr':
/usr/include/c++/9/complex: In member function 'constexpr void std::complex<float>::real(float) const':
/usr/include/c++/9/complex:1127:45: error: assignment of read-only location '__real__ ((const std::complex<float>*)this)->std::complex<float>::_M_value'
1127 | real(float __val) { __real__ _M_value = __val; }
| ~~~~~~~~~^~~~~~~
/usr/include/c++/9/complex:1127:7: error: invalid return type 'void' of 'constexpr' function 'constexpr void std::complex<float>::real(float) const'
1127 | real(float __val) { __real__ _M_value = __val; }
| ^~~~
/usr/include/c++/9/complex: In member function 'constexpr void std::complex<float>::imag(float) const':
/usr/include/c++/9/complex:1130:45: error: assignment of read-only location '__imag__ ((const std::complex<float>*)this)->std::complex<float>::_M_value'
1130 | imag(float __val) { __imag__ _M_value = __val; }
| ~~~~~~~~~^~~~~~~
/usr/include/c++/9/complex:1130:7: error: invalid return type 'void' of 'constexpr' function 'constexpr void std::complex<float>::imag(float) const'
1130 | imag(float __val) { __imag__ _M_value = __val; }
| ^~~~
/usr/include/c++/9/complex: In member function 'constexpr std::complex<float>& std::complex<float>::operator=(float) const':
/usr/include/c++/9/complex:1135:11: error: assignment of member 'std::complex<float>::_M_value' in read-only object
1135 | _M_value = __f;
| ~~~~~~~~~^~~~~
/usr/include/c++/9/complex:1136:9: error: binding reference of type 'std::complex<float>&' to 'const std::complex<float>' discards qualifiers
1136 | return *this;
| ^~~~~
/usr/include/c++/9/complex:1137:7: error: body of 'constexpr' function 'constexpr std::complex<float>& std::complex<float>::operator=(float) const' not a return-statement
1137 | }
| ^
/usr/include/c++/9/complex: In member function 'constexpr std::complex<float>& std::complex<float>::operator+=(float) const':
/usr/include/c++/9/complex:1142:11: error: assignment of member 'std::complex<float>::_M_value' in read-only object
1142 | _M_value += __f;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1143:9: error: binding reference of type 'std::complex<float>&' to 'const std::complex<float>' discards qualifiers
1143 | return *this;
| ^~~~~
/usr/include/c++/9/complex:1144:7: error: body of 'constexpr' function 'constexpr std::complex<float>& std::complex<float>::operator+=(float) const' not a return-statement
1144 | }
| ^
/usr/include/c++/9/complex: In member function 'constexpr std::complex<float>& std::complex<float>::operator-=(float) const':
/usr/include/c++/9/complex:1149:11: error: assignment of member 'std::complex<float>::_M_value' in read-only object
1149 | _M_value -= __f;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1150:9: error: binding reference of type 'std::complex<float>&' to 'const std::complex<float>' discards qualifiers
1150 | return *this;
| ^~~~~
/usr/include/c++/9/complex:1151:7: error: body of 'constexpr' function 'constexpr std::complex<float>& std::complex<float>::operator-=(float) const' not a return-statement
1151 | }
| ^
/usr/include/c++/9/complex: In member function 'constexpr std::complex<float>& std::complex<float>::operator*=(float) const':
/usr/include/c++/9/complex:1156:11: error: assignment of member 'std::complex<float>::_M_value' in read-only object
1156 | _M_value *= __f;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1157:9: error: binding reference of type 'std::complex<float>&' to 'const std::complex<float>' discards qualifiers
1157 | return *this;
| ^~~~~
/usr/include/c++/9/complex:1158:7: error: body of 'constexpr' function 'constexpr std::complex<float>& std::complex<float>::operator*=(float) const' not a return-statement
1158 | }
| ^
/usr/include/c++/9/complex: In member function 'constexpr std::complex<float>& std::complex<float>::operator/=(float) const':
/usr/include/c++/9/complex:1163:11: error: assignment of member 'std::complex<float>::_M_value' in read-only object
1163 | _M_value /= __f;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1164:9: error: binding reference of type 'std::complex<float>&' to 'const std::complex<float>' discards qualifiers
1164 | return *this;
| ^~~~~
/usr/include/c++/9/complex:1165:7: error: body of 'constexpr' function 'constexpr std::complex<float>& std::complex<float>::operator/=(float) const' not a return-statement
1165 | }
| ^
/usr/include/c++/9/complex: In member function 'constexpr std::complex<float>& std::complex<float>::operator=(const std::complex<_Tp>&) const':
/usr/include/c++/9/complex:1179:11: error: binding reference of type 'std::complex<float>&' to 'const std::complex<float>' discards qualifiers
1179 | return *this;
| ^~~~~
/usr/include/c++/9/complex: In member function 'constexpr std::complex<float>& std::complex<float>::operator+=(const std::complex<_Tp>&) const':
/usr/include/c++/9/complex:1187:11: error: binding reference of type 'std::complex<float>&' to 'const std::complex<float>' discards qualifiers
1187 | return *this;
| ^~~~~
/usr/include/c++/9/complex: In member function 'constexpr std::complex<float>& std::complex<float>::operator-=(const std::complex<_Tp>&) const':
/usr/include/c++/9/complex:1195:11: error: binding reference of type 'std::complex<float>&' to 'const std::complex<float>' discards qualifiers
1195 | return *this;
| ^~~~~
/usr/include/c++/9/complex: In member function 'constexpr std::complex<float>& std::complex<float>::operator*=(const std::complex<_Tp>&) const':
/usr/include/c++/9/complex:1203:13: error: assignment of read-only location '((const std::complex<float>*)this)->std::complex<float>::_M_value'
1203 | _M_value *= __t;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1204:11: error: binding reference of type 'std::complex<float>&' to 'const std::complex<float>' discards qualifiers
1204 | return *this;
| ^~~~~
/usr/include/c++/9/complex: In member function 'constexpr std::complex<float>& std::complex<float>::operator/=(const std::complex<_Tp>&) const':
/usr/include/c++/9/complex:1212:13: error: assignment of read-only location '((const std::complex<float>*)this)->std::complex<float>::_M_value'
1212 | _M_value /= __t;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1213:11: error: binding reference of type 'std::complex<float>&' to 'const std::complex<float>' discards qualifiers
1213 | return *this;
| ^~~~~
/usr/include/c++/9/complex: At global scope:
/usr/include/c++/9/complex:1316:37: error: defaulted declaration 'constexpr std::complex<double>& std::complex<double>::operator=(const std::complex<double>&) const' does not match the expected signature
1316 | _GLIBCXX14_CONSTEXPR complex& operator=(const complex&) = default;
| ^~~~~~~~
/usr/include/c++/9/complex:1316:37: note: expected signature: 'std::complex<double>& std::complex<double>::operator=(const std::complex<double>&)'
/usr/include/c++/9/complex:1316:37: error: explicitly defaulted function 'constexpr std::complex<double>& std::complex<double>::operator=(const std::complex<double>&) const' cannot be declared as 'constexpr' because the implicit declaration is not 'constexpr':
/usr/include/c++/9/complex: In member function 'constexpr void std::complex<double>::real(double) const':
/usr/include/c++/9/complex:1274:46: error: assignment of read-only location '__real__ ((const std::complex<double>*)this)->std::complex<double>::_M_value'
1274 | real(double __val) { __real__ _M_value = __val; }
| ~~~~~~~~~^~~~~~~
/usr/include/c++/9/complex:1274:7: error: invalid return type 'void' of 'constexpr' function 'constexpr void std::complex<double>::real(double) const'
1274 | real(double __val) { __real__ _M_value = __val; }
| ^~~~
/usr/include/c++/9/complex: In member function 'constexpr void std::complex<double>::imag(double) const':
/usr/include/c++/9/complex:1277:46: error: assignment of read-only location '__imag__ ((const std::complex<double>*)this)->std::complex<double>::_M_value'
1277 | imag(double __val) { __imag__ _M_value = __val; }
| ~~~~~~~~~^~~~~~~
/usr/include/c++/9/complex:1277:7: error: invalid return type 'void' of 'constexpr' function 'constexpr void std::complex<double>::imag(double) const'
1277 | imag(double __val) { __imag__ _M_value = __val; }
| ^~~~
/usr/include/c++/9/complex: In member function 'constexpr std::complex<double>& std::complex<double>::operator=(double) const':
/usr/include/c++/9/complex:1282:11: error: assignment of member 'std::complex<double>::_M_value' in read-only object
1282 | _M_value = __d;
| ~~~~~~~~~^~~~~
/usr/include/c++/9/complex:1283:9: error: binding reference of type 'std::complex<double>&' to 'const std::complex<double>' discards qualifiers
1283 | return *this;
| ^~~~~
/usr/include/c++/9/complex:1284:7: error: body of 'constexpr' function 'constexpr std::complex<double>& std::complex<double>::operator=(double) const' not a return-statement
1284 | }
| ^
/usr/include/c++/9/complex: In member function 'constexpr std::complex<double>& std::complex<double>::operator+=(double) const':
/usr/include/c++/9/complex:1289:11: error: assignment of member 'std::complex<double>::_M_value' in read-only object
1289 | _M_value += __d;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1290:9: error: binding reference of type 'std::complex<double>&' to 'const std::complex<double>' discards qualifiers
1290 | return *this;
| ^~~~~
/usr/include/c++/9/complex:1291:7: error: body of 'constexpr' function 'constexpr std::complex<double>& std::complex<double>::operator+=(double) const' not a return-statement
1291 | }
| ^
/usr/include/c++/9/complex: In member function 'constexpr std::complex<double>& std::complex<double>::operator-=(double) const':
/usr/include/c++/9/complex:1296:11: error: assignment of member 'std::complex<double>::_M_value' in read-only object
1296 | _M_value -= __d;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1297:9: error: binding reference of type 'std::complex<double>&' to 'const std::complex<double>' discards qualifiers
1297 | return *this;
| ^~~~~
/usr/include/c++/9/complex:1298:7: error: body of 'constexpr' function 'constexpr std::complex<double>& std::complex<double>::operator-=(double) const' not a return-statement
1298 | }
| ^
/usr/include/c++/9/complex: In member function 'constexpr std::complex<double>& std::complex<double>::operator*=(double) const':
/usr/include/c++/9/complex:1303:11: error: assignment of member 'std::complex<double>::_M_value' in read-only object
1303 | _M_value *= __d;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1304:9: error: binding reference of type 'std::complex<double>&' to 'const std::complex<double>' discards qualifiers
1304 | return *this;
| ^~~~~
/usr/include/c++/9/complex:1305:7: error: body of 'constexpr' function 'constexpr std::complex<double>& std::complex<double>::operator*=(double) const' not a return-statement
1305 | }
| ^
/usr/include/c++/9/complex: In member function 'constexpr std::complex<double>& std::complex<double>::operator/=(double) const':
/usr/include/c++/9/complex:1310:11: error: assignment of member 'std::complex<double>::_M_value' in read-only object
1310 | _M_value /= __d;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1311:9: error: binding reference of type 'std::complex<double>&' to 'const std::complex<double>' discards qualifiers
1311 | return *this;
| ^~~~~
/usr/include/c++/9/complex:1312:7: error: body of 'constexpr' function 'constexpr std::complex<double>& std::complex<double>::operator/=(double) const' not a return-statement
1312 | }
| ^
/usr/include/c++/9/complex: In member function 'constexpr std::complex<double>& std::complex<double>::operator=(const std::complex<_Tp>&) const':
/usr/include/c++/9/complex:1324:11: error: binding reference of type 'std::complex<double>&' to 'const std::complex<double>' discards qualifiers
1324 | return *this;
| ^~~~~
/usr/include/c++/9/complex: In member function 'constexpr std::complex<double>& std::complex<double>::operator+=(const std::complex<_Tp>&) const':
/usr/include/c++/9/complex:1332:11: error: binding reference of type 'std::complex<double>&' to 'const std::complex<double>' discards qualifiers
1332 | return *this;
| ^~~~~
/usr/include/c++/9/complex: In member function 'constexpr std::complex<double>& std::complex<double>::operator-=(const std::complex<_Tp>&) const':
/usr/include/c++/9/complex:1340:11: error: binding reference of type 'std::complex<double>&' to 'const std::complex<double>' discards qualifiers
1340 | return *this;
| ^~~~~
/usr/include/c++/9/complex: In member function 'constexpr std::complex<double>& std::complex<double>::operator*=(const std::complex<_Tp>&) const':
/usr/include/c++/9/complex:1348:13: error: assignment of read-only location '((const std::complex<double>*)this)->std::complex<double>::_M_value'
1348 | _M_value *= __t;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1349:11: error: binding reference of type 'std::complex<double>&' to 'const std::complex<double>' discards qualifiers
1349 | return *this;
| ^~~~~
/usr/include/c++/9/complex: In member function 'constexpr std::complex<double>& std::complex<double>::operator/=(const std::complex<_Tp>&) const':
/usr/include/c++/9/complex:1357:13: error: assignment of read-only location '((const std::complex<double>*)this)->std::complex<double>::_M_value'
1357 | _M_value /= __t;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1358:11: error: binding reference of type 'std::complex<double>&' to 'const std::complex<double>' discards qualifiers
1358 | return *this;
| ^~~~~
/usr/include/c++/9/complex: At global scope:
/usr/include/c++/9/complex:1463:37: error: defaulted declaration 'constexpr std::complex<long double>& std::complex<long double>::operator=(const std::complex<long double>&) const' does not match the expected signature
1463 | _GLIBCXX14_CONSTEXPR complex& operator=(const complex&) = default;
| ^~~~~~~~
/usr/include/c++/9/complex:1463:37: note: expected signature: 'std::complex<long double>& std::complex<long double>::operator=(const std::complex<long double>&)'
/usr/include/c++/9/complex:1463:37: error: explicitly defaulted function 'constexpr std::complex<long double>& std::complex<long double>::operator=(const std::complex<long double>&) const' cannot be declared as 'constexpr' because the implicit declaration is not 'constexpr':
/usr/include/c++/9/complex: In member function 'constexpr void std::complex<long double>::real(long double) const':
/usr/include/c++/9/complex:1421:51: error: assignment of read-only location '__real__ ((const std::complex<long double>*)this)->std::complex<long double>::_M_value'
1421 | real(long double __val) { __real__ _M_value = __val; }
| ~~~~~~~~~^~~~~~~
/usr/include/c++/9/complex:1421:7: error: invalid return type 'void' of 'constexpr' function 'constexpr void std::complex<long double>::real(long double) const'
1421 | real(long double __val) { __real__ _M_value = __val; }
| ^~~~
/usr/include/c++/9/complex: In member function 'constexpr void std::complex<long double>::imag(long double) const':
/usr/include/c++/9/complex:1424:51: error: assignment of read-only location '__imag__ ((const std::complex<long double>*)this)->std::complex<long double>::_M_value'
1424 | imag(long double __val) { __imag__ _M_value = __val; }
| ~~~~~~~~~^~~~~~~
/usr/include/c++/9/complex:1424:7: error: invalid return type 'void' of 'constexpr' function 'constexpr void std::complex<long double>::imag(long double) const'
1424 | imag(long double __val) { __imag__ _M_value = __val; }
| ^~~~
/usr/include/c++/9/complex: In member function 'constexpr std::complex<long double>& std::complex<long double>::operator=(long double) const':
/usr/include/c++/9/complex:1429:11: error: assignment of member 'std::complex<long double>::_M_value' in read-only object
1429 | _M_value = __r;
| ~~~~~~~~~^~~~~
/usr/include/c++/9/complex:1430:9: error: binding reference of type 'std::complex<long double>&' to 'const std::complex<long double>' discards qualifiers
1430 | return *this;
| ^~~~~
/usr/include/c++/9/complex:1431:7: error: body of 'constexpr' function 'constexpr std::complex<long double>& std::complex<long double>::operator=(long double) const' not a return-statement
1431 | }
| ^
/usr/include/c++/9/complex: In member function 'constexpr std::complex<long double>& std::complex<long double>::operator+=(long double) const':
/usr/include/c++/9/complex:1436:11: error: assignment of member 'std::complex<long double>::_M_value' in read-only object
1436 | _M_value += __r;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1437:9: error: binding reference of type 'std::complex<long double>&' to 'const std::complex<long double>' discards qualifiers
1437 | return *this;
| ^~~~~
/usr/include/c++/9/complex:1438:7: error: body of 'constexpr' function 'constexpr std::complex<long double>& std::complex<long double>::operator+=(long double) const' not a return-statement
1438 | }
| ^
/usr/include/c++/9/complex: In member function 'constexpr std::complex<long double>& std::complex<long double>::operator-=(long double) const':
/usr/include/c++/9/complex:1443:11: error: assignment of member 'std::complex<long double>::_M_value' in read-only object
1443 | _M_value -= __r;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1444:9: error: binding reference of type 'std::complex<long double>&' to 'const std::complex<long double>' discards qualifiers
1444 | return *this;
| ^~~~~
/usr/include/c++/9/complex:1445:7: error: body of 'constexpr' function 'constexpr std::complex<long double>& std::complex<long double>::operator-=(long double) const' not a return-statement
1445 | }
| ^
/usr/include/c++/9/complex: In member function 'constexpr std::complex<long double>& std::complex<long double>::operator*=(long double) const':
/usr/include/c++/9/complex:1450:11: error: assignment of member 'std::complex<long double>::_M_value' in read-only object
1450 | _M_value *= __r;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1451:9: error: binding reference of type 'std::complex<long double>&' to 'const std::complex<long double>' discards qualifiers
1451 | return *this;
| ^~~~~
/usr/include/c++/9/complex:1452:7: error: body of 'constexpr' function 'constexpr std::complex<long double>& std::complex<long double>::operator*=(long double) const' not a return-statement
1452 | }
| ^
/usr/include/c++/9/complex: In member function 'constexpr std::complex<long double>& std::complex<long double>::operator/=(long double) const':
/usr/include/c++/9/complex:1457:11: error: assignment of member 'std::complex<long double>::_M_value' in read-only object
1457 | _M_value /= __r;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1458:9: error: binding reference of type 'std::complex<long double>&' to 'const std::complex<long double>' discards qualifiers
1458 | return *this;
| ^~~~~
/usr/include/c++/9/complex:1459:7: error: body of 'constexpr' function 'constexpr std::complex<long double>& std::complex<long double>::operator/=(long double) const' not a return-statement
1459 | }
| ^
/usr/include/c++/9/complex: In member function 'constexpr std::complex<long double>& std::complex<long double>::operator=(const std::complex<_Tp>&) const':
/usr/include/c++/9/complex:1471:11: error: binding reference of type 'std::complex<long double>&' to 'const std::complex<long double>' discards qualifiers
1471 | return *this;
| ^~~~~
/usr/include/c++/9/complex: In member function 'constexpr std::complex<long double>& std::complex<long double>::operator+=(const std::complex<_Tp>&) const':
/usr/include/c++/9/complex:1479:11: error: binding reference of type 'std::complex<long double>&' to 'const std::complex<long double>' discards qualifiers
1479 | return *this;
| ^~~~~
/usr/include/c++/9/complex: In member function 'constexpr std::complex<long double>& std::complex<long double>::operator-=(const std::complex<_Tp>&) const':
/usr/include/c++/9/complex:1487:11: error: binding reference of type 'std::complex<long double>&' to 'const std::complex<long double>' discards qualifiers
1487 | return *this;
| ^~~~~
/usr/include/c++/9/complex: In member function 'constexpr std::complex<long double>& std::complex<long double>::operator*=(const std::complex<_Tp>&) const':
/usr/include/c++/9/complex:1495:13: error: assignment of read-only location '((const std::complex<long double>*)this)->std::complex<long double>::_M_value'
1495 | _M_value *= __t;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1496:11: error: binding reference of type 'std::complex<long double>&' to 'const std::complex<long double>' discards qualifiers
1496 | return *this;
| ^~~~~
/usr/include/c++/9/complex: In member function 'constexpr std::complex<long double>& std::complex<long double>::operator/=(const std::complex<_Tp>&) const':
/usr/include/c++/9/complex:1504:13: error: assignment of read-only location '((const std::complex<long double>*)this)->std::complex<long double>::_M_value'
1504 | _M_value /= __t;
| ~~~~~~~~~^~~~~~
/usr/include/c++/9/complex:1505:11: error: binding reference of type 'std::complex<long double>&' to 'const std::complex<long double>' discards qualifiers
1505 | return *this;
| ^~~~~
In file included from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from foo.cc:2:
/usr/include/c++/9/array: At global scope:
/usr/include/c++/9/array:130:7: error: 'constexpr const value_type* std::array<_Tp, _Nm>::begin() const' cannot be overloaded with 'constexpr std::array<_Tp, _Nm>::value_type* std::array<_Tp, _Nm>::begin() const'
130 | begin() const noexcept
| ^~~~~
/usr/include/c++/9/array:126:7: note: previous declaration 'constexpr std::array<_Tp, _Nm>::value_type* std::array<_Tp, _Nm>::begin() const'
126 | begin() noexcept
| ^~~~~
/usr/include/c++/9/array:138:7: error: 'constexpr const value_type* std::array<_Tp, _Nm>::end() const' cannot be overloaded with 'constexpr std::array<_Tp, _Nm>::value_type* std::array<_Tp, _Nm>::end() const'
138 | end() const noexcept
| ^~~
/usr/include/c++/9/array:134:7: note: previous declaration 'constexpr std::array<_Tp, _Nm>::value_type* std::array<_Tp, _Nm>::end() const'
134 | end() noexcept
| ^~~
/usr/include/c++/9/array:146:7: error: 'constexpr std::array<_Tp, _Nm>::const_reverse_iterator std::array<_Tp, _Nm>::rbegin() const' cannot be overloaded with 'constexpr std::array<_Tp, _Nm>::reverse_iterator std::array<_Tp, _Nm>::rbegin() const'
146 | rbegin() const noexcept
| ^~~~~~
/usr/include/c++/9/array:142:7: note: previous declaration 'constexpr std::array<_Tp, _Nm>::reverse_iterator std::array<_Tp, _Nm>::rbegin() const'
142 | rbegin() noexcept
| ^~~~~~
/usr/include/c++/9/array:154:7: error: 'constexpr std::array<_Tp, _Nm>::const_reverse_iterator std::array<_Tp, _Nm>::rend() const' cannot be overloaded with 'constexpr std::array<_Tp, _Nm>::reverse_iterator std::array<_Tp, _Nm>::rend() const'
154 | rend() const noexcept
| ^~~~
/usr/include/c++/9/array:150:7: note: previous declaration 'constexpr std::array<_Tp, _Nm>::reverse_iterator std::array<_Tp, _Nm>::rend() const'
150 | rend() noexcept
| ^~~~
/usr/include/c++/9/array:189:7: error: 'constexpr const value_type& std::array<_Tp, _Nm>::operator[](std::array<_Tp, _Nm>::size_type) const' cannot be overloaded with 'constexpr std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::operator[](std::array<_Tp, _Nm>::size_type) const'
189 | operator[](size_type __n) const noexcept
| ^~~~~~~~
/usr/include/c++/9/array:185:7: note: previous declaration 'constexpr std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::operator[](std::array<_Tp, _Nm>::size_type) const'
185 | operator[](size_type __n) noexcept
| ^~~~~~~~
/usr/include/c++/9/array:203:7: error: 'constexpr const value_type& std::array<_Tp, _Nm>::at(std::array<_Tp, _Nm>::size_type) const' cannot be overloaded with 'constexpr std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::at(std::array<_Tp, _Nm>::size_type) const'
203 | at(size_type __n) const
| ^~
/usr/include/c++/9/array:193:7: note: previous declaration 'constexpr std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::at(std::array<_Tp, _Nm>::size_type) const'
193 | at(size_type __n)
| ^~
/usr/include/c++/9/array:219:7: error: 'constexpr const value_type& std::array<_Tp, _Nm>::front() const' cannot be overloaded with 'constexpr std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::front() const'
219 | front() const noexcept
| ^~~~~
/usr/include/c++/9/array:215:7: note: previous declaration 'constexpr std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::front() const'
215 | front() noexcept
| ^~~~~
/usr/include/c++/9/array:227:7: error: 'constexpr const value_type& std::array<_Tp, _Nm>::back() const' cannot be overloaded with 'constexpr std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::back() const'
227 | back() const noexcept
| ^~~~
/usr/include/c++/9/array:223:7: note: previous declaration 'constexpr std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::back() const'
223 | back() noexcept
| ^~~~
/usr/include/c++/9/array:238:7: error: 'constexpr const value_type* std::array<_Tp, _Nm>::data() const' cannot be overloaded with 'constexpr std::array<_Tp, _Nm>::value_type* std::array<_Tp, _Nm>::data() const'
238 | data() const noexcept
| ^~~~
/usr/include/c++/9/array:234:7: note: previous declaration 'constexpr std::array<_Tp, _Nm>::value_type* std::array<_Tp, _Nm>::data() const'
234 | data() noexcept
| ^~~~
In file included from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from foo.cc:2:
/usr/include/c++/9/tuple:1681:24: error: expected primary-expression before 'auto'
1681 | constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/tuple:1681:24: error: expected ')' before 'auto'
1681 | constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/tuple:1681:24: error: expected primary-expression before 'auto'
1681 | constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/tuple:1681:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/tuple:1681:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/tuple:1681:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/tuple:1681:15: error: expected unqualified-id before 'decltype'
1681 | constexpr decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/tuple:1689:24: error: expected primary-expression before 'auto'
1689 | constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/tuple:1689:24: error: expected ')' before 'auto'
1689 | constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/tuple:1689:24: error: expected primary-expression before 'auto'
1689 | constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/tuple:1689:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/tuple:1689:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/tuple:1689:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/tuple:1689:15: error: expected unqualified-id before 'decltype'
1689 | constexpr decltype(auto)
| ^~~~~~~~
In file included from /usr/include/c++/9/functional:58,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from foo.cc:2:
/usr/include/c++/9/bits/refwrap.h:102:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...)>'
102 | _GLIBCXX_MEM_FN_TRAITS(noexcept, true_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:97:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...)>'
97 | _GLIBCXX_MEM_FN_TRAITS( , true_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:102:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...)>'
102 | _GLIBCXX_MEM_FN_TRAITS(noexcept, true_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:97:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...)>'
97 | _GLIBCXX_MEM_FN_TRAITS( , true_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:102:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) const>'
102 | _GLIBCXX_MEM_FN_TRAITS(noexcept, true_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:97:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) const>'
97 | _GLIBCXX_MEM_FN_TRAITS( , true_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:102:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) const>'
102 | _GLIBCXX_MEM_FN_TRAITS(noexcept, true_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:97:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) const>'
97 | _GLIBCXX_MEM_FN_TRAITS( , true_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:102:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) volatile>'
102 | _GLIBCXX_MEM_FN_TRAITS(noexcept, true_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:97:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) volatile>'
97 | _GLIBCXX_MEM_FN_TRAITS( , true_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:102:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) volatile>'
102 | _GLIBCXX_MEM_FN_TRAITS(noexcept, true_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:97:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) volatile>'
97 | _GLIBCXX_MEM_FN_TRAITS( , true_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:102:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) const volatile>'
102 | _GLIBCXX_MEM_FN_TRAITS(noexcept, true_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:97:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) const volatile>'
97 | _GLIBCXX_MEM_FN_TRAITS( , true_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:102:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) const volatile>'
102 | _GLIBCXX_MEM_FN_TRAITS(noexcept, true_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:97:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) const volatile>'
97 | _GLIBCXX_MEM_FN_TRAITS( , true_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:103:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) &>'
103 | _GLIBCXX_MEM_FN_TRAITS(& noexcept, true_type, false_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:98:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) &>'
98 | _GLIBCXX_MEM_FN_TRAITS(&, true_type, false_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:103:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) &>'
103 | _GLIBCXX_MEM_FN_TRAITS(& noexcept, true_type, false_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:98:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) &>'
98 | _GLIBCXX_MEM_FN_TRAITS(&, true_type, false_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:103:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) const &>'
103 | _GLIBCXX_MEM_FN_TRAITS(& noexcept, true_type, false_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:98:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) const &>'
98 | _GLIBCXX_MEM_FN_TRAITS(&, true_type, false_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:103:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) const &>'
103 | _GLIBCXX_MEM_FN_TRAITS(& noexcept, true_type, false_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:98:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) const &>'
98 | _GLIBCXX_MEM_FN_TRAITS(&, true_type, false_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:103:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) volatile &>'
103 | _GLIBCXX_MEM_FN_TRAITS(& noexcept, true_type, false_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:98:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) volatile &>'
98 | _GLIBCXX_MEM_FN_TRAITS(&, true_type, false_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:103:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) volatile &>'
103 | _GLIBCXX_MEM_FN_TRAITS(& noexcept, true_type, false_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:98:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) volatile &>'
98 | _GLIBCXX_MEM_FN_TRAITS(&, true_type, false_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:103:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) const volatile &>'
103 | _GLIBCXX_MEM_FN_TRAITS(& noexcept, true_type, false_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:98:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) const volatile &>'
98 | _GLIBCXX_MEM_FN_TRAITS(&, true_type, false_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:103:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) const volatile &>'
103 | _GLIBCXX_MEM_FN_TRAITS(& noexcept, true_type, false_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:98:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) const volatile &>'
98 | _GLIBCXX_MEM_FN_TRAITS(&, true_type, false_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:104:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) &&>'
104 | _GLIBCXX_MEM_FN_TRAITS(&& noexcept, false_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:99:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) &&>'
99 | _GLIBCXX_MEM_FN_TRAITS(&&, false_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:104:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) &&>'
104 | _GLIBCXX_MEM_FN_TRAITS(&& noexcept, false_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:99:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) &&>'
99 | _GLIBCXX_MEM_FN_TRAITS(&&, false_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:104:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) const &&>'
104 | _GLIBCXX_MEM_FN_TRAITS(&& noexcept, false_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:99:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) const &&>'
99 | _GLIBCXX_MEM_FN_TRAITS(&&, false_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:104:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) const &&>'
104 | _GLIBCXX_MEM_FN_TRAITS(&& noexcept, false_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:99:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) const &&>'
99 | _GLIBCXX_MEM_FN_TRAITS(&&, false_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:104:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) volatile &&>'
104 | _GLIBCXX_MEM_FN_TRAITS(&& noexcept, false_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:99:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) volatile &&>'
99 | _GLIBCXX_MEM_FN_TRAITS(&&, false_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:104:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) volatile &&>'
104 | _GLIBCXX_MEM_FN_TRAITS(&& noexcept, false_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:99:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) volatile &&>'
99 | _GLIBCXX_MEM_FN_TRAITS(&&, false_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:104:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) const volatile &&>'
104 | _GLIBCXX_MEM_FN_TRAITS(&& noexcept, false_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:99:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ...) const volatile &&>'
99 | _GLIBCXX_MEM_FN_TRAITS(&&, false_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:104:1: error: redefinition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) const volatile &&>'
104 | _GLIBCXX_MEM_FN_TRAITS(&& noexcept, false_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/refwrap.h:99:1: note: previous definition of 'struct std::_Mem_fn_traits<_Res (_Class::*)(_ArgTypes ..., ...) const volatile &&>'
99 | _GLIBCXX_MEM_FN_TRAITS(&&, false_type, true_type)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from foo.cc:2:
/usr/include/c++/9/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = long unsigned int]':
/usr/include/c++/9/bits/hashtable_policy.h:538:66: required from here
/usr/include/c++/9/bits/stl_algobase.h:206:5: error: body of 'constexpr' function 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = long unsigned int]' not a return-statement
206 | }
| ^
In file included from /usr/include/c++/9/bits/node_handle.h:39,
from /usr/include/c++/9/bits/hashtable.h:37,
from /usr/include/c++/9/unordered_map:46,
from /usr/include/c++/9/functional:61,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from foo.cc:2:
/usr/include/c++/9/optional:269:7: error: 'constexpr const _Tp& std::_Optional_payload_base<_Tp>::_M_get() const' cannot be overloaded with 'constexpr _Tp& std::_Optional_payload_base<_Tp>::_M_get() const'
269 | _M_get() const noexcept
| ^~~~~~
/usr/include/c++/9/optional:265:7: note: previous declaration 'constexpr _Tp& std::_Optional_payload_base<_Tp>::_M_get() const'
265 | _M_get() noexcept
| ^~~~~~
/usr/include/c++/9/optional: In constructor 'std::_Optional_payload_base<_Tp>::_Optional_payload_base(bool, const std::_Optional_payload_base<_Tp>&)':
/usr/include/c++/9/optional:134:7: error: 'constexpr' constructor does not have empty body
134 | }
| ^
/usr/include/c++/9/optional: In constructor 'std::_Optional_payload_base<_Tp>::_Optional_payload_base(bool, std::_Optional_payload_base<_Tp>&&)':
/usr/include/c++/9/optional:144:7: error: 'constexpr' constructor does not have empty body
144 | }
| ^
/usr/include/c++/9/optional: At global scope:
/usr/include/c++/9/optional:443:7: error: 'constexpr const _Tp& std::_Optional_base_impl<_Tp, _Dp>::_M_get() const' cannot be overloaded with 'constexpr _Tp& std::_Optional_base_impl<_Tp, _Dp>::_M_get() const'
443 | _M_get() const noexcept
| ^~~~~~
/usr/include/c++/9/optional:436:7: note: previous declaration 'constexpr _Tp& std::_Optional_base_impl<_Tp, _Dp>::_M_get() const'
436 | _M_get() noexcept
| ^~~~~~
/usr/include/c++/9/optional:893:7: error: 'constexpr _Tp* std::optional<_Tp>::operator->() const' cannot be overloaded with 'constexpr const _Tp* std::optional<_Tp>::operator->() const'
893 | operator->()
| ^~~~~~~~
/usr/include/c++/9/optional:888:7: note: previous declaration 'constexpr const _Tp* std::optional<_Tp>::operator->() const'
888 | operator->() const
| ^~~~~~~~
/usr/include/c++/9/optional:901:7: error: 'constexpr _Tp& std::optional<_Tp>::operator*() const &' cannot be overloaded with 'constexpr const _Tp& std::optional<_Tp>::operator*() const &'
901 | operator*()&
| ^~~~~~~~
/usr/include/c++/9/optional:897:7: note: previous declaration 'constexpr const _Tp& std::optional<_Tp>::operator*() const &'
897 | operator*() const&
| ^~~~~~~~
/usr/include/c++/9/optional:909:7: error: 'constexpr const _Tp&& std::optional<_Tp>::operator*() const &&' cannot be overloaded with 'constexpr _Tp&& std::optional<_Tp>::operator*() const &&'
909 | operator*() const&&
| ^~~~~~~~
/usr/include/c++/9/optional:905:7: note: previous declaration 'constexpr _Tp&& std::optional<_Tp>::operator*() const &&'
905 | operator*()&&
| ^~~~~~~~
/usr/include/c++/9/optional:927:7: error: 'constexpr _Tp& std::optional<_Tp>::value() const &' cannot be overloaded with 'constexpr const _Tp& std::optional<_Tp>::value() const &'
927 | value()&
| ^~~~~
/usr/include/c++/9/optional:919:7: note: previous declaration 'constexpr const _Tp& std::optional<_Tp>::value() const &'
919 | value() const&
| ^~~~~
/usr/include/c++/9/optional:943:7: error: 'constexpr const _Tp&& std::optional<_Tp>::value() const &&' cannot be overloaded with 'constexpr _Tp&& std::optional<_Tp>::value() const &&'
943 | value() const&&
| ^~~~~
/usr/include/c++/9/optional:935:7: note: previous declaration 'constexpr _Tp&& std::optional<_Tp>::value() const &&'
935 | value()&&
| ^~~~~
/usr/include/c++/9/optional: In constructor 'std::optional<_Tp>::optional(const std::optional<_Up>&)':
/usr/include/c++/9/optional:719:2: error: 'constexpr' constructor does not have empty body
719 | }
| ^
/usr/include/c++/9/optional: In constructor 'std::optional<_Tp>::optional(const std::optional<_Up>&)':
/usr/include/c++/9/optional:731:2: error: 'constexpr' constructor does not have empty body
731 | }
| ^
/usr/include/c++/9/optional: In constructor 'std::optional<_Tp>::optional(std::optional<_Up>&&)':
/usr/include/c++/9/optional:743:2: error: 'constexpr' constructor does not have empty body
743 | }
| ^
/usr/include/c++/9/optional: In constructor 'std::optional<_Tp>::optional(std::optional<_Up>&&)':
/usr/include/c++/9/optional:755:2: error: 'constexpr' constructor does not have empty body
755 | }
| ^
In file included from /usr/include/c++/9/unordered_map:47,
from /usr/include/c++/9/functional:61,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from foo.cc:2:
/usr/include/c++/9/bits/unordered_map.h: At global scope:
/usr/include/c++/9/bits/unordered_map.h:2133:14: error: '_S_get_table' function uses 'auto' type specifier without trailing return type
2133 | static auto&
| ^~~~
/usr/include/c++/9/bits/unordered_map.h:2133:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/bits/unordered_map.h:2137:14: error: '_S_get_table' function uses 'auto' type specifier without trailing return type
2137 | static auto&
| ^~~~
/usr/include/c++/9/bits/unordered_map.h:2137:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/bits/unordered_map.h:2157:14: error: '_S_get_table' function uses 'auto' type specifier without trailing return type
2157 | static auto&
| ^~~~
/usr/include/c++/9/bits/unordered_map.h:2157:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/bits/unordered_map.h:2161:14: error: '_S_get_table' function uses 'auto' type specifier without trailing return type
2161 | static auto&
| ^~~~
/usr/include/c++/9/bits/unordered_map.h:2161:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
In file included from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from foo.cc:2:
/usr/include/c++/9/functional:912:11: error: expected primary-expression before 'auto'
912 | decltype(auto)
| ^~~~
/usr/include/c++/9/functional:912:11: error: expected ')' before 'auto'
912 | decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/functional:912:11: error: expected primary-expression before 'auto'
912 | decltype(auto)
| ^~~~
/usr/include/c++/9/functional:912:11: error: expected primary-expression before 'auto'
/usr/include/c++/9/functional:912:11: error: expected primary-expression before 'auto'
/usr/include/c++/9/functional:912:11: error: expected primary-expression before 'auto'
/usr/include/c++/9/functional:912:2: error: expected unqualified-id before 'decltype'
912 | decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/functional:1009:12: error: 'not_fn' function uses 'auto' type specifier without trailing return type
1009 | inline auto
| ^~~~
/usr/include/c++/9/functional:1009:12: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from foo.cc:2:
/usr/include/c++/9/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = long int]':
/usr/include/c++/9/bits/fstream.tcc:775:59: required from here
/usr/include/c++/9/bits/stl_algobase.h:206:5: error: body of 'constexpr' function 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = long int]' not a return-statement
206 | }
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:72,
from foo.cc:2:
/usr/include/c++/9/iomanip:460:12: error: 'quoted' function uses 'auto' type specifier without trailing return type
460 | inline auto
| ^~~~
/usr/include/c++/9/iomanip:460:12: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/iomanip:469:12: error: 'quoted' function uses 'auto' type specifier without trailing return type
469 | inline auto
| ^~~~
/usr/include/c++/9/iomanip:469:12: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/iomanip:479:12: error: 'quoted' function uses 'auto' type specifier without trailing return type
479 | inline auto
| ^~~~
/usr/include/c++/9/iomanip:479:12: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/iomanip:492:12: error: 'quoted' function uses 'auto' type specifier without trailing return type
492 | inline auto
| ^~~~
/usr/include/c++/9/iomanip:492:12: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
In file included from /usr/include/c++/9/map:60,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from foo.cc:2:
/usr/include/c++/9/bits/stl_tree.h:2644:14: error: '_S_get_impl' function uses 'auto' type specifier without trailing return type
2644 | static auto&
| ^~~~
/usr/include/c++/9/bits/stl_tree.h:2644:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from foo.cc:2:
/usr/include/c++/9/bits/stl_map.h:1525:14: error: '_S_get_tree' function uses 'auto' type specifier without trailing return type
1525 | static auto&
| ^~~~
/usr/include/c++/9/bits/stl_map.h:1525:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/bits/stl_map.h:1529:14: error: '_S_get_tree' function uses 'auto' type specifier without trailing return type
1529 | static auto&
| ^~~~
/usr/include/c++/9/bits/stl_map.h:1529:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
In file included from /usr/include/c++/9/map:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from foo.cc:2:
/usr/include/c++/9/bits/stl_multimap.h:1189:14: error: '_S_get_tree' function uses 'auto' type specifier without trailing return type
1189 | static auto&
| ^~~~
/usr/include/c++/9/bits/stl_multimap.h:1189:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/bits/stl_multimap.h:1193:14: error: '_S_get_tree' function uses 'auto' type specifier without trailing return type
1193 | static auto&
| ^~~~
/usr/include/c++/9/bits/stl_multimap.h:1193:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:82,
from foo.cc:2:
/usr/include/c++/9/memory:199:15: error: '__uses_alloc_args' function uses 'auto' type specifier without trailing return type
199 | constexpr auto
| ^~~~
/usr/include/c++/9/memory:199:15: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/memory:248:15: error: 'uses_allocator_construction_args' function uses 'auto' type specifier without trailing return type
248 | constexpr auto
| ^~~~
/usr/include/c++/9/memory:248:15: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/memory:260:15: error: 'uses_allocator_construction_args' function uses 'auto' type specifier without trailing return type
260 | constexpr auto
| ^~~~
/usr/include/c++/9/memory:260:15: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/memory:265:15: error: 'uses_allocator_construction_args' function uses 'auto' type specifier without trailing return type
265 | constexpr auto
| ^~~~
/usr/include/c++/9/memory:265:15: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/memory:270:15: error: 'uses_allocator_construction_args' function uses 'auto' type specifier without trailing return type
270 | constexpr auto
| ^~~~
/usr/include/c++/9/memory:270:15: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/memory:275:15: error: 'uses_allocator_construction_args' function uses 'auto' type specifier without trailing return type
275 | constexpr auto
| ^~~~
/usr/include/c++/9/memory:275:15: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/memory:281:15: error: 'uses_allocator_construction_args' function uses 'auto' type specifier without trailing return type
281 | constexpr auto
| ^~~~
/usr/include/c++/9/memory:281:15: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/memory:286:15: error: 'uses_allocator_construction_args' function uses 'auto' type specifier without trailing return type
286 | constexpr auto
| ^~~~
/usr/include/c++/9/memory:286:15: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/memory: In function 'constexpr auto std::uses_allocator_construction_args(const _Alloc&, std::piecewise_construct_t, _Tuple1&&, _Tuple2&&)':
/usr/include/c++/9/memory:294:9: error: 'apply' is not a member of 'std'
294 | std::apply([&__a](auto&&... __args1) {
| ^~~~~
/usr/include/c++/9/memory:294:22: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
294 | std::apply([&__a](auto&&... __args1) {
| ^~~~
/usr/include/c++/9/memory:294:32: error: expansion pattern 'int&&' contains no parameter packs
294 | std::apply([&__a](auto&&... __args1) {
| ^~~~~~~
/usr/include/c++/9/memory: In lambda function:
/usr/include/c++/9/memory:296:32: error: '__args1' was not declared in this scope
296 | __a, std::forward<decltype(__args1)>(__args1)...);
| ^~~~~~~
/usr/include/c++/9/memory:296:50: error: expansion pattern 'forward<<expression error> >(__args1)' contains no parameter packs
296 | __a, std::forward<decltype(__args1)>(__args1)...);
| ^~~
/usr/include/c++/9/memory: In function 'constexpr auto std::uses_allocator_construction_args(const _Alloc&, std::piecewise_construct_t, _Tuple1&&, _Tuple2&&)':
/usr/include/c++/9/memory:298:9: error: 'apply' is not a member of 'std'
298 | std::apply([&__a](auto&&... __args2) {
| ^~~~~
/usr/include/c++/9/memory:298:22: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
298 | std::apply([&__a](auto&&... __args2) {
| ^~~~
/usr/include/c++/9/memory:298:32: error: expansion pattern 'int&&' contains no parameter packs
298 | std::apply([&__a](auto&&... __args2) {
| ^~~~~~~
/usr/include/c++/9/memory: In lambda function:
/usr/include/c++/9/memory:300:32: error: '__args2' was not declared in this scope
300 | __a, std::forward<decltype(__args2)>(__args2)...);
| ^~~~~~~
/usr/include/c++/9/memory:300:50: error: expansion pattern 'forward<<expression error> >(__args2)' contains no parameter packs
300 | __a, std::forward<decltype(__args2)>(__args2)...);
| ^~~
/usr/include/c++/9/memory: At global scope:
/usr/include/c++/9/memory:305:15: error: 'uses_allocator_construction_args' function uses 'auto' type specifier without trailing return type
305 | constexpr auto
| ^~~~
/usr/include/c++/9/memory:305:15: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/memory:318:15: error: 'uses_allocator_construction_args' function uses 'auto' type specifier without trailing return type
318 | constexpr auto
| ^~~~
/usr/include/c++/9/memory:318:15: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/memory:334:15: error: 'uses_allocator_construction_args' function uses 'auto' type specifier without trailing return type
334 | constexpr auto
| ^~~~
/usr/include/c++/9/memory:334:15: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/memory:348:15: error: 'uses_allocator_construction_args' function uses 'auto' type specifier without trailing return type
348 | constexpr auto
| ^~~~
/usr/include/c++/9/memory:348:15: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from foo.cc:2:
/usr/include/c++/9/bits/stl_queue.h:269:11: error: expected primary-expression before 'auto'
269 | decltype(auto)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:269:11: error: expected ')' before 'auto'
269 | decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/bits/stl_queue.h:269:11: error: expected primary-expression before 'auto'
269 | decltype(auto)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:269:11: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_queue.h:269:11: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_queue.h:269:11: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_queue.h:269:2: error: expected unqualified-id before 'decltype'
269 | decltype(auto)
| ^~~~~~~~
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from foo.cc:2:
/usr/include/c++/9/bits/stl_set.h:1046:14: error: '_S_get_tree' function uses 'auto' type specifier without trailing return type
1046 | static auto&
| ^~~~
/usr/include/c++/9/bits/stl_set.h:1046:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/bits/stl_set.h:1050:14: error: '_S_get_tree' function uses 'auto' type specifier without trailing return type
1050 | static auto&
| ^~~~
/usr/include/c++/9/bits/stl_set.h:1050:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
In file included from /usr/include/c++/9/set:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from foo.cc:2:
/usr/include/c++/9/bits/stl_multiset.h:1033:14: error: '_S_get_tree' function uses 'auto' type specifier without trailing return type
1033 | static auto&
| ^~~~
/usr/include/c++/9/bits/stl_multiset.h:1033:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/bits/stl_multiset.h:1037:14: error: '_S_get_tree' function uses 'auto' type specifier without trailing return type
1037 | static auto&
| ^~~~
/usr/include/c++/9/bits/stl_multiset.h:1037:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from foo.cc:2:
/usr/include/c++/9/bits/stl_stack.h:243:11: error: expected primary-expression before 'auto'
243 | decltype(auto)
| ^~~~
/usr/include/c++/9/bits/stl_stack.h:243:11: error: expected ')' before 'auto'
243 | decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/bits/stl_stack.h:243:11: error: expected primary-expression before 'auto'
243 | decltype(auto)
| ^~~~
/usr/include/c++/9/bits/stl_stack.h:243:11: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_stack.h:243:11: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_stack.h:243:11: error: expected primary-expression before 'auto'
/usr/include/c++/9/bits/stl_stack.h:243:2: error: expected unqualified-id before 'decltype'
243 | decltype(auto)
| ^~~~~~~~
In file included from /usr/include/c++/9/future:38,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:105,
from foo.cc:2:
/usr/include/c++/9/mutex: In destructor 'std::scoped_lock<_MutexTypes>::~scoped_lock()':
/usr/include/c++/9/mutex:578:7: error: 'apply' is not a member of 'std'
578 | std::apply([](_MutexTypes&... __m) {
| ^~~~~
In file included from /usr/include/c++/9/regex:66,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from foo.cc:2:
/usr/include/c++/9/memory_resource: At global scope:
/usr/include/c++/9/memory_resource:490:5: error: '_M_thread_specific_pools' function uses 'auto' type specifier without trailing return type
490 | auto _M_thread_specific_pools() noexcept;
| ^~~~
/usr/include/c++/9/memory_resource:490:5: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/memory_resource:552:5: error: '_M_find_pool' function uses 'auto' type specifier without trailing return type
552 | auto _M_find_pool(size_t) noexcept;
| ^~~~
/usr/include/c++/9/memory_resource:552:5: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:111,
from foo.cc:2:
/usr/include/c++/9/scoped_allocator: In member function 'void std::scoped_allocator_adaptor<_OuterAlloc, _InnerAllocs>::construct(_Tp*, _Args&& ...)':
/usr/include/c++/9/scoped_allocator:431:9: error: 'apply' is not a member of 'std'
431 | std::apply([__p, this](auto&&... __newargs) {
| ^~~~~
/usr/include/c++/9/scoped_allocator:431:27: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
431 | std::apply([__p, this](auto&&... __newargs) {
| ^~~~
/usr/include/c++/9/scoped_allocator:431:37: error: expansion pattern 'int&&' contains no parameter packs
431 | std::apply([__p, this](auto&&... __newargs) {
| ^~~~~~~~~
/usr/include/c++/9/scoped_allocator: In lambda function:
/usr/include/c++/9/scoped_allocator:433:27: error: '__newargs' was not declared in this scope; did you mean '__args'?
433 | std::forward<decltype(__newargs)>(__newargs)...);
| ^~~~~~~~~
| __args
/usr/include/c++/9/scoped_allocator:433:49: error: expansion pattern 'forward<<expression error> >(__newargs)' contains no parameter packs
433 | std::forward<decltype(__newargs)>(__newargs)...);
| ^~~
In file included from /usr/include/c++/9/unordered_set:47,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:118,
from foo.cc:2:
/usr/include/c++/9/bits/unordered_set.h: At global scope:
/usr/include/c++/9/bits/unordered_set.h:1744:14: error: '_S_get_table' function uses 'auto' type specifier without trailing return type
1744 | static auto&
| ^~~~
/usr/include/c++/9/bits/unordered_set.h:1744:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/bits/unordered_set.h:1748:14: error: '_S_get_table' function uses 'auto' type specifier without trailing return type
1748 | static auto&
| ^~~~
/usr/include/c++/9/bits/unordered_set.h:1748:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/bits/unordered_set.h:1768:14: error: '_S_get_table' function uses 'auto' type specifier without trailing return type
1768 | static auto&
| ^~~~
/usr/include/c++/9/bits/unordered_set.h:1768:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/bits/unordered_set.h:1772:14: error: '_S_get_table' function uses 'auto' type specifier without trailing return type
1772 | static auto&
| ^~~~
/usr/include/c++/9/bits/unordered_set.h:1772:14: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:127,
from foo.cc:2:
/usr/include/c++/9/charconv: In function 'constexpr unsigned char std::__detail::__from_chars_alpha_to_num(char)':
/usr/include/c++/9/charconv:563:3: error: body of 'constexpr' function 'constexpr unsigned char std::__detail::__from_chars_alpha_to_num(char)' not a return-statement
563 | }
| ^
In file included from /usr/include/c++/9/filesystem:37,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:129,
from foo.cc:2:
/usr/include/c++/9/bits/fs_path.h: In member function 'std::filesystem::__cxx11::path::_Type std::filesystem::__cxx11::path::_List::type() const':
/usr/include/c++/9/bits/fs_path.h:572:65: error: cannot convert 'uintptr_t' {aka 'long unsigned int'} to 'std::filesystem::__cxx11::path::_Type' in initialization
572 | { return _Type{reinterpret_cast<uintptr_t>(_M_impl.get()) & 0x3}; }
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
| |
| uintptr_t {aka long unsigned int}
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from foo.cc:2:
/usr/include/c++/9/variant: At global scope:
/usr/include/c++/9/variant:144:24: error: expected primary-expression before 'auto'
144 | constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:144:24: error: expected ')' before 'auto'
144 | constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/variant:144:24: error: expected primary-expression before 'auto'
144 | constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:144:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:144:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:144:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:144:15: error: expected unqualified-id before 'decltype'
144 | constexpr decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/variant:148:14: error: expected primary-expression before 'auto'
148 | decltype(auto)
| ^~~~
/usr/include/c++/9/variant:148:14: error: expected ')' before 'auto'
148 | decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/variant:148:14: error: expected primary-expression before 'auto'
148 | decltype(auto)
| ^~~~
/usr/include/c++/9/variant:148:14: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:148:14: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:148:14: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:148:5: error: expected unqualified-id before 'decltype'
148 | decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/variant:209:24: error: 'constexpr _Type& std::__detail::__variant::_Uninitialized<_Type, true>::_M_get() const &' cannot be overloaded with 'constexpr const _Type& std::__detail::__variant::_Uninitialized<_Type, true>::_M_get() const &'
209 | constexpr _Type& _M_get() & noexcept
| ^~~~~~
/usr/include/c++/9/variant:206:30: note: previous declaration 'constexpr const _Type& std::__detail::__variant::_Uninitialized<_Type, true>::_M_get() const &'
206 | constexpr const _Type& _M_get() const & noexcept
| ^~~~~~
/usr/include/c++/9/variant:215:25: error: 'constexpr _Type&& std::__detail::__variant::_Uninitialized<_Type, true>::_M_get() const &&' cannot be overloaded with 'constexpr const _Type&& std::__detail::__variant::_Uninitialized<_Type, true>::_M_get() const &&'
215 | constexpr _Type&& _M_get() && noexcept
| ^~~~~~
/usr/include/c++/9/variant:212:31: note: previous declaration 'constexpr const _Type&& std::__detail::__variant::_Uninitialized<_Type, true>::_M_get() const &&'
212 | constexpr const _Type&& _M_get() const && noexcept
| ^~~~~~
/usr/include/c++/9/variant: In constructor 'std::__detail::__variant::_Uninitialized<_Type, false>::_Uninitialized(std::in_place_index_t<0>, _Args&& ...)':
/usr/include/c++/9/variant:230:2: error: 'constexpr' constructor does not have empty body
230 | }
| ^
/usr/include/c++/9/variant: At global scope:
/usr/include/c++/9/variant:248:24: error: expected primary-expression before 'auto'
248 | constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:248:24: error: expected ')' before 'auto'
248 | constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/variant:248:24: error: expected primary-expression before 'auto'
248 | constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:248:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:248:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:248:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:248:15: error: expected unqualified-id before 'decltype'
248 | constexpr decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/variant:253:24: error: expected primary-expression before 'auto'
253 | constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:253:24: error: expected ')' before 'auto'
253 | constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/variant:253:24: error: expected primary-expression before 'auto'
253 | constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:253:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:253:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:253:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:253:15: error: expected unqualified-id before 'decltype'
253 | constexpr decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/variant:262:24: error: expected primary-expression before 'auto'
262 | constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:262:24: error: expected ')' before 'auto'
262 | constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/variant:262:24: error: expected primary-expression before 'auto'
262 | constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:262:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:262:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:262:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:262:15: error: expected unqualified-id before 'decltype'
262 | constexpr decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/variant: In member function 'constexpr void std::__detail::__variant::_Variant_storage<false, _Types ...>::_M_reset_impl() const':
/usr/include/c++/9/variant:389:16: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
389 | __do_visit([](auto&& __this_mem) mutable
| ^~~~
/usr/include/c++/9/variant:396:7: error: '__variant_cast' was not declared in this scope; did you mean '__variant_cookie'?
396 | }, __variant_cast<_Types...>(*this));
| ^~~~~~~~~~~~~~
| __variant_cookie
/usr/include/c++/9/variant:396:28: error: expected primary-expression before '...' token
396 | }, __variant_cast<_Types...>(*this));
| ^~~
/usr/include/c++/9/variant: In function 'void std::__detail::__variant::__variant_construct(_Tp&&, _Up&&)':
/usr/include/c++/9/variant:484:27: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
484 | __do_visit([&__lhs](auto&& __rhs_mem) mutable
| ^~~~
/usr/include/c++/9/variant:490:5: error: '__variant_cast' was not declared in this scope; did you mean '__variant_cookie'?
490 | }, __variant_cast<_Types...>(std::forward<_Up>(__rhs)));
| ^~~~~~~~~~~~~~
| __variant_cookie
/usr/include/c++/9/variant:490:26: error: expected primary-expression before '...' token
490 | }, __variant_cast<_Types...>(std::forward<_Up>(__rhs)));
| ^~~
/usr/include/c++/9/variant: In member function 'std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>& std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&)':
/usr/include/c++/9/variant:594:2: error: '__do_visit' was not declared in this scope; did you mean '__ioinit'?
594 | __do_visit<__visit_with_index>([this](auto&& __rhs_mem,
| ^~~~~~~~~~
| __ioinit
/usr/include/c++/9/variant:594:40: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
594 | __do_visit<__visit_with_index>([this](auto&& __rhs_mem,
| ^~~~
/usr/include/c++/9/variant:595:12: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
595 | auto __rhs_index) mutable
| ^~~~
/usr/include/c++/9/variant: In lambda function:
/usr/include/c++/9/variant:598:47: error: '__rhs_index' is not a constant expression
598 | if constexpr (__rhs_index != variant_npos)
| ^
/usr/include/c++/9/variant:601:16: error: '__get' is not a member of 'std::__detail::__variant'
601 | __variant::__get<__rhs_index>(*this) = __rhs_mem;
| ^~~~~
/usr/include/c++/9/variant:616:9: error: '__variant_cast' was not declared in this scope; did you mean '__variant_cookie'?
616 | __variant_cast<_Types...>(*this)
| ^~~~~~~~~~~~~~
| __variant_cookie
/usr/include/c++/9/variant:616:30: error: expected primary-expression before '...' token
616 | __variant_cast<_Types...>(*this)
| ^~~
/usr/include/c++/9/variant: In member function 'std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>& std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&)':
/usr/include/c++/9/variant:624:7: error: '__variant_cast' was not declared in this scope; did you mean '__variant_cookie'?
624 | }, __variant_cast<_Types...>(__rhs));
| ^~~~~~~~~~~~~~
| __variant_cookie
/usr/include/c++/9/variant:624:28: error: expected primary-expression before '...' token
624 | }, __variant_cast<_Types...>(__rhs));
| ^~~
/usr/include/c++/9/variant:624:33: error: operand of fold expression has no unexpanded parameter packs
624 | }, __variant_cast<_Types...>(__rhs));
| ~^~~~~~
/usr/include/c++/9/variant: In member function 'std::__detail::__variant::_Move_assign_base<<anonymous>, _Types>& std::__detail::__variant::_Move_assign_base<<anonymous>, _Types>::operator=(std::__detail::__variant::_Move_assign_base<<anonymous>, _Types>&&)':
/usr/include/c++/9/variant:654:2: error: '__do_visit' was not declared in this scope; did you mean '__ioinit'?
654 | __do_visit<__visit_with_index>([this](auto&& __rhs_mem,
| ^~~~~~~~~~
| __ioinit
/usr/include/c++/9/variant:654:40: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
654 | __do_visit<__visit_with_index>([this](auto&& __rhs_mem,
| ^~~~
/usr/include/c++/9/variant:655:12: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
655 | auto __rhs_index) mutable
| ^~~~
/usr/include/c++/9/variant: In lambda function:
/usr/include/c++/9/variant:658:47: error: '__rhs_index' is not a constant expression
658 | if constexpr (__rhs_index != variant_npos)
| ^
/usr/include/c++/9/variant:661:16: error: '__get' is not a member of 'std::__detail::__variant'
661 | __variant::__get<__rhs_index>(*this) = std::move(__rhs_mem);
| ^~~~~
/usr/include/c++/9/variant:663:5: error: '__variant_cast' was not declared in this scope; did you mean '__variant_cookie'?
663 | __variant_cast<_Types...>(*this)
| ^~~~~~~~~~~~~~
| __variant_cookie
/usr/include/c++/9/variant:663:26: error: expected primary-expression before '...' token
663 | __variant_cast<_Types...>(*this)
| ^~~
/usr/include/c++/9/variant: In member function 'std::__detail::__variant::_Move_assign_base<<anonymous>, _Types>& std::__detail::__variant::_Move_assign_base<<anonymous>, _Types>::operator=(std::__detail::__variant::_Move_assign_base<<anonymous>, _Types>&&)':
/usr/include/c++/9/variant:669:7: error: '__variant_cast' was not declared in this scope; did you mean '__variant_cookie'?
669 | }, __variant_cast<_Types...>(__rhs));
| ^~~~~~~~~~~~~~
| __variant_cookie
/usr/include/c++/9/variant:669:28: error: expected primary-expression before '...' token
669 | }, __variant_cast<_Types...>(__rhs));
| ^~~
/usr/include/c++/9/variant:669:33: error: operand of fold expression has no unexpanded parameter packs
669 | }, __variant_cast<_Types...>(__rhs));
| ~^~~~~~
/usr/include/c++/9/variant: At global scope:
/usr/include/c++/9/variant:956:28: error: expected primary-expression before 'auto'
956 | static constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:956:28: error: expected ')' before 'auto'
956 | static constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/variant:956:28: error: expected primary-expression before 'auto'
956 | static constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:956:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:956:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:956:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:956:19: error: expected unqualified-id before 'decltype'
956 | static constexpr decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/variant:965:33: error: expected primary-expression before 'auto'
965 | static constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:965:33: error: expected ')' before 'auto'
965 | static constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/variant:965:33: error: expected primary-expression before 'auto'
965 | static constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:965:33: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:965:33: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:965:33: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:965:24: error: expected unqualified-id before 'decltype'
965 | static constexpr decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/variant:986:33: error: expected primary-expression before 'auto'
986 | static constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:986:33: error: expected ')' before 'auto'
986 | static constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/variant:986:33: error: expected primary-expression before 'auto'
986 | static constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:986:33: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:986:33: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:986:33: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:986:24: error: expected unqualified-id before 'decltype'
986 | static constexpr decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/variant:1001:33: error: expected primary-expression before 'auto'
1001 | static constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:1001:33: error: expected ')' before 'auto'
1001 | static constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/variant:1001:33: error: expected primary-expression before 'auto'
1001 | static constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:1001:33: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1001:33: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1001:33: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1001:24: error: expected unqualified-id before 'decltype'
1001 | static constexpr decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/variant:1012:24: error: '_S_apply' function uses 'auto' type specifier without trailing return type
1012 | static constexpr auto
| ^~~~
/usr/include/c++/9/variant:1012:24: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
/usr/include/c++/9/variant: In static member function 'static constexpr auto std::__detail::__variant::__gen_vtable_impl<__same_return_types, std::__detail::__variant::_Multi_array<_Result_type (*)(_Visitor, _Variants ...)>, std::tuple<_Variants ...>, std::integer_sequence<long unsigned int, __indices ...> >::_S_apply()':
/usr/include/c++/9/variant:1014:29: error: '__visit_invoke' was not declared in this scope; did you mean '__do_visit_invoke_r'?
1014 | { return _Array_type{&__visit_invoke}; }
| ^~~~~~~~~~~~~~
| __do_visit_invoke_r
/usr/include/c++/9/variant: In function 'void std::__variant_construct_by_index(_Variant&, _Args&& ...)':
/usr/include/c++/9/variant:1049:47: error: '__get' is not a member of 'std::__detail::__variant'
1049 | auto&& __storage = __detail::__variant::__get<_Np>(__v);
| ^~~~~
/usr/include/c++/9/variant: In function 'constexpr std::add_pointer_t<typename std::variant_alternative<_Np, std::variant<_Types ...> >::type> std::get_if(std::variant<_Types ...>*)':
/usr/include/c++/9/variant:1111:45: error: '__get' is not a member of 'std::__detail::__variant'
1111 | return std::addressof(__detail::__variant::__get<_Np>(*__ptr));
| ^~~~~
/usr/include/c++/9/variant: In function 'constexpr std::add_pointer_t<const typename std::variant_alternative<_Np, std::variant<_Types ...> >::type> std::get_if(const std::variant<_Types ...>*)':
/usr/include/c++/9/variant:1125:45: error: '__get' is not a member of 'std::__detail::__variant'
1125 | return std::addressof(__detail::__variant::__get<_Np>(*__ptr));
| ^~~~~
/usr/include/c++/9/variant: In function 'constexpr bool std::operator<(const std::variant<_Types ...>&, const std::variant<_Types ...>&)':
/usr/include/c++/9/variant:1184:3: error: '__do_visit' was not declared in this scope; did you mean '__ioinit'?
1184 | _VARIANT_RELATION_FUNCTION_TEMPLATE(<, less)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant:1184:3: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
1184 | _VARIANT_RELATION_FUNCTION_TEMPLATE(<, less)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant:1184:3: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
1184 | _VARIANT_RELATION_FUNCTION_TEMPLATE(<, less)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant: In lambda function:
/usr/include/c++/9/variant:1184:3: error: '__rhs_index' is not a constant expression
1184 | _VARIANT_RELATION_FUNCTION_TEMPLATE(<, less)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant: In function 'constexpr bool std::operator<=(const std::variant<_Types ...>&, const std::variant<_Types ...>&)':
/usr/include/c++/9/variant:1185:3: error: '__do_visit' was not declared in this scope; did you mean '__ioinit'?
1185 | _VARIANT_RELATION_FUNCTION_TEMPLATE(<=, less_equal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant:1185:3: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
1185 | _VARIANT_RELATION_FUNCTION_TEMPLATE(<=, less_equal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant:1185:3: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
1185 | _VARIANT_RELATION_FUNCTION_TEMPLATE(<=, less_equal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant: In lambda function:
/usr/include/c++/9/variant:1185:3: error: '__rhs_index' is not a constant expression
1185 | _VARIANT_RELATION_FUNCTION_TEMPLATE(<=, less_equal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant: In function 'constexpr bool std::operator==(const std::variant<_Types ...>&, const std::variant<_Types ...>&)':
/usr/include/c++/9/variant:1186:3: error: '__do_visit' was not declared in this scope; did you mean '__ioinit'?
1186 | _VARIANT_RELATION_FUNCTION_TEMPLATE(==, equal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant:1186:3: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
1186 | _VARIANT_RELATION_FUNCTION_TEMPLATE(==, equal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant:1186:3: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
1186 | _VARIANT_RELATION_FUNCTION_TEMPLATE(==, equal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant: In lambda function:
/usr/include/c++/9/variant:1186:3: error: '__rhs_index' is not a constant expression
1186 | _VARIANT_RELATION_FUNCTION_TEMPLATE(==, equal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant: In function 'constexpr bool std::operator!=(const std::variant<_Types ...>&, const std::variant<_Types ...>&)':
/usr/include/c++/9/variant:1187:3: error: '__do_visit' was not declared in this scope; did you mean '__ioinit'?
1187 | _VARIANT_RELATION_FUNCTION_TEMPLATE(!=, not_equal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant:1187:3: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
1187 | _VARIANT_RELATION_FUNCTION_TEMPLATE(!=, not_equal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant:1187:3: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
1187 | _VARIANT_RELATION_FUNCTION_TEMPLATE(!=, not_equal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant: In lambda function:
/usr/include/c++/9/variant:1187:3: error: '__rhs_index' is not a constant expression
1187 | _VARIANT_RELATION_FUNCTION_TEMPLATE(!=, not_equal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant: In function 'constexpr bool std::operator>=(const std::variant<_Types ...>&, const std::variant<_Types ...>&)':
/usr/include/c++/9/variant:1188:3: error: '__do_visit' was not declared in this scope; did you mean '__ioinit'?
1188 | _VARIANT_RELATION_FUNCTION_TEMPLATE(>=, greater_equal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant:1188:3: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
1188 | _VARIANT_RELATION_FUNCTION_TEMPLATE(>=, greater_equal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant:1188:3: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
1188 | _VARIANT_RELATION_FUNCTION_TEMPLATE(>=, greater_equal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant: In lambda function:
/usr/include/c++/9/variant:1188:3: error: '__rhs_index' is not a constant expression
1188 | _VARIANT_RELATION_FUNCTION_TEMPLATE(>=, greater_equal)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant: In function 'constexpr bool std::operator>(const std::variant<_Types ...>&, const std::variant<_Types ...>&)':
/usr/include/c++/9/variant:1189:3: error: '__do_visit' was not declared in this scope; did you mean '__ioinit'?
1189 | _VARIANT_RELATION_FUNCTION_TEMPLATE(>, greater)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant:1189:3: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
1189 | _VARIANT_RELATION_FUNCTION_TEMPLATE(>, greater)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant:1189:3: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
1189 | _VARIANT_RELATION_FUNCTION_TEMPLATE(>, greater)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant: In lambda function:
/usr/include/c++/9/variant:1189:3: error: '__rhs_index' is not a constant expression
1189 | _VARIANT_RELATION_FUNCTION_TEMPLATE(>, greater)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/variant: At global scope:
/usr/include/c++/9/variant:1194:24: error: expected primary-expression before 'auto'
1194 | constexpr decltype(auto) visit(_Visitor&&, _Variants&&...);
| ^~~~
/usr/include/c++/9/variant:1194:24: error: expected ')' before 'auto'
1194 | constexpr decltype(auto) visit(_Visitor&&, _Variants&&...);
| ~^~~~
| )
/usr/include/c++/9/variant:1194:24: error: expected primary-expression before 'auto'
1194 | constexpr decltype(auto) visit(_Visitor&&, _Variants&&...);
| ^~~~
/usr/include/c++/9/variant:1194:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1194:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1194:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1194:15: error: expected unqualified-id before 'decltype'
1194 | constexpr decltype(auto) visit(_Visitor&&, _Variants&&...);
| ^~~~~~~~
/usr/include/c++/9/variant:1242:18: error: expected primary-expression before 'auto'
1242 | friend decltype(auto) __variant_cast(_Tp&&);
| ^~~~
/usr/include/c++/9/variant:1242:18: error: expected ')' before 'auto'
1242 | friend decltype(auto) __variant_cast(_Tp&&);
| ~^~~~
| )
/usr/include/c++/9/variant:1242:18: error: expected primary-expression before 'auto'
1242 | friend decltype(auto) __variant_cast(_Tp&&);
| ^~~~
/usr/include/c++/9/variant:1242:18: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1242:18: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1242:18: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1242:9: error: expected unqualified-id before 'decltype'
1242 | friend decltype(auto) __variant_cast(_Tp&&);
| ^~~~~~~~
/usr/include/c++/9/variant:1568:28: error: expected primary-expression before 'auto'
1568 | friend constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:1568:28: error: expected ')' before 'auto'
1568 | friend constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/variant:1568:28: error: expected primary-expression before 'auto'
1568 | friend constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:1568:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1568:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1568:28: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1568:19: error: expected unqualified-id before 'decltype'
1568 | friend constexpr decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/variant: In member function 'void std::variant<_Types>::swap(std::variant<_Types>&)':
/usr/include/c++/9/variant:1516:2: error: '__do_visit' was not declared in this scope; did you mean '__ioinit'?
1516 | __do_visit<__detail::__variant::__visit_with_index>(
| ^~~~~~~~~~
| __ioinit
/usr/include/c++/9/variant:1517:19: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
1517 | [this, &__rhs](auto&& __rhs_mem,
| ^~~~
/usr/include/c++/9/variant:1518:5: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
1518 | auto __rhs_index) mutable
| ^~~~
/usr/include/c++/9/variant: In lambda function:
/usr/include/c++/9/variant:1521:47: error: '__rhs_index' is not a constant expression
1521 | if constexpr (__rhs_index != variant_npos)
| ^
/usr/include/c++/9/variant: In function 'constexpr std::variant_alternative_t<_Np, std::variant<_Types ...> >& std::get(std::variant<_Types ...>&)':
/usr/include/c++/9/variant:1598:35: error: '__get' is not a member of 'std::__detail::__variant'
1598 | return __detail::__variant::__get<_Np>(__v);
| ^~~~~
/usr/include/c++/9/variant: In function 'constexpr std::variant_alternative_t<_Np, std::variant<_Types ...> >&& std::get(std::variant<_Types ...>&&)':
/usr/include/c++/9/variant:1609:35: error: '__get' is not a member of 'std::__detail::__variant'
1609 | return __detail::__variant::__get<_Np>(std::move(__v));
| ^~~~~
/usr/include/c++/9/variant: In function 'constexpr std::variant_alternative_t<_Np, std::variant<_Types ...> >& std::get(const std::variant<_Types ...>&)':
/usr/include/c++/9/variant:1620:35: error: '__get' is not a member of 'std::__detail::__variant'
1620 | return __detail::__variant::__get<_Np>(__v);
| ^~~~~
/usr/include/c++/9/variant: In function 'constexpr std::variant_alternative_t<_Np, std::variant<_Types ...> >&& std::get(const std::variant<_Types ...>&&)':
/usr/include/c++/9/variant:1631:35: error: '__get' is not a member of 'std::__detail::__variant'
1631 | return __detail::__variant::__get<_Np>(std::move(__v));
| ^~~~~
/usr/include/c++/9/variant: At global scope:
/usr/include/c++/9/variant:1637:24: error: expected primary-expression before 'auto'
1637 | constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:1637:24: error: expected ')' before 'auto'
1637 | constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/variant:1637:24: error: expected primary-expression before 'auto'
1637 | constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:1637:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1637:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1637:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1637:15: error: expected unqualified-id before 'decltype'
1637 | constexpr decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/variant:1657:24: error: expected primary-expression before 'auto'
1657 | constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:1657:24: error: expected ')' before 'auto'
1657 | constexpr decltype(auto)
| ~^~~~
| )
/usr/include/c++/9/variant:1657:24: error: expected primary-expression before 'auto'
1657 | constexpr decltype(auto)
| ^~~~
/usr/include/c++/9/variant:1657:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1657:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1657:24: error: expected primary-expression before 'auto'
/usr/include/c++/9/variant:1657:15: error: expected unqualified-id before 'decltype'
1657 | constexpr decltype(auto)
| ^~~~~~~~
/usr/include/c++/9/variant: In function 'constexpr _Res std::visit(_Visitor&&, _Variants&& ...)':
/usr/include/c++/9/variant:1676:16: error: '__do_visit' was not declared in this scope; did you mean '__ioinit'?
1676 | (void) __do_visit<false, false>(std::forward<_Visitor>(__visitor),
| ^~~~~~~~~~
| __ioinit
/usr/include/c++/9/variant:1677:44: error: expected binary operator before ')' token
1677 | std::forward<_Variants>(__variants)...);
| ^
/usr/include/c++/9/variant:1679:9: error: '__do_visit' was not declared in this scope; did you mean '__ioinit'?
1679 | return __do_visit<false, false>(std::forward<_Visitor>(__visitor),
| ^~~~~~~~~~
| __ioinit
/usr/include/c++/9/variant:1680:44: error: expected binary operator before ')' token
1680 | std::forward<_Variants>(__variants)...);
| ^
/usr/include/c++/9/variant: In member function 'std::size_t std::__variant_hash_call_base_impl<<anonymous>, _Types>::operator()(const std::variant<_Types ...>&) const':
/usr/include/c++/9/variant:1692:28: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
1692 | __do_visit([&__t, &__ret](auto&& __t_mem) mutable
| ^~~~
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from foo.cc:2:
/usr/include/c++/9/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = long unsigned int]':
/usr/include/c++/9/bits/hashtable_policy.h:580:33: required from here
/usr/include/c++/9/bits/stl_algobase.h:230:5: error: body of 'constexpr' function 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = long unsigned int]' not a return-statement
230 | }
| ^
/usr/include/c++/9/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]':
/usr/include/c++/9/tr1/bessel_function.tcc:174:75: required from 'void std::__detail::__bessel_jn(_Tp, _Tp, _Tp&, _Tp&, _Tp&, _Tp&) [with _Tp = float]'
/usr/include/c++/9/tr1/bessel_function.tcc:510:22: required from '_Tp std::__detail::__cyl_bessel_j(_Tp, _Tp) [with _Tp = float]'
/usr/include/c++/9/bits/specfun.h:551:53: required from here
/usr/include/c++/9/bits/stl_algobase.h:230:5: error: body of 'constexpr' function 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]' not a return-statement
/usr/include/c++/9/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = float]':
/usr/include/c++/9/tr1/ell_integral.tcc:115:39: required from '_Tp std::__detail::__ellint_rf(_Tp, _Tp, _Tp) [with _Tp = float]'
/usr/include/c++/9/tr1/ell_integral.tcc:203:27: required from '_Tp std::__detail::__comp_ellint_1(_Tp) [with _Tp = float]'
/usr/include/c++/9/bits/specfun.h:359:48: required from here
/usr/include/c++/9/bits/stl_algobase.h:230:5: error: body of 'constexpr' function 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = float]' not a return-statement
/usr/include/c++/9/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = long double]':
/usr/include/c++/9/tr1/ell_integral.tcc:115:39: required from '_Tp std::__detail::__ellint_rf(_Tp, _Tp, _Tp) [with _Tp = long double]'
/usr/include/c++/9/tr1/ell_integral.tcc:203:27: required from '_Tp std::__detail::__comp_ellint_1(_Tp) [with _Tp = long double]'
/usr/include/c++/9/bits/specfun.h:369:54: required from here
/usr/include/c++/9/bits/stl_algobase.h:230:5: error: body of 'constexpr' function 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = long double]' not a return-statement
In file included from /usr/include/c++/9/string:48,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foo.cc:2:
/usr/include/c++/9/bits/stl_function.h: In instantiation of 'constexpr bool std::less<_Tp*>::operator()(_Tp*, _Tp*) const [with _Tp = std::_Sp_counted_base<__gnu_cxx::_S_atomic>]':
/usr/include/c++/9/bits/shared_ptr_base.h:777:51: required from 'bool std::__shared_count<_Lp>::_M_less(const std::__shared_count<_Lp>&) const [with __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]'
/usr/include/c++/9/bits/shared_ptr_base.h:1333:48: required from 'bool std::__shared_ptr<_Tp, _Lp>::owner_before(const std::__shared_ptr<_Yp, _Lp>&) const [with _Tp1 = std::filesystem::__cxx11::_Dir; _Tp = std::filesystem::__cxx11::_Dir; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]'
/usr/include/c++/9/bits/fs_dir.h:412:53: required from here
/usr/include/c++/9/bits/stl_function.h:444:7: error: body of 'constexpr' function 'constexpr bool std::less<_Tp*>::operator()(_Tp*, _Tp*) const [with _Tp = std::_Sp_counted_base<__gnu_cxx::_S_atomic>]' not a return-statement
444 | }
| ^
/usr/include/c++/9/bits/stl_function.h: In instantiation of 'constexpr bool std::less<_Tp*>::operator()(_Tp*, _Tp*) const [with _Tp = const char]':
/usr/include/c++/9/bits/basic_string.h:343:31: required from 'bool std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_disjunct(const _CharT*) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
/usr/include/c++/9/bits/basic_string.tcc:435:8: required from 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_replace(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]'
/usr/include/c++/9/bits/basic_string.h:1944:9: required from 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]'
/usr/include/c++/9/bits/basic_string.h:1645:38: required from 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]'
/usr/include/c++/9/bits/basic_string.h:6106:32: required from 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
/usr/include/c++/9/system_error:351:50: required from here
/usr/include/c++/9/bits/stl_function.h:444:7: error: body of 'constexpr' function 'constexpr bool std::less<_Tp*>::operator()(_Tp*, _Tp*) const [with _Tp = const char]' not a return-statement