はじめに(Introduction)
N4910 Working Draft, Standard for Programming Language C++
n4910は、ISO/IEC JTC1 SC22 WG21の作業原案(Working Draft)です。
公式のISO/IEC 14882原本ではありません。
ISO/IEC JTC1 SC22 WG21では、可能な限り作業文書を公開し、幅広い意見を求めています。
一連の記事はコード断片をコンパイルできる形にする方法を検討してコンパイル、リンク、実行して、規格案の原文と処理系(g++, Clang++)との違いを確認し、技術内容を検討し、ISO/IEC JTC1 SC22 WG21にフィードバックするために用います。
また、CERT C++, MISRA C++等のコーディング標準のコード断片をコンパイルする際の参考にさせていただこうと考えています。CERT C++, MISRA C++が標準化の動きとの時間的なずれがあれば確認できれば幸いです。また、boostライブラリとの関連、Linux OS, TOPPERSカーネル、g++(GCC), clang++(LLVM)との関係も調査中です。
何か、抜け漏れ、耳より情報がありましたらおしらせくださると幸いです。
<この項は書きかけです。順次追記します。>
背景(back ground)
C/C++でコンパイルエラーが出ると、途方にくれることがしばしばあります。
何回かに1回は、該当するエラーが検索できます。
ただ、条件が違っていて、そこでの修正方法では目的を達成しないこともしばしばです。いろいろな条件のコンパイルエラーとその対応方法について、広く記録することによって、いつか同じエラーに遭遇した時にやくに立つことを目指しています。
この半年の間で、三度、自分のネットでの記録に助けられたことがあります。
また過去に解決できなかった記録を10種類以上、最近になって解決できたことがあります。それは、主に次の3つの情報に基づいています。
cpprefjp - C++日本語リファレンス
コンパイラの実装状況
また
https://researchmap.jp/joub9b3my-1797580/#_1797580
に記載したサイトのお世話になっています。
作業方針(sequence)
Clang++では-std=c++03, C++2bの2種類
g++では-std=c++03, c++2bの2種類
でコンパイルし、
1)コンパイルエラーを収集する。
2)コンパイルエラーをなくす方法を検討する。
コンパイルエラーになる例を示すだけが目的のコードは、コンパイルエラーをなくすのではなく、コンパイルエラーの種類を収集するだけにする。
文法を示すのが目的のコード場合に、コンパイルエラーをなくすのに手間がかかる場合は、順次作業します。
3)リンクエラーをなくす方法を検討する。
文法を示すのが目的のコード場合に、リンクエラーをなくすのに手間がかかる場合は、順次作業します。
4)意味のある出力を作る。
コンパイル、リンクが通っても、意味のある出力を示そうとすると、コンパイル・リンクエラーが出て収拾できそうにない場合がある。順次作業します。
1)だけのものから4)まで進んだものと色々ある状態です。一歩でも前に進むご助言をお待ちしています。「検討事項」の欄に現状を記録するようにしています。
C++N4910:2022 Standard Working Draft on ISO/IEC 14882(0) sample code compile list
C++N4741, 2018 Standard Working Draft on ISO/IEC 14882 sample code compile list
C++N4606, 2016符号断片編纂一覧(example code compile list)
C++N4606, 2016 Working Draft 2016, ISO/IEC 14882, C++ standard(1) Example code compile list
https://qiita.com/kaizen_nagoya/items/df5d62c35bd6ed1c3d43/
C++N3242, 2011 sample code compile list on clang++ and g++
編纂器(Compiler)
clang++ --version
Debian clang version 14.0.5-++20220610033153+c12386ae247c-1~exp1~20220610153237.151
Target: x86_64-pc-linux-gnu, Thread model: posix, InstalledDir: /usr/bin
g++- --version
g++ (GCC) 12.1.0 Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
29.7 Clocks [time.clock] C++N4910:2022 (675) p1382.cpp
算譜(source code)
// C++N4910 Committee Draft, Standard for Programming Language C++
// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/n4910.pdf
const char * n4910 = "29.7 Clocks [time.clock] C++N4910:2022 (675) p1382.cpp;
// Debian clang version 14.0.5-++20220610033153+c12386ae247c-
// g++ (GCC) 12.1.0 Copyright (C) 2022 Free Software Foundation, Inc.
// Edited by Dr. OGAWA Kiyoshi. Compile procedure and results record.
// C++N4910:2022 Standard Working Draft on ISO/IEC 14882(0) sample code compile list
// https://qiita.com/kaizen_nagoya/items/fc957ddddd402004bb91
#include "N4910.h"
using namespace std;
// 29.7.1 General [time.clock.general]
// 29.7.2 Class system_clock 2 [time.clock.system]
// 9.7.2.1 Overview [time.clock.system.overview]
namespace std::chrono {
class system_clock {
public:
using rep = see_below ;
using period = ratio<unspecified,
using duration = chrono::duration<rep, period>;
using time_point = chrono::time_point<system_clock>;
static constexpr bool is_steady = unspecified;
static time_point now() noexcept;
// mapping to/from C type time_t
static time_t to_time_t (const time_point& t) noexcept;
static time_point from_time_t(time_t t) noexcept;
};
}
static time_point from_time_t(time_t t) noexcept;
unspecified >;
// Objects of type system_clock represent wall clock time from the system-wide realtime clock. Objects of type sys_time<Duration> measure time since 1970-01-01 00:00:00 UTC excluding leap seconds. This measure is commonly referred to as Unix time. This measure facilitates an efficient mapping between sys_time and calendar types (29.8).
// [Example 1: sys_seconds{sys_days{1970y/January/1}}.time_since_epoch() is 0s. sys_seconds{sys_days{2000y/January/1}}.time_since_epoch() is 946’684’800s, which is 10’957 * 86’400s.
// 29.7.2.2 Members [time.clock.system.members]
using system_clock::rep = unspecified;
// Constraints: system_clock::duration::min() < system_clock::duration::zero() is true. [Note 1: This implies that rep is a signed type. —end note]
static time_t to_time_t(const time_point& t) noexcept;
// Returns: A time_t object that represents the same point in time as t when both values are restricted to the coarser of the precisions of time_t and time_point. It is implementation-defined whether values are rounded or truncated to the required precision.
// Returns: A time_point object that represents the same point in time as t when both values are restricted to the coarser of the precisions of time_t and time_point. It is implementation-defined whether values are rounded or truncated to the required precision.
// 29.7.2.3 Non-member functions [time.clock.system.nonmembers]
template<class charT, class traits, class Duration>
basic_ostream<charT, traits>&
operator<<(basic_ostream<charT, traits>& os, const sys_time<Duration>& tp);
// Constraints: treat_as_floating_point_v<typename Duration::rep> is false, and Duration{1} < days{1} is true.
// Effects: Equivalent to:
return os << format(os.getloc(), STATICALLY-WIDEN("{:L%F %T}"), tp);
// [Example 1:
cout << sys_seconds{0s} << '\n';
cout << sys_seconds{946'684'800s} << '\n';
cout << sys_seconds{946'688'523s} << '\n';
// 1970-01-01 00:00:00 // 2000-01-01 00:00:00 // 2000-01-01 01:02:03
template<class charT, class traits>
basic_ostream<charT, traits>&
operator<<(basic_ostream<charT, traits>& os, const sys_days& dp);
// Effects: os << year_month_day{dp}. Returns: os.
template<class charT, class traits, class Duration, class Alloc = allocator<charT>>
basic_istream<charT, traits>&
from_stream(basic_istream<charT, traits>& is, const charT* fmt,
sys_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
minutes* offset = nullptr);
// Effects: Attempts to parse the input stream is into the sys_time tp using the format flags given in the NTCTS fmt as specified in 29.13. If the parse fails to decode a valid date, is.setstate(ios_- base::failbit) is called and tp is not modified. If %Z is used and successfully parsed, that value will be assigned to *abbrev if abbrev is non-null. If %z (or a modified variant) is used and successfully parsed, that value will be assigned to *offset if offset is non-null. Additionally, the parsed offset will be subtracted from the successfully parsed timestamp prior to assigning that difference to tp.
// Returns: is.
// 29.7.3 Class utc_clock [time.clock.utc]
// 29.7.3.1 Overview [time.clock.utc.overview]
namespace std::chrono {
class utc_clock {
public:
using rep = a signed arithmetic type;
using period = ratio<unspecified, unspecified>;
using duration = chrono::duration<rep, period>;
using time_point = chrono::time_point<utc_clock>;
static constexpr bool is_steady = unspecified;
static time_point now();
template<class Duration>
static sys_time<common_type_t<Duration, seconds>>
to_sys(const utc_time<Duration>& t);
template<class Duration>
static utc_time<common_type_t<Duration, seconds>>
from_sys(const sys_time<Duration>& t);
};
}
// In contrast to sys_time, which does not take leap seconds into account, utc_clock and its associated time_point, utc_time, count time, including leap seconds, since 1970-01-01 00:00:00 UTC.
// [Note 1: The UTC time standard began on 1972-01-01 00:00:10 TAI. To measure time since this epoch instead, one can add/subtract the constant sys_days{1972y/1/1} - sys_days{1970y/1/1} (63’072’000s) from the utc_time.
// Returns: from_sys(system_clock::now()), or a more accurate value of utc_time.
operator<<(basic_ostream<charT, traits>& os, const utc_time<Duration>& t);
// Effects: Equivalent to:
return os << format(os.getloc(), STATICALLY-WIDEN<charT>("{:L%F %T}"), t);
// [Example 1:
auto t = sys_days {
July/1/2015
}
- 500ms;
auto u = clock_cast<utc_clock>(t);
for (auto i = 0; i < 8; ++i, u += 250ms)
cout << u << " UTC\n";
// Produces this output:
2015-06-30 23:59:59.500 UTC
2015-06-30 23:59:59.750 UTC
2015-06-30 23:59:60.000 UTC
// [Example 1: clock_cast<utc_clock (sys_seconds{sys_days{1970y/January/1}}).time_since_epoch() is 0s. clock_cast<utc_clock (sys_seconds{sys_days{2000y/January/1}}).time_since_epoch() is 946’684’822s, which is 10’957 * 86’400s + 22s.
// utc_clock is not a Cpp17TrivialClock unless the implementation can guarantee that utc_clock::now() does not propagate an exception.
// [Note 2: noexcept(from_sys(system_clock::now())) is false.
// 29.7.3.2 Member functions [time.clock.utc.members]
static time_point now();
template<class Duration>
static sys_time<common_type_t<Duration, seconds>>
to_sys(const utc_time<Duration>& u);
// Returns: A sys_time t, such that from_sys(t) == u if such a mapping exists. Otherwise u represents a time_point during a positive leap second insertion, the conversion counts that leap second as not inserted, and the last representable value of sys_time prior to the insertion of the leap second is returned.
template<class Duration>
static utc_time<common_type_t<Duration, seconds>>
from_sys(const sys_time<Duration>& t);
// Returns: A utc_time u, such that u.time_since_epoch() - t.time_since_epoch() is equal to the sum of leap seconds that were inserted between t and 1970-01-01. If t is exactly the date of leap second insertion, then the conversion counts that leap second as inserted.
// [Example 1:
auto t = sys_days {
July/1/2015
}
- 2ns;
auto u = utc_clock::from_sys(t);
assert(u.time_since_epoch() - t.time_since_epoch() == 25s);
t += 1ns;
u = utc_clock::from_sys(t);
assert(u.time_since_epoch() - t.time_since_epoch() == 25s);
t += 1ns;
u = utc_clock::from_sys(t);
assert(u.time_since_epoch() - t.time_since_epoch() == 26s);
t += 1ns;
u = utc_clock::from_sys(t);
assert(u.time_since_epoch() - t.time_since_epoch() == 26s);
// 29.7.3.3 Non-member functions [time.clock.utc.nonmembers]
template<class charT, class traits, class Duration>
basic_ostream<charT, traits>&
};
from_stream(basic_istream<charT, traits>& is, const charT* fmt,
utc_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
minutes* offset = nullptr);
// Effects: Attempts to parse the input stream is into the utc_time tp using the format flags given in the NTCTS fmt as specified in 29.13. If the parse fails to decode a valid date, is.setstate(ios_- base::failbit) is called and tp is not modified. If %Z is used and successfully parsed, that value will be assigned to *abbrev if abbrev is non-null. If %z (or a modified variant) is used and successfully parsed, that value will be assigned to *offset if offset is non-null. Additionally, the parsed offset will be subtracted from the successfully parsed timestamp prior to assigning that difference to tp.
// Returns: is.
2015-06-30 23:59:60.250 UTC
2015-06-30 23:59:60.500 UTC
2015-06-30 23:59:60.750 UTC
2015-07-01 00:00:00.000 UTC
2015-07-01 00:00:00.250 UTC
template<class charT, class traits, class Duration, class Alloc = allocator<charT>>
basic_istream<charT, traits>&
struct leap_second_info {
bool is_leap_second;
seconds elapsed;
// The type leap_second_info has data members and special members specified above. It has no base classes or members other than those specified.
template<class Duration>
leap_second_info get_leap_second_info(const utc_time<Duration>& ut);
// Returns: A leap_second_info lsi, where lsi.is_leap_second is true if ut is during a positive leap second insertion, and otherwise false. lsi.elapsed is the sum of leap seconds between 1970-01-01 and ut. If lsi.is_leap_second is true, the leap second referred to by ut is included in the sum.
// 29.7.4 Class tai_clock [time.clock.tai]
// 29.7.4.1 Overview [time.clock.tai.overview]
namespace std::chrono {
class tai_clock {
public:
using rep = a signed arithmetic type;
using period = ratio<unspecified, unspecified>;
using duration = chrono::duration<rep, period>;
using time_point= chrono::time_point<tai_clock>;
static constexpr bool is_steady = unspecified;
static time_point now();
template<class Duration>
static utc_time<common_type_t<Duration, seconds>>
to_utc(const tai_time<Duration>&) noexcept;
template<class Duration>
static tai_time<common_type_t<Duration, seconds>>
from_utc(const utc_time<Duration>&) noexcept;
};
}
// The clock tai_clock measures seconds since 1958-01-01 00:00:00 and is offset 10s ahead of UTC at this date. That is, 1958-01-01 00:00:00 TAI is equivalent to 1957-12-31 23:59:50 UTC. Leap seconds are not inserted into TAI. Therefore every time a leap second is inserted into UTC, UTC shifts another second with respect to TAI. For example by 2000-01-01 there had been 22 positive and 0 negative leap seconds inserted so 2000-01-01 00:00:00 UTC is equivalent to 2000-01-01 00:00:32 TAI (22s plus the initial 10s offset).
operator<<(basic_ostream<charT, traits>& os, const tai_time<Duration>& t);
// Effects: Equivalent to:
return os << format(os.getloc(), STATICALLY-WIDEN<charT>("{:L%F %T}"), t);
// [Example 1:
auto st = sys_days {
2000y/January/1
};
auto tt = clock_cast<tai_clock>(st);
cout << format("{0:%F %T %Z} == {1:%F %T %Z}\n", st, tt);
// Produces this output: 2000-01-01 00:00:00 UTC == 2000-01-01 00:00:32 TAI
from_stream(basic_istream<charT, traits>& is, const charT* fmt,
tai_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
minutes* offset = nullptr);
// Effects: Attempts to parse the input stream is into the tai_time tp using the format flags given in the NTCTS fmt as specified in 29.13. If the parse fails to decode a valid date, is.setstate(ios_- base::failbit) is called and tp is not modified. If %Z is used and successfully parsed, that value will be assigned to *abbrev if abbrev is non-null. If %z (or a modified variant) is used and successfully parsed, that value will be assigned to *offset if offset is non-null. Additionally, the parsed offset will be subtracted from the successfully parsed timestamp prior to assigning that difference to tp.
// Returns: is.
// tai_clock is not a Cpp17TrivialClock unless the implementation can guarantee that tai_clock::now() does not propagate an exception.
// [Note 1: noexcept(from_utc(utc_clock::now())) is false.
// 29.7.4.2 Member functions [time.clock.tai.members]
static time_point now();
// Returns: from_utc(utc_clock::now()), or a more accurate value of tai_time.
template<class Duration>
static utc_time<common_type_t<Duration, seconds>>
to_utc(const tai_time<Duration>& t) noexcept;
// Returns: utc_time<common_type_t<Duration, seconds>>{t.time_since_epoch()} - 378691210s
// [Note 1: 378691210s == sys_days{1970y/January/1} - sys_days{1958y/January/1} + 10s
template<class Duration>
static tai_time<common_type_t<Duration, seconds>>
from_utc(const utc_time<Duration>& t) noexcept;
// Returns: tai_time<common_type_t<Duration, seconds>>{t.time_since_epoch()} + 378691210s
// [Note 2: 378691210s == sys_days{1970y/January/1} - sys_days{1958y/January/1} + 10s
// 29.7.4.3 Non-member functions [time.clock.tai.nonmembers]
template<class charT, class traits, class Duration>
basic_ostream<charT, traits>&
template<class charT, class traits, class Duration, class Alloc = allocator<charT>>
basic_istream<charT, traits>&
// Returns: from_utc(utc_clock::now()), or a more accurate value of gps_time.
// 29.7.5 Class gps_clock [time.clock.gps]
// 29.7.5.1 Overview [time.clock.gps.overview]
namespace std::chrono {
class gps_clock {
public:
using rep = a signed arithmetic type;
using period = ratio<unspecified, unspecified>;
using duration = chrono::duration<rep, period>;
using time_point = chrono::time_point<gps_clock>;
static constexpr bool is_steady = unspecified;
static time_point now();
template<class Duration>
static utc_time<common_type_t<Duration, seconds>>
to_utc(const gps_time<Duration>&) noexcept;
template<class Duration>
static gps_time<common_type_t<Duration, seconds>>
from_utc(const utc_time<Duration>&) noexcept;
};
}
template<class Duration>
static utc_time<common_type_t<Duration, seconds>>
// The clock gps_clock measures seconds since the first Sunday of January, 1980 00:00:00 UTC. Leap seconds are not inserted into GPS. Therefore every time a leap second is inserted into UTC, UTC shifts another second with respect to GPS. Aside from the offset from 1958y/January/1 to 1980y/January/Sunday[1], GPS is behind TAI by 19s due to the 10s offset between 1958 and 1970 and the additional 9 leap seconds inserted between 1970 and 1980.
// gps_clock is not a Cpp17TrivialClock unless the implementation can guarantee that gps_clock::now() does not propagate an exception.
// [Note 1: noexcept(from_utc(utc_clock::now())) is false.
// 29.7.5.2 Member functions [time.clock.gps.members]
static time_point now();
to_utc(const gps_time<Duration>& t) noexcept;
// Returns: utc_time<common_type_t<Duration, seconds>>{t.time_since_epoch()} + 315964809s
// [Note 1: 315964809s == sys_days{1980y/January/Sunday[1]} - sys_days{1970y/January/1} + 9s
template<class Duration>
static gps_time<common_type_t<Duration, seconds>>
from_utc(const utc_time<Duration>& t) noexcept;
// Returns: gps_time<common_type_t<Duration, seconds>>{t.time_since_epoch()} - 315964809s
// [Note 2: 315964809s == sys_days{1980y/January/Sunday[1]} - sys_days{1970y/January/1} + 9s
// 29.7.5.3 Non-member functions [time.clock.gps.nonmembers]
template<class charT, class traits, class Duration>
basic_ostream<charT, traits>&
operator<<(basic_ostream<charT, traits>& os, const gps_time<Duration>& t);
// Effects: Equivalent to:
return os << format(os.getloc(), STATICALLY-WIDEN<charT>("{:L%F %T}"), t);
// [Example 1:
auto st = sys_days {
2000y/January/1
};
auto gt = clock_cast<gps_clock>(st);
cout << format("{0:%F %T %Z} == {1:%F %T %Z}\n", st, gt);
// Produces this output:
2000-01-01 00:00:00 UTC == 2000-01-01 00:00:13 GPS
template<class charT, class traits, class Duration, class Alloc = allocator<charT>>
basic_istream<charT, traits>&
}
from_stream(basic_istream<charT, traits>& is, const charT* fmt,
gps_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
minutes* offset = nullptr);
// Effects: Attempts to parse the input stream is into the gps_time tp using the format flags given in the NTCTS fmt as specified in 29.13. If the parse fails to decode a valid date, is.setstate(ios_- base::failbit) is called and tp is not modified. If %Z is used and successfully parsed, that value will be assigned to *abbrev if abbrev is non-null. If %z (or a modified variant) is used and successfully parsed, that value will be assigned to *offset if offset is non-null. Additionally, the parsed offset will be subtracted from the successfully parsed timestamp prior to assigning that difference to tp.
// Returns: is.
// 29.7.6 Type file_clock [time.clock.file]
// 29.7.6.1 Overview [time.clock.file.overview]
namespace std::chrono {
using file_clock = see_below;
// file_clock is an alias for a type meeting the Cpp17TrivialClock requirements (29.3), and using a signed arithmetic type for file_clock::rep. file_clock is used to create the time_point system used for file_time_type (31.12). Its epoch is unspecified, and noexcept(file_clock::now()) is true.
// [Note 1: The type that file_clock denotes can be in a different namespace than std::chrono, such as std::file- system.
// 29.7.6.2 Member functions [time.clock.file.members]
// The type denoted by file_clock provides precisely one of the following two sets of static member functions:
template<class Duration> static sys_time<see_below>
to_sys(const file_time<Duration>&);
template<class Duration>
static file_time<see_below> from_sys(const sys_time<Duration>&);
// or:
template<class Duration> static utc_time<see_below>
to_utc(const file_time<Duration>&);
template<class Duration>
static file_time<see_below> from_utc(const utc_time<Duration>&);
// These member functions shall provide time_point conversions consistent with those specified by utc_clock, tai_clock, and gps_clock. The Duration of the resultant time_point is computed from the Duration of the input time_point.
// 29.7.6.3 Non-member functions [time.clock.file.nonmembers]
template<class charT, class traits, class Duration>
basic_ostream<charT, traits>&
operator<<(basic_ostream<charT, traits>& os, const file_time<Duration>& t);
// Effects: Equivalent to:
return os << format(os.getloc(), STATICALLY-WIDEN<charT>("{:L%F %T}"), t);
template<class charT, class traits, class Duration, class Alloc = allocator<charT>>
basic_istream<charT, traits>&
}
from_stream(basic_istream<charT, traits>& is, const charT* fmt,
file_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
minutes* offset = nullptr);
// Effects: Attempts to parse the input stream is into the file_time tp using the format flags given in the NTCTS fmt as specified in 29.13. If the parse fails to decode a valid date, is.setstate(ios_- base::failbit) is called and tp is not modified. If %Z is used and successfully parsed, that value will be assigned to *abbrev if abbrev is non-null. If %z (or a modified variant) is used and successfully parsed, that value will be assigned to *offset if offset is non-null. Additionally, the parsed offset will be subtracted from the successfully parsed timestamp prior to assigning that difference to tp.
// Returns: is.
// 29.7.7 Class steady_clock [time.clock.steady]
namespace std::chrono {
class steady_clock {
public:
using rep = unspecified ;
using period = ratio<unspecified,
using duration = chrono::duration<rep, period>;
using time_point = chrono::time_point<unspecified, duration>;
static constexpr bool is_steady = true;
static time_point now() noexcept;
};
unspecified >;
// Objects of class steady_clock represent clocks for which values of time_point never decrease as physical time advances and for which values of time_point advance at a steady rate relative to real time. That is, the clock may not be adjusted.
// 29.7.8 Class high_resolution_clock [time.clock.hires]
namespace std::chrono {
class high_resolution_clock {
public:
using rep = unspecified ;
using period = ratio<unspecified,
using duration = chrono::duration<rep, period>;
using time_point = chrono::time_point<unspecified, duration>;
static constexpr bool is_steady = unspecified;
static time_point now() noexcept;
};
}
unspecified >;
// Objects of class high_resolution_clock represent clocks with the shortest tick period. high_resolution_- clock may be a synonym for system_clock or steady_clock.
// 29.7.9 Local time [time.clock.local]
// The family of time points denoted by local_time<Duration> are based on the pseudo clock local_t. local_t has no member now() and thus does not meet the clock requirements. Nevertheless local_- time<Duration> serves the vital role of representing local time with respect to a not-yet-specified time zone. Aside from being able to get the current time, the complete time_point algebra is available for local_time<Duration> (just as for sys_time<Duration>).
template<class charT, class traits, class Duration>
basic_ostream<charT, traits>&
operator<<(basic_ostream<charT, traits>& os, const local_time<Duration>& lt);
// Effects:
os << sys_time<Duration> {lt.time_since_epoch()};
// Returns: os.
}
template<class charT, class traits, class Duration, class Alloc = allocator<charT>>
basic_istream<charT, traits>&
from_stream(basic_istream<charT, traits>& is, const charT* fmt,
local_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
minutes* offset = nullptr);
// Effects: Attempts to parse the input stream is into the local_time tp using the format flags given in the NTCTS fmt as specified in 29.13. If the parse fails to decode a valid date, is.setstate(ios_- base::failbit) is called and tp is not modified. If %Z is used and successfully parsed, that value will be assigned to *abbrev if abbrev is non-null. If %z (or a modified variant) is used and successfully parsed, that value will be assigned to *offset if offset is non-null.
// Returns: is.
// 29.7.10 time_point conversions [time.clock.cast]
// 29.7.10.1 Class template clock_time_conversion [time.clock.conv]
namespace std::chrono {
template<class DestClock, class SourceClock>
struct clock_time_conversion {};
// clock_time_conversion serves as a trait which can be used to specify how to convert a source time_point of type time_point<SourceClock, Duration> to a destination time_point of type time_point<DestClock, Duration> via a specialization: clock_time_conversion<DestClock, SourceClock>. A specialization of clock_time_conversion<DestClock, SourceClock> shall provide a const-qualified operator() that takes a parameter of type time_point<SourceClock, Duration> and returns a time_point<DestClock, OtherDuration> representing an equivalent point in time. OtherDuration is a chrono::duration whose specialization is computed from the input Duration in a manner which can vary for each clock_time_- conversion specialization. A program may specialize clock_time_conversion if at least one of the template parameters is a user-defined clock type.
// Several specializations are provided by the implementation, as described in 29.7.10.2, 29.7.10.3, 29.7.10.4, and 29.7.10.5.
// 29.7.10.2 Identity conversions [time.clock.cast.id]
template<class Clock>
struct clock_time_conversion<Clock, Clock> {
template<class Duration>
time_point<Clock, Duration>
operator()(const time_point<Clock, Duration>& t) const;
};
template<class Duration>
time_point<Clock, Duration>
operator()(const time_point<Clock, Duration>& t) const;
// Returns: t.
template<>
struct clock_time_conversion<system_clock, system_clock> {
template<class Duration>
sys_time<Duration>
operator()(const sys_time<Duration>& t) const;
};
template<class Duration>
sys_time<Duration>
operator()(const sys_time<Duration>& t) const;
// Returns: t.
template<>
struct clock_time_conversion<utc_clock, utc_clock> {
template<class Duration>
utc_time<Duration>
operator()(const utc_time<Duration>& t) const;
};
template<class Duration>
utc_time<Duration>
operator()(const utc_time<Duration>& t) const;
// Returns: t.
// 29.7.10.3 Conversions between system_clock and utc_clock [time.clock.cast.sys.utc]
template<>
struct clock_time_conversion<utc_clock, system_clock> {
template<class Duration>
utc_time<common_type_t<Duration, seconds>>
operator()(const sys_time<Duration>& t) const;
};
template<class Duration>
utc_time<common_type_t<Duration, seconds>>
operator()(const sys_time<Duration>& t) const;
// Returns: utc_clock::from_sys(t).
template<>
struct clock_time_conversion<system_clock, utc_clock> {
template<class Duration>
sys_time<common_type_t<Duration, seconds>>
operator()(const utc_time<Duration>& t) const;
};
template<class Duration>
sys_time<common_type_t<Duration, seconds>>
operator()(const utc_time<Duration>& t) const;
// Returns: utc_clock::to_sys(t).
// 29.7.10.4 Conversions between system_clock and other clocks [time.clock.cast.sys]
template<class SourceClock>
struct clock_time_conversion<system_clock, SourceClock> {
template<class Duration>
auto operator()(const time_point<SourceClock, Duration>& t) const
-> decltype(SourceClock::to_sys(t));
};
template<class Duration>
auto operator()(const time_point<SourceClock, Duration>& t) const
// Constraints: SourceClock::to_sys(t) is well-formed.
// Mandates: SourceClock::to_sys(t) returns a sys_time<Duration2> for some type Duration2
// Returns: SourceClock::to_sys(t).
template<class DestClock>
struct clock_time_conversion<DestClock, system_clock> {
template<class Duration>
auto operator()(const sys_time<Duration>& t) const
-> decltype(DestClock::from_sys(t));
-> decltype(SourceClock::to_sys(t));
-> decltype(SourceClock::to_utc(t));
};
// Constraints: SourceClock::to_utc(t) is well-formed.
// Mandates: SourceClock::to_utc(t) returns a utc_time<Duration2> for some type Duration2
// Returns: SourceClock::to_utc(t).
template<class DestClock>
struct clock_time_conversion<DestClock, utc_clock> {
template<class Duration>
auto operator()(const utc_time<Duration>& t) const
-> decltype(DestClock::from_utc(t));
};
template<class Duration>
auto operator()(const utc_time<Duration>& t) const
-> decltype(DestClock::from_utc(t));
// Constraints: DestClock::from_utc(t) is well-formed.
// Mandates: DestClock::from_utc(t) returns a time_point<DestClock, Duration2> for some type Duration2 (29.6.1).
// Returns: DestClock::from_utc(t).
template<class Duration>
auto operator()(const sys_time<Duration>& t) const
-> decltype(DestClock::from_sys(t));
};
}
// Constraints: DestClock::from_sys(t) is well-formed.
// Mandates: DestClock::from_sys(t) returns a time_point<DestClock, Duration2> for some type Duration2 (29.6.1).
// Returns: DestClock::from_sys(t).
// 29.7.10.5 Conversions between utc_clock and other clocks [time.clock.cast.utc]
template<class SourceClock>
struct clock_time_conversion<utc_clock, SourceClock> {
template<class Duration>
auto operator()(const time_point<SourceClock, Duration>& t) const
-> decltype(SourceClock::to_utc(t));
template<class Duration>
auto operator()(const time_point<SourceClock, Duration>& t) const
// 29.7.10.6 Function template clock_cast [time.clock.cast.fn]
template<class DestClock, class SourceClock, class Duration>
auto clock_cast(const time_point<SourceClock, Duration>& t);
}
// Constraints: At least one of the following clock time conversion expressions is well-formed:
// — clock_time_conversion<DestClock, SourceClock>{}(t)
// — clock_time_conversion<DestClock, system_clock>{}( clock_time_conversion<system_clock, SourceClock>{}(t))
// — clock_time_conversion<DestClock, utc_clock>{}( clock_time_conversion<utc_clock, SourceClock>{}(t))
// — clock_time_conversion<DestClock, utc_clock>{}( clock_time_conversion<utc_clock, system_clock>{}(
clock_time_conversion<system_clock, SourceClock> {}(t)))
// — clock_time_conversion<DestClock, system_clock>{}( clock_time_conversion<system_clock, utc_clock>{}(
clock_time_conversion<utc_clock, SourceClock> {}(t)))
// Effects: Initializes d_ with d. The value held is unspecified if d is not in the range [0, 255].
// A clock time conversion expression is considered better than another clock time conversion expression if it involves fewer operator() calls on clock_time_conversion specializations.
// Mandates: Among the well-formed clock time conversion expressions from the above list, there is a unique best expression.
// Returns: The best well-formed clock time conversion expression in the above list.
int main() {
cout << n4910 << endl;
return EXIT_SUCCESS;
}
編纂・実行結果(compile and go)
$ clang++ p1382.cpp -std=03 -o p1382l -I. -Wall
p1382.cpp:3:22: warning: missing terminating '"' character [-Winvalid-pp-token]
const char * n4910 = "29.7 Clocks [time.clock] C++N4910:2022 (675) p1382.cpp;
^
p1382.cpp:3:22: error: expected expression
In file included from p1382.cpp:10:
In file included from ./N4910.h:2:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iostream:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ostream:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ios:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:39:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stringfwd.h:79:11: error: no template named 'basic_string'; did you mean '__cxx11::basic_string'?
typedef basic_string<char> string;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stringfwd.h:74:11: note: '__cxx11::basic_string' declared here
class basic_string;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stringfwd.h:83:11: error: no template named 'basic_string'; did you mean '__cxx11::basic_string'?
typedef basic_string<wchar_t> wstring;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stringfwd.h:74:11: note: '__cxx11::basic_string' declared here
class basic_string;
^
In file included from p1382.cpp:10:
In file included from ./N4910.h:2:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iostream:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ostream:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ios:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:40:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/postypes.h:98:11: error: unknown type name 'ptrdiff_t'
typedef ptrdiff_t streamsize; // Signed integral type
^
In file included from p1382.cpp:10:
In file included from ./N4910.h:2:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iostream:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ostream:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ios:38:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:147:11: error: no template named 'basic_stringbuf'; did you mean '__cxx11::basic_stringbuf'?
typedef basic_stringbuf<char> stringbuf;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:96:11: note: '__cxx11::basic_stringbuf' declared here
class basic_stringbuf;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:150:11: error: no template named 'basic_istringstream'; did you mean '__cxx11::basic_istringstream'?
typedef basic_istringstream<char> istringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:100:11: note: '__cxx11::basic_istringstream' declared here
class basic_istringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:153:11: error: no template named 'basic_ostringstream'; did you mean '__cxx11::basic_ostringstream'?
typedef basic_ostringstream<char> ostringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:104:11: note: '__cxx11::basic_ostringstream' declared here
class basic_ostringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:156:11: error: no template named 'basic_stringstream'; did you mean '__cxx11::basic_stringstream'?
typedef basic_stringstream<char> stringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:108:11: note: '__cxx11::basic_stringstream' declared here
class basic_stringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:187:11: error: no template named 'basic_stringbuf'; did you mean '__cxx11::basic_stringbuf'?
typedef basic_stringbuf<wchar_t> wstringbuf;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:96:11: note: '__cxx11::basic_stringbuf' declared here
class basic_stringbuf;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:190:11: error: no template named 'basic_istringstream'; did you mean '__cxx11::basic_istringstream'?
typedef basic_istringstream<wchar_t> wistringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:100:11: note: '__cxx11::basic_istringstream' declared here
class basic_istringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:193:11: error: no template named 'basic_ostringstream'; did you mean '__cxx11::basic_ostringstream'?
typedef basic_ostringstream<wchar_t> wostringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:104:11: note: '__cxx11::basic_ostringstream' declared here
class basic_ostringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:196:11: error: no template named 'basic_stringstream'; did you mean '__cxx11::basic_stringstream'?
typedef basic_stringstream<wchar_t> wstringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:108:11: note: '__cxx11::basic_stringstream' declared here
class basic_stringstream;
^
In file included from p1382.cpp:10:
In file included from ./N4910.h:2:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iostream:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ostream:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ios:40:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/char_traits.h:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_algobase.h:65:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_iterator_base_types.h:125:67: error: unknown type name 'ptrdiff_t'
template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_iterator_base_types.h:214:15: error: unknown type name 'ptrdiff_t'
typedef ptrdiff_t difference_type;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_iterator_base_types.h:225:15: error: unknown type name 'ptrdiff_t'
typedef ptrdiff_t difference_type;
^
In file included from p1382.cpp:10:
In file included from ./N4910.h:2:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iostream:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ostream:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ios:40:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/char_traits.h:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_algobase.h:66:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_iterator_base_funcs.h:110:5: error: unknown type name 'ptrdiff_t'
ptrdiff_t
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_iterator_base_funcs.h:116:5: error: unknown type name 'ptrdiff_t'
ptrdiff_t
^
In file included from p1382.cpp:10:
In file included from ./N4910.h:2:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iostream:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ostream:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ios:40:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/char_traits.h:39:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_algobase.h:424:10: error: unknown type name 'ptrdiff_t'
const ptrdiff_t _Num = __last - __first;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_algobase.h:689:10: error: unknown type name 'ptrdiff_t'
const ptrdiff_t _Num = __last - __first;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
$ clang++ p1382.cpp -std=2b -o p1382l -I. -Wall
p1382.cpp:3:22: warning: missing terminating '"' character [-Winvalid-pp-token]
const char * n4910 = "29.7 Clocks [time.clock] C++N4910:2022 (675) p1382.cpp;
^
p1382.cpp:3:22: error: expected expression
In file included from p1382.cpp:10:
In file included from ./N4910.h:2:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iostream:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ostream:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ios:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:39:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stringfwd.h:79:11: error: no template named 'basic_string'; did you mean '__cxx11::basic_string'?
typedef basic_string<char> string;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stringfwd.h:74:11: note: '__cxx11::basic_string' declared here
class basic_string;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stringfwd.h:83:11: error: no template named 'basic_string'; did you mean '__cxx11::basic_string'?
typedef basic_string<wchar_t> wstring;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stringfwd.h:74:11: note: '__cxx11::basic_string' declared here
class basic_string;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stringfwd.h:88:11: error: no template named 'basic_string'; did you mean '__cxx11::basic_string'?
typedef basic_string<char8_t> u8string;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stringfwd.h:74:11: note: '__cxx11::basic_string' declared here
class basic_string;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stringfwd.h:93:11: error: no template named 'basic_string'; did you mean '__cxx11::basic_string'?
typedef basic_string<char16_t> u16string;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stringfwd.h:74:11: note: '__cxx11::basic_string' declared here
class basic_string;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stringfwd.h:96:11: error: no template named 'basic_string'; did you mean '__cxx11::basic_string'?
typedef basic_string<char32_t> u32string;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stringfwd.h:74:11: note: '__cxx11::basic_string' declared here
class basic_string;
^
In file included from p1382.cpp:10:
In file included from ./N4910.h:2:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iostream:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ostream:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ios:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:40:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/postypes.h:98:11: error: unknown type name 'ptrdiff_t'
typedef ptrdiff_t streamsize; // Signed integral type
^
In file included from p1382.cpp:10:
In file included from ./N4910.h:2:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iostream:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ostream:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ios:38:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:147:11: error: no template named 'basic_stringbuf'; did you mean '__cxx11::basic_stringbuf'?
typedef basic_stringbuf<char> stringbuf;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:96:11: note: '__cxx11::basic_stringbuf' declared here
class basic_stringbuf;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:150:11: error: no template named 'basic_istringstream'; did you mean '__cxx11::basic_istringstream'?
typedef basic_istringstream<char> istringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:100:11: note: '__cxx11::basic_istringstream' declared here
class basic_istringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:153:11: error: no template named 'basic_ostringstream'; did you mean '__cxx11::basic_ostringstream'?
typedef basic_ostringstream<char> ostringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:104:11: note: '__cxx11::basic_ostringstream' declared here
class basic_ostringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:156:11: error: no template named 'basic_stringstream'; did you mean '__cxx11::basic_stringstream'?
typedef basic_stringstream<char> stringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:108:11: note: '__cxx11::basic_stringstream' declared here
class basic_stringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:187:11: error: no template named 'basic_stringbuf'; did you mean '__cxx11::basic_stringbuf'?
typedef basic_stringbuf<wchar_t> wstringbuf;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:96:11: note: '__cxx11::basic_stringbuf' declared here
class basic_stringbuf;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:190:11: error: no template named 'basic_istringstream'; did you mean '__cxx11::basic_istringstream'?
typedef basic_istringstream<wchar_t> wistringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:100:11: note: '__cxx11::basic_istringstream' declared here
class basic_istringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:193:11: error: no template named 'basic_ostringstream'; did you mean '__cxx11::basic_ostringstream'?
typedef basic_ostringstream<wchar_t> wostringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:104:11: note: '__cxx11::basic_ostringstream' declared here
class basic_ostringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:196:11: error: no template named 'basic_stringstream'; did you mean '__cxx11::basic_stringstream'?
typedef basic_stringstream<wchar_t> wstringstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iosfwd:108:11: note: '__cxx11::basic_stringstream' declared here
class basic_stringstream;
^
In file included from p1382.cpp:10:
In file included from ./N4910.h:2:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iostream:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ostream:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ios:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/exception:147:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/exception_ptr.h:40:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/new:126:39: error: no type named 'size_t' in namespace 'std'; did you mean simply 'size_t'?
_GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
^~~~~
/usr/lib/llvm-14/lib/clang/14.0.6/include/stddef.h:46:23: note: 'size_t' declared here
typedef __SIZE_TYPE__ size_t;
^
In file included from p1382.cpp:10:
In file included from ./N4910.h:2:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iostream:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ostream:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ios:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/exception:147:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/exception_ptr.h:40:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/new:128:41: error: no type named 'size_t' in namespace 'std'; did you mean simply 'size_t'?
_GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
^~~~~
/usr/lib/llvm-14/lib/clang/14.0.6/include/stddef.h:46:23: note: 'size_t' declared here
typedef __SIZE_TYPE__ size_t;
^
In file included from p1382.cpp:10:
In file included from ./N4910.h:2:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iostream:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ostream:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ios:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/exception:147:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/exception_ptr.h:40:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/new:140:39: error: no type named 'size_t' in namespace 'std'; did you mean simply 'size_t'?
_GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
^~~~~
/usr/lib/llvm-14/lib/clang/14.0.6/include/stddef.h:46:23: note: 'size_t' declared here
typedef __SIZE_TYPE__ size_t;
^
In file included from p1382.cpp:10:
In file included from ./N4910.h:2:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/iostream:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ostream:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ios:39:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/exception:147:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/exception_ptr.h:40:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/new:142:41: error: no type named 'size_t' in namespace 'std'; did you mean simply 'size_t'?
_GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
^~~~~
/usr/lib/llvm-14/lib/clang/14.0.6/include/stddef.h:46:23: note: 'size_t' declared here
typedef __SIZE_TYPE__ size_t;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
$ g++ p1382.cpp -std=03 -o p1382g -I. -Wall
p1382.cpp:3:22: warning: missing terminating " character
3 | const char * n4910 = "29.7 Clocks [time.clock] C++N4910:2022 (675) p1382.cpp;
| ^
p1382.cpp:3:22: error: missing terminating " character
3 | const char * n4910 = "29.7 Clocks [time.clock] C++N4910:2022 (675) p1382.cpp;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/c++/12.1.0/atomic:38,
from N4910.h:11,
from p1382.cpp:10:
/usr/local/include/c++/12.1.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
32 | #error This file requires compiler and library support \
| ^~~~~
p1382.cpp:23:61: warning: identifier 'constexpr' is a keyword in C++11 [-Wc++11-compat]
23 | using time_point = chrono::time_point<system_clock>; static constexpr bool is_steady = unspecified;
| ^~~~~~~~~
p1382.cpp:24:29: warning: identifier 'noexcept' is a keyword in C++11 [-Wc++11-compat]
24 | static time_point now() noexcept;
| ^~~~~~~~
p1382.cpp:46:23: error: invalid suffix "s" on integer constant
46 | cout << sys_seconds{0s} << '\n';
| ^~
p1382.cpp:47:26: warning: multi-character character constant [-Wmultichar]
47 | cout << sys_seconds{946'684'800s} << '\n';
| ^~~~~
p1382.cpp:47:31: error: invalid suffix "s" on integer constant
47 | cout << sys_seconds{946'684'800s} << '\n';
| ^~~~
p1382.cpp:48:26: warning: multi-character character constant [-Wmultichar]
48 | cout << sys_seconds{946'688'523s} << '\n';
| ^~~~~
p1382.cpp:48:31: error: invalid suffix "s" on integer constant
48 | cout << sys_seconds{946'688'523s} << '\n';
| ^~~~
p1382.cpp:57:82: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++11-compat]
57 | sys_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^~~~~~~
p1382.cpp:86:37: error: invalid suffix "ms" on integer constant
86 | auto t = sys_days{July/1/2015} - 500ms;
| ^~~~~
p1382.cpp:88:38: error: invalid suffix "ms" on integer constant
88 | for (auto i = 0; i < 8; ++i, u += 250ms)
| ^~~~~
p1382.cpp:108:37: error: invalid suffix "ns" on integer constant
108 | auto t = sys_days{July/1/2015} - 2ns;
| ^~~
In file included from /usr/local/include/c++/12.1.0/cassert:44,
from N4910.h:6:
p1382.cpp:110:58: error: invalid suffix "s" on integer constant
110 | assert(u.time_since_epoch() - t.time_since_epoch() == 25s);
| ^~~
p1382.cpp:111:9: error: invalid suffix "ns" on integer constant
111 | t += 1ns;
| ^~~
p1382.cpp:113:58: error: invalid suffix "s" on integer constant
113 | assert(u.time_since_epoch() - t.time_since_epoch() == 25s);
| ^~~
p1382.cpp:114:9: error: invalid suffix "ns" on integer constant
114 | t += 1ns;
| ^~~
p1382.cpp:116:58: error: invalid suffix "s" on integer constant
116 | assert(u.time_since_epoch() - t.time_since_epoch() == 26s);
| ^~~
p1382.cpp:117:9: error: invalid suffix "ns" on integer constant
117 | t += 1ns;
| ^~~
p1382.cpp:119:58: error: invalid suffix "s" on integer constant
119 | assert(u.time_since_epoch() - t.time_since_epoch() == 26s);
| ^~~
p1382.cpp:167:23: error: invalid suffix "y" on integer constant
167 | auto st = sys_days{2000y/January/1};
| ^~~~~
p1382.cpp:237:23: error: invalid suffix "y" on integer constant
237 | auto st = sys_days{2000y/January/1};
| ^~~~~
p1382.cpp:388:12: warning: identifier 'decltype' is a keyword in C++11 [-Wc++11-compat]
388 | -> decltype(SourceClock::to_sys(t));
| ^~~~~~~~
In file included from /usr/local/include/c++/12.1.0/cstddef:49,
from N4910.h:1:
/usr/local/include/c++/12.1.0/x86_64-linux-gnu/bits/c++config.h:296:1: error: expected primary-expression before 'namespace'
296 | namespace std
| ^~~~~~~~~
In file included from /usr/local/include/c++/12.1.0/iosfwd:39,
from /usr/local/include/c++/12.1.0/ios:38,
from /usr/local/include/c++/12.1.0/ostream:38,
from /usr/local/include/c++/12.1.0/iostream:39,
from N4910.h:2:
/usr/local/include/c++/12.1.0/bits/stringfwd.h:77:11: error: 'basic_string' does not name a type
77 | typedef basic_string<char> string;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/stringfwd.h:80:11: error: 'basic_string' does not name a type
80 | typedef basic_string<wchar_t> wstring;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/iosfwd:147:11: error: 'basic_stringbuf' does not name a type; did you mean 'basic_streambuf'?
147 | typedef basic_stringbuf<char> stringbuf;
| ^~~~~~~~~~~~~~~
| basic_streambuf
/usr/local/include/c++/12.1.0/iosfwd:150:11: error: 'basic_istringstream' does not name a type; did you mean 'basic_istream'?
150 | typedef basic_istringstream<char> istringstream;
| ^~~~~~~~~~~~~~~~~~~
| basic_istream
/usr/local/include/c++/12.1.0/iosfwd:153:11: error: 'basic_ostringstream' does not name a type; did you mean 'basic_ostream'?
153 | typedef basic_ostringstream<char> ostringstream;
| ^~~~~~~~~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/iosfwd:156:11: error: 'basic_stringstream' does not name a type; did you mean basic_istream'?
156 | typedef basic_stringstream<char> stringstream;
| ^~~~~~~~~~~~~~~~~~
| basic_istream
/usr/local/include/c++/12.1.0/iosfwd:187:11: error: 'basic_stringbuf' does not name a type; did you mean 'basic_streambuf'?
187 | typedef basic_stringbuf<wchar_t> wstringbuf;
| ^~~~~~~~~~~~~~~
| basic_streambuf
/usr/local/include/c++/12.1.0/iosfwd:190:11: error: 'basic_istringstream' does not name a type; did you mean 'basic_istream'?
190 | typedef basic_istringstream<wchar_t> wistringstream;
| ^~~~~~~~~~~~~~~~~~~
| basic_istream
/usr/local/include/c++/12.1.0/iosfwd:193:11: error: 'basic_ostringstream' does not name a type; did you mean 'basic_ostream'?
193 | typedef basic_ostringstream<wchar_t> wostringstream;
| ^~~~~~~~~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/iosfwd:196:11: error: 'basic_stringstream' does not name a type; did you mean basic_istream'?
196 | typedef basic_stringstream<wchar_t> wstringstream;
| ^~~~~~~~~~~~~~~~~~
| basic_istream
In file included from /usr/local/include/c++/12.1.0/ios:40:
/usr/local/include/c++/12.1.0/bits/char_traits.h:129:66: error: 'std::size_t' has not been declared
129 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:131:40: error: 'size_t' in namespace 'std' does not name a type
131 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:135:39: error: 'std::size_t' has not been declared
135 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:138:57: error: 'std::size_t' has not been declared
138 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:141:57: error: 'std::size_t' has not been declared
141 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:144:35: error: 'std::size_t' has not been declared
144 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:170:64: error: 'std::size_t' has not been declared
170 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h: In static member function 'static int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)':
/usr/local/include/c++/12.1.0/bits/char_traits.h:172:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
172 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
In file included from /usr/local/include/c++/12.1.0/cstddef:50:
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:172:33: error: '__i' was not declared in this scope; did you mean '__n'?
172 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __n
/usr/local/include/c++/12.1.0/bits/char_traits.h: At global scope:
/usr/local/include/c++/12.1.0/bits/char_traits.h:181:31: error: 'size_t' in namespace 'std' does not name a type
181 | _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:194:37: error: 'std::size_t' has not been declared
194 | find(const char_type* __s, std::size_t __n, const char_type& __a)
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h: In static member function 'static const __gnu_cxx::char_traits<_CharT>::char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, int, const char_type&)':
/usr/local/include/c++/12.1.0/bits/char_traits.h:196:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
196 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:196:33: error: '__i' was not declared in this scope; did you mean '__s'?
196 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __s
/usr/local/include/c++/12.1.0/bits/char_traits.h: At global scope:
/usr/local/include/c++/12.1.0/bits/char_traits.h:206:55: error: 'std::size_t' has not been declared
206 | move(char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:256:55: error: 'std::size_t' has not been declared
256 | copy(char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:275:33: error: 'std::size_t' has not been declared
275 | assign(char_type* __s, std::size_t __n, char_type __a)
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h: In static member function 'static __gnu_cxx::char_traits<_CharT>::char_type* __gnu_cxx::char_traits<_CharT>::assign(char_type*, int, char_type)':
/usr/local/include/c++/12.1.0/bits/char_traits.h:294:21: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
294 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:294:37: error: '__i' was not declared in this scope; did you mean '__s'?
294 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __s
In file included from /usr/local/include/c++/12.1.0/bits/new_allocator.h:34,
from /usr/local/include/c++/12.1.0/x86_64-linux-gnu/bits/c++allocator.h:33,
from /usr/local/include/c++/12.1.0/bits/allocator.h:46,
from /usr/local/include/c++/12.1.0/string:41,
from /usr/local/include/c++/12.1.0/bits/locale_classes.h:40,
from /usr/local/include/c++/12.1.0/bits/ios_base.h:41,
from /usr/local/include/c++/12.1.0/ios:42:
/usr/local/include/c++/12.1.0/new: At global scope:
/usr/local/include/c++/12.1.0/new:126:26: error: declaration of 'operator new' as non-function
126 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/new:126:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
126 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/new:128:26: error: declaration of 'operator new []' as non-function
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/new:128:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/new:140:26: error: declaration of 'operator new' as non-function
140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/local/include/c++/12.1.0/new:140:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/new:140:52: error: expected primary-expression before 'const'
140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/usr/local/include/c++/12.1.0/new:142:26: error: declaration of 'operator new []' as non-function
142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/local/include/c++/12.1.0/new:142:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/new:142:54: error: expected primary-expression before 'const'
142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/usr/local/include/c++/12.1.0/new:174:33: error: declaration of 'operator new' as non-function
174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/local/include/c++/12.1.0/new:174:51: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/new:174:59: error: expected primary-expression before 'void'
174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~
/usr/local/include/c++/12.1.0/new:176:33: error: declaration of 'operator new []' as non-function
176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/local/include/c++/12.1.0/new:176:53: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/new:176:61: error: expected primary-expression before 'void'
176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~
/usr/local/include/c++/12.1.0/bits/new_allocator.h:60:20: error: 'size_t' in namespace 'std' does not name a type
60 | typedef std::size_t size_type;
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/new_allocator.h:61:20: error: 'ptrdiff_t' in namespace 'std' does not name a type
61 | typedef std::ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/new_allocator.h:112:16: error: 'size_type' has not been declared
112 | allocate(size_type __n, const void* = static_cast<const void*>(0))
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/new_allocator.h:142:28: error: 'size_type' has not been declared
142 | deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__)))
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/new_allocator.h:166:7: error: 'size_type' does not name a type; did you mean 'size_t'?
166 | size_type
| ^~~~~~~~~
| size_t
/usr/local/include/c++/12.1.0/bits/new_allocator.h:209:26: error: 'size_type' does not name a type; did you mean 'size_t'?
209 | _GLIBCXX_CONSTEXPR size_type
| ^~~~~~~~~
| size_t
/usr/local/include/c++/12.1.0/bits/new_allocator.h: In member function '_Tp* std::__new_allocator<_Tp>::allocate(int, const void*)':
/usr/local/include/c++/12.1.0/bits/new_allocator.h:124:29: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
124 | if (__n > (std::size_t(-1) / sizeof(_Tp)))
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/local/include/c++/12.1.0/string:53:
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:3431:5: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3431 | basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3448:5: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3448 | basic_string<_CharT,_Traits,_Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3460:5: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3460 | basic_string<_CharT,_Traits,_Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3471:12: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3471 | inline basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3488:12: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3488 | inline basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3575:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3575 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3575:34: error: expected ',' or '...' before '<' token
3575 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3575:5: error: 'bool std::operator==(int)' must have an argument of class or enumerated type
3575 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3584:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3584 | operator==(const basic_string<_CharT>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3584:34: error: expected ',' or '...' before '<' token
3584 | operator==(const basic_string<_CharT>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3584:5: error: 'typename __gnu_cxx::__enable_if<std::__is_char<_Tp>::__value, bool>::__type std::operator==(int)' must have an argument of class or enumerated type
3584 | operator==(const basic_string<_CharT>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3599:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3599 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3599:34: error: expected ',' or '...' before '<' token
3599 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3599:5: error: 'bool std::operator==(int)' must have an argument of class or enumerated type
3599 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3641:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3641 | const basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3641:34: error: expected ',' or '...' before '<' token
3641 | const basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3640:5: error: 'bool std::operator==(const _CharT*, int)' must have an argument of class or enumerated type
3640 | operator==(const _CharT* __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3653:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3653 | operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3653:34: error: expected ',' or '...' before '<' token
3653 | operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3653:5: error: 'bool std::operator!=(int)' must have an argument of class or enumerated type
3653 | operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3667:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3667 | const basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3667:34: error: expected ',' or '...' before '<' token
3667 | const basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3666:5: error: 'bool std::operator!=(const _CharT*, int)' must have an argument of class or enumerated type
3666 | operator!=(const _CharT* __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3678:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3678 | operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3678:34: error: expected ',' or '...' before '<' token
3678 | operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3678:5: error: 'bool std::operator!=(int)' must have an argument of class or enumerated type
3678 | operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3691:21: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3691 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3691:33: error: expected ',' or '...' before '<' token
3691 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3691:5: error: 'bool std::operator<(int)' must have an argument of class or enumerated type
3691 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3704:21: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3704 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3704:33: error: expected ',' or '...' before '<' token
3704 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3704:5: error: 'bool std::operator<(int)' must have an argument of class or enumerated type
3704 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3717:21: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3717 | const basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3717:33: error: expected ',' or '...' before '<' token
3717 | const basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3716:5: error: 'bool std::operator<(const _CharT*, int)' must have an argument of class or enumerated type
3716 | operator<(const _CharT* __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3729:21: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3729 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3729:33: error: expected ',' or '...' before '<' token
3729 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3729:5: error: 'bool std::operator>(int)' must have an argument of class or enumerated type
3729 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3742:21: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3742 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3742:33: error: expected ',' or '...' before '<' token
3742 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3742:5: error: 'bool std::operator>(int)' must have an argument of class or enumerated type
3742 | operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3755:21: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3755 | const basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3755:33: error: expected ',' or '...' before '<' token
3755 | const basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3754:5: error: 'bool std::operator>(const _CharT*, int)' must have an argument of class or enumerated type
3754 | operator>(const _CharT* __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3767:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3767 | operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3767:34: error: expected ',' or '...' before '<' token
3767 | operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3767:5: error: 'bool std::operator<=(int)' must have an argument of class or enumerated type
3767 | operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3780:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3780 | operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3780:34: error: expected ',' or '...' before '<' token
3780 | operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3780:5: error: 'bool std::operator<=(int)' must have an argument of class or enumerated type
3780 | operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3793:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3793 | const basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3793:34: error: expected ',' or '...' before '<' token
3793 | const basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3792:5: error: 'bool std::operator<=(const _CharT*, int)' must have an argument of class or enumerated type
3792 | operator<=(const _CharT* __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3805:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3805 | operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3805:34: error: expected ',' or '...' before '<' token
3805 | operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3805:5: error: 'bool std::operator>=(int)' must have an argument of class or enumerated type
3805 | operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3818:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3818 | operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3818:34: error: expected ',' or '...' before '<' token
3818 | operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3818:5: error: 'bool std::operator>=(int)' must have an argument of class or enumerated type
3818 | operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3831:20: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3831 | const basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3831:32: error: expected ',' or '...' before '<' token
3831 | const basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3830:5: error: 'bool std::operator>=(const _CharT*, int)' must have an argument of class or enumerated type
3830 | operator>=(const _CharT* __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3845:5: error: variable or field 'swap' declared void
3845 | swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3845:10: error: 'basic_string' was not declared in this scope; did you mean 'std::__cxx11::basic_string'?
3845 | swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| std::__cxx11::basic_string
/usr/local/include/c++/12.1.0/bits/stringfwd.h:72:11: note: 'std::__cxx11::basic_string' declared here
72 | class basic_string;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3845:29: error: expected primary-expression before ',' token
3845 | swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3845:38: error: expected primary-expression before ',' token
3845 | swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3845:46: error: expected primary-expression before '>' token
3845 | swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3845:49: error: '__lhs' was not declared in this scope
3845 | swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3846:10: error: 'basic_string' was not declared in this scope; did you mean 'std::__cxx11::basic_string'?
3846 | basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^~~~~~~~~~~~
| std::__cxx11::basic_string
/usr/local/include/c++/12.1.0/bits/stringfwd.h:72:11: note: 'std::__cxx11::basic_string' declared here
72 | class basic_string;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3846:29: error: expected primary-expression before ',' token
3846 | basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3846:38: error: expected primary-expression before ',' token
3846 | basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3846:46: error: expected primary-expression before '>' token
3846 | basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3846:49: error: '__rhs' was not declared in this scope
3846 | basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3866:16: error: 'basic_string' has not been declared
3866 | basic_string<_CharT, _Traits, _Alloc>& __str);
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3866:28: error: expected ',' or '...' before '<' token
3866 | basic_string<_CharT, _Traits, _Alloc>& __str);
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3870:43: error: 'basic_string' has not been declared
3870 | operator>>(basic_istream<char>& __is, basic_string<char>& __str);
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3870:55: error: expected ',' or '...' before '<' token
3870 | operator>>(basic_istream<char>& __is, basic_string<char>& __str);
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3870:5: error: template-id 'operator>><>' for 'std::basic_istream<char>& std::operator>>(basic_istream<char>&, int)' does not match any template declaration
3870 | operator>>(basic_istream<char>& __is, basic_string<char>& __str);
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3865:5: note: candidate is: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, int)'
3865 | operator>>(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3884:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3884 | const basic_string<_CharT, _Traits, _Alloc>& __str)
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3884:34: error: expected ',' or '...' before '<' token
3884 | const basic_string<_CharT, _Traits, _Alloc>& __str)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:3888:37: error: '__str' was not declared in this scope
3888 | return __ostream_insert(__os, __str.data(), __str.size());
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:3907:13: error: 'basic_string' has not been declared
3907 | basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim);
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3907:25: error: expected ',' or '...' before '<' token
3907 | basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim);
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3924:13: error: 'basic_string' has not been declared
3924 | basic_string<_CharT, _Traits, _Alloc>& __str)
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3924:25: error: expected ',' or '...' before '<' token
3924 | basic_string<_CharT, _Traits, _Alloc>& __str)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:3925:33: error: '__str' was not declared in this scope
3925 | { return std::getline(__is, __str, __is.widen('\n')); }
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:3945:40: error: 'basic_string' has not been declared
3945 | getline(basic_istream<char>& __in, basic_string<char>& __str,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3945:52: error: expected ',' or '...' before '<' token
3945 | getline(basic_istream<char>& __in, basic_string<char>& __str,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3945:5: error: template-id 'getline<>' for 'std::basic_istream<char>& std::getline(basic_istream<char>&, int)' does not match any template declaration
3945 | getline(basic_istream<char>& __in, basic_string<char>& __str,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3923:5: note: candidate is: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int'
3923 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3951:43: error: 'basic_string' has not been declared
3951 | getline(basic_istream<wchar_t>& __in, basic_string<wchar_t>& __str,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3951:55: error: expected ',' or '...' before '<' token
3951 | getline(basic_istream<wchar_t>& __in, basic_string<wchar_t>& __str,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3951:5: error: template-id 'getline<>' for 'std::basic_istream<wchar_t>& std::getline(basic_istream<wchar_t>&, int)' does not match any template declaration
3951 | getline(basic_istream<wchar_t>& __in, basic_string<wchar_t>& __str,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3923:5: note: candidate is: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int'
3923 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
In file included from /usr/local/include/c++/12.1.0/string:54:
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:53:20: error: expected nested-name-specifier before 'basic_string'
53 | const typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:53:32: error: expected initializer before '<' token
53 | const typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:59:17: error: expected initializer before '<' token
59 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:133:14: error: expected nested-name-specifier before 'basic_string'
133 | typename basic_string<_CharT, _Traits, _Alloc>::pointer
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:133:26: error: expected initializer before '<' token
133 | typename basic_string<_CharT, _Traits, _Alloc>::pointer
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:166:7: error: too many template-parameter-lists
166 | basic_string<_CharT, _Traits, _Alloc>::
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:217:7: error: too many template-parameter-lists
217 | basic_string<_CharT, _Traits, _Alloc>::
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:253:17: error: expected initializer before '<' token
253 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:273:17: error: expected initializer before '<' token
273 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:300:17: error: expected initializer before '<' token
300 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:321:17: error: expected initializer before '<' token
321 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:346:17: error: expected initializer before '<' token
346 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:360:17: error: expected initializer before '<' token
360 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:396:17: error: expected initializer before '<' token
396 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:408:5: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
408 | basic_string<_CharT, _Traits, _Alloc>&
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:429:7: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
429 | basic_string<_CharT, _Traits, _Alloc>&
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:445:5: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
445 | basic_string<_CharT, _Traits, _Alloc>&
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:475:5: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
475 | basic_string<_CharT, _Traits, _Alloc>&
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:547:14: error: expected nested-name-specifier before 'basic_string'
547 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:547:26: error: expected initializer before '<' token
547 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:605:5: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
605 | basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:626:5: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
626 | basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:645:14: error: expected nested-name-specifier before 'basic_string'
645 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:645:26: error: expected initializer before '<' token
645 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:682:14: error: expected nested-name-specifier before 'basic_string'
682 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:682:26: error: expected initializer before '<' token
682 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:701:14: error: expected nested-name-specifier before 'basic_string'
701 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:701:26: error: expected initializer before '<' token
701 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:724:14: error: expected nested-name-specifier before 'basic_string'
724 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:724:26: error: expected initializer before '<' token
724 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:742:14: error: expected nested-name-specifier before 'basic_string'
742 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:742:26: error: expected initializer before '<' token
742 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:759:14: error: expected nested-name-specifier before 'basic_string'
759 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:759:26: error: expected initializer before '<' token
759 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:782:14: error: expected nested-name-specifier before 'basic_string'
782 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:782:26: error: expected initializer before '<' token
782 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:796:14: error: expected nested-name-specifier before 'basic_string'
796 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:796:26: error: expected initializer before '<' token
796 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:808:14: error: expected nested-name-specifier before 'basic_string'
808 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:808:26: error: expected initializer before '<' token
808 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:831:14: error: expected nested-name-specifier before 'basic_string'
831 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:831:26: error: expected initializer before '<' token
831 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:853:17: error: expected initializer before '<' token
853 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:869:17: error: expected initializer before '<' token
869 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:888:17: error: expected initializer before '<' token
888 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:904:18: error: expected initializer before '<' token
904 | basic_string <_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:921:18: error: expected initializer before '<' token
921 | basic_string <_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:941:16: error: 'basic_string' has not been declared
941 | basic_string<_CharT, _Traits, _Alloc>& __str)
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:941:28: error: expected ',' or '...' before '<' token
941 | basic_string<_CharT, _Traits, _Alloc>& __str)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc: In function 'std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:944:15: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
944 | typedef basic_string<_CharT, _Traits, _Alloc> __string_type;
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:947:24: error: '__string_type' has not been declared
947 | typedef typename __string_type::size_type __size_type;
| ^~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:959:15: error: '__str' was not declared in this scope
959 | __str.erase();
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1013:13: error: 'basic_string' has not been declared
1013 | basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim)
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1013:25: error: expected ',' or '...' before '<' token
1013 | basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1012:5: error: redefinition of 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int)'
1012 | getline(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3923:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int)' previously declared here
3923 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1082:25: error: 'basic_string' is not a class template
1082 | extern template class basic_string<char>;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1082:25: error: explicit instantiation of non-template type 'std::basic_string'
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1092:38: error: 'string' has not been declared
1092 | operator>>(basic_istream<char>&, string&);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1092:5: error: template-id 'operator>><>' for 'std::basic_istream<char>& std::operator>>(basic_istream<char>&, int&)' does not match any template declaration
1092 | operator>>(basic_istream<char>&, string&);
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:940:5: note: candidate is: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, int)'
940 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1095:44: error: 'string' does not name a type; did you mean 'stdin'?
1095 | operator<<(basic_ostream<char>&, const string&);
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1095:5: error: template-id 'operator<< <>' for 'std::basic_ostream<char>& std::operator<<(basic_ostream<char>&, const int&)' does not match any template declaration
1095 | operator<<(basic_ostream<char>&, const string&);
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3883:5: note: candidate is: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, int)'
3883 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1098:35: error: 'string' has not been declared
1098 | getline(basic_istream<char>&, string&, char);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1098:5: error: template-id 'getline<>' for 'std::basic_istream<char>& std::getline(basic_istream<char>&, int&, char)' does not match any template declaration
1098 | getline(basic_istream<char>&, string&, char);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3923:5: note: candidate is: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int'
3923 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1101:35: error: 'string' has not been declared
1101 | getline(basic_istream<char>&, string&);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1101:5: error: template-id 'getline<>' for 'std::basic_istream<char>& std::getline(basic_istream<char>&, int&)' does not match any template declaration
1101 | getline(basic_istream<char>&, string&);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3923:5: note: candidate is: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int'
3923 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1105:25: error: 'basic_string' is not a class template
1105 | extern template class basic_string<wchar_t>;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1105:25: error: explicit instantiation of non-template type 'std::basic_string'
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1113:41: error: 'wstring' has not been declared
1113 | operator>>(basic_istream<wchar_t>&, wstring&);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1113:5: error: template-id 'operator>><>' for 'std::basic_istream<wchar_t>& std::operator>>(basic_istream<wchar_t>&, int&)' does not match any template declaration
1113 | operator>>(basic_istream<wchar_t>&, wstring&);
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:940:5: note: candidate is: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, int)'
940 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1116:47: error: 'wstring' does not name a type; did you mean 'stdin'?
1116 | operator<<(basic_ostream<wchar_t>&, const wstring&);
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1116:5: error: template-id 'operator<< <>' for 'std::basic_ostream<wchar_t>& std::operator<<(basic_ostream<wchar_t>&, const int&)' does not match any template declaration
1116 | operator<<(basic_ostream<wchar_t>&, const wstring&);
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3883:5: note: candidate is: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, int)'
3883 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1119:38: error: 'wstring' has not been declared
1119 | getline(basic_istream<wchar_t>&, wstring&, wchar_t);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1119:5: error: template-id 'getline<>' for 'std::basic_istream<wchar_t>& std::getline(basic_istream<wchar_t>&, int&, wchar_t)' does not match any template declaration
1119 | getline(basic_istream<wchar_t>&, wstring&, wchar_t);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3923:5: note: candidate is: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int'
3923 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1122:38: error: 'wstring' has not been declared
1122 | getline(basic_istream<wchar_t>&, wstring&);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1122:5: error: template-id 'getline<>' for 'std::basic_istream<wchar_t>& std::getline(basic_istream<wchar_t>&, int&)' does not match any template declaration
1122 | getline(basic_istream<wchar_t>&, wstring&);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3923:5: note: candidate is: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int'
3923 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.h:244:5: error: 'string' does not name a type; did you mean 'stdin'?
244 | string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_classes.h:286:24: error: 'std::basic_string' is not a template
286 | operator()(const basic_string<_Char, _Traits, _Alloc>& __s1,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.h:287:24: error: 'std::basic_string' is not a template
287 | const basic_string<_Char, _Traits, _Alloc>& __s2) const;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.h:799:23: error: expected initializer before '<' token
799 | locale::id collate<_CharT>::id;
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.h:804:12: error: expected initializer before '<' token
804 | collate<char>::_M_compare(const char*, const char*) const throw();
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.h:808:12: error: expected initializer before '<' token
808 | collate<char>::_M_transform(char*, const char*, size_t) const throw();
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.h:813:12: error: expected initializer before '<' token
813 | collate<wchar_t>::_M_compare(const wchar_t*, const wchar_t*) const throw();
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.h:817:12: error: expected initializer before '<' token
817 | collate<wchar_t>::_M_transform(wchar_t*, const wchar_t*, size_t) const throw();
| ^
In file included from /usr/local/include/c++/12.1.0/bits/locale_classes.h:857:
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:81:22: error: 'std::basic_string' is not a template
81 | operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:82:22: error: 'std::basic_string' is not a template
82 | const basic_string<_CharT, _Traits, _Alloc>& __s2) const
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc: In member function 'bool std::locale::operator()(const std::basic_string&, const std::basic_string&) const':
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:84:20: error: 'collate' in namespace 'std' does not name a template type
84 | typedef std::collate<_CharT> __collate_type;
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:85:13: error: '__collate_type' does not name a type; did you mean '__false_type'?
85 | const __collate_type& __collate = use_facet<__collate_type>(*this);
| ^~~~~~~~~~~~~~
| __false_type
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:86:15: error: '__collate' was not declared in this scope; did you mean 'collate'?
86 | return (__collate.compare(__s1.data(), __s1.data() + __s1.length(),
| ^~~~~~~~~
| collate
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc: At global scope:
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:149:12: error: expected initializer before '<' token
149 | collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw ()
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:155:12: error: expected initializer before '<' token
155 | collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw ()
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:160:12: error: expected initializer before '<' token
160 | collate<_CharT>::
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:198:14: error: expected nested-name-specifier before 'collate'
198 | typename collate<_CharT>::string_type
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:198:21: error: expected initializer before '<' token
198 | typename collate<_CharT>::string_type
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:255:12: error: expected initializer before '<' token
255 | collate<_CharT>::
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:270:25: error: 'collate' is not a class template
270 | extern template class collate<char>;
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:270:25: error: explicit instantiation of non-template type 'std::collate'
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:271:25: error: 'collate_byname' is not a class template
271 | extern template class collate_byname<char>;
| ^~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:271:25: error: explicit instantiation of non-template type 'std::collate_byname'
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:274:11: error: 'std::collate' is not a template
274 | const collate<char>&
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:275:15: error: 'std::collate' is not a template
275 | use_facet<collate<char> >(const locale&);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:279:15: error: 'std::collate' is not a template
279 | has_facet<collate<char> >(const locale&);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:282:25: error: 'collate' is not a class template
282 | extern template class collate<wchar_t>;
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:282:25: error: explicit instantiation of non-template type 'std::collate'
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:283:25: error: 'collate_byname' is not a class template
283 | extern template class collate_byname<wchar_t>;
| ^~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:283:25: error: explicit instantiation of non-template type 'std::collate_byname'
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:286:11: error: 'std::collate' is not a template
286 | const collate<wchar_t>&
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:287:15: error: 'std::collate' is not a template
287 | use_facet<collate<wchar_t> >(const locale&);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:291:15: error: 'std::collate' is not a template
291 | has_facet<collate<wchar_t> >(const locale&);
| ^~~~~~~
In file included from /usr/local/include/c++/12.1.0/bits/ios_base.h:44:
/usr/local/include/c++/12.1.0/stdexcept:56:29: error: 'string' in namespace 'std' does not name a type
56 | __cow_string(const std::string&);
| ^~~~~~
/usr/local/include/c++/12.1.0/stdexcept:1:1: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
+++ |+#include <string>
1 | // Standard exception classes -*- C++ -*-
/usr/local/include/c++/12.1.0/stdexcept:67:11: error: 'std::basic_string' is not a template
67 | typedef basic_string<char> __sso_string;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/stdexcept:120:23: error: 'string' does not name a type; did you mean 'stdin'?
120 | logic_error(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/stdexcept:156:33: error: 'string' does not name a type; did you mean 'stdin'?
156 | explicit domain_error(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/stdexcept:171:37: error: 'string' does not name a type; did you mean 'stdin'?
171 | explicit invalid_argument(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/stdexcept:187:33: error: 'string' does not name a type; did you mean 'stdin'?
187 | explicit length_error(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/stdexcept:203:33: error: 'string' does not name a type; did you mean 'stdin'?
203 | explicit out_of_range(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/stdexcept:226:25: error: 'string' does not name a type; did you mean 'stdin'?
226 | runtime_error(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/stdexcept:261:32: error: 'string' does not name a type; did you mean 'stdin'?
261 | explicit range_error(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/stdexcept:276:35: error: 'string' does not name a type; did you mean 'stdin'?
276 | explicit overflow_error(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/stdexcept:291:36: error: 'string' does not name a type; did you mean 'stdin'?
291 | explicit underflow_error(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/ios_base.h:260:21: error: 'string' does not name a type; did you mean 'stdin'?
260 | failure(const string& __str);
| ^~~~~~
| stdin
In file included from /usr/local/include/c++/12.1.0/ios:43:
/usr/local/include/c++/12.1.0/streambuf:174:20: error: 'std::basic_string' is not a template
174 | basic_string<_CharT2, _Traits2, _Alloc>&);
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/streambuf:179:17: error: 'std::basic_string' is not a template
179 | basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2);
| ^~~~~~~~~~~~
In file included from /usr/local/include/c++/12.1.0/bits/basic_ios.h:37,
from /usr/local/include/c++/12.1.0/ios:44:
/usr/local/include/c++/12.1.0/bits/locale_facets.h:677:17: error: 'std::basic_string' is not a template
677 | class ctype<basic_string<_CharT, _Traits, _Alloc> >;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.h:677:11: error: template parameters not deducible in partial specialization:
677 | class ctype<basic_string<_CharT, _Traits, _Alloc> >;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.h:677:11: note: '_CharT'
/usr/local/include/c++/12.1.0/bits/locale_facets.h:677:11: note: '_Traits'
/usr/local/include/c++/12.1.0/bits/locale_facets.h:677:11: note: '_Alloc'
/usr/local/include/c++/12.1.0/bits/locale_facets.h:1787:7: error: 'string' does not name a type; did you mean 'stdin'?
1787 | string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.h:1855:15: error: 'string' does not name a type; did you mean 'stdin'?
1855 | virtual string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.h:2158:24: error: 'string' has not been declared
2158 | string&) const;
| ^~~~~~
In file included from /usr/local/include/c++/12.1.0/bits/locale_facets.h:2687:
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: In member function 'const std::__numpunct_cache<_CharT>* std::__use_cache<std::__numpunct_cache<_CharT> >::operator()(const std::locale&) const':
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:55:28: error: 'numpunct' was not declared in this scope; did you mean 'std::__cxx11::numpunct'?
55 | const size_t __i = numpunct<_CharT>::id._M_id();
| ^~~~~~~~
| std::__cxx11::numpunct
In file included from /usr/local/include/c++/12.1.0/ios:41:
/usr/local/include/c++/12.1.0/bits/localefwd.h:162:35: note: 'std::__cxx11::numpunct' declared here
162 | template<typename _CharT> class numpunct;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:55:43: error: expected primary-expression before '>' token
55 | const size_t __i = numpunct<_CharT>::id._M_id();
| ^
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:55:46: error: '::id' has not been declared
55 | const size_t __i = numpunct<_CharT>::id._M_id();
| ^~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: In member function 'void std::__numpunct_cache<_CharT>::_M_cache(const std::locale&)':
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:80:13: error: 'numpunct' does not name a type
80 | const numpunct<_CharT>& __np = use_facet<numpunct<_CharT> >(__loc);
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:87:17: error: 'string' does not name a type; did you mean 'stdin'?
87 | const string& __g = __np.grouping();
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:88:30: error: '__g' was not declared in this scope; did you mean '__lg'?
88 | _M_grouping_size = __g.size();
| ^~~
| __lg
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:96:17: error: 'std::basic_string' is not a template
96 | const basic_string<_CharT>& __tn = __np.truename();
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:96:46: error: '__np' was not declared in this scope
96 | const basic_string<_CharT>& __tn = __np.truename();
| ^~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:101:17: error: 'std::basic_string' is not a template
101 | const basic_string<_CharT>& __fn = __np.falsename();
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: At global scope:
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:141:27: error: 'string' does not name a type; did you mean 'stdin'?
141 | const string& __grouping_tmp) throw ();
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:150:48: error: 'string' has not been declared
150 | ios_base::iostate& __err, string& __xtrc) const
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: In member function '_InIter std::num_get<_CharT, _InIter>::_M_extract_float(_InIter, _InIter, std::ios_base&, std::ios_base::iostate&, int&) const':
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:209:7: error: 'string' was not declared in this scope; did you mean 'stdin'?
209 | string __found_grouping;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:211:9: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
211 | __found_grouping.reserve(32);
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:275:25: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
275 | __found_grouping += static_cast<char>(__sep_pos);
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:282:32: error: request for member 'clear' in '__xtrc', which is of non-class type 'int'
282 | __xtrc.clear();
| ^~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:296:25: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
296 | if (__found_grouping.size())
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:319:25: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
319 | if (__found_grouping.size() && !__found_dec)
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:355:11: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
355 | if (__found_grouping.size())
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: In member function '_InIter std::num_get<_CharT, _InIter>::_M_extract_int(_InIter, _InIter, std::ios_base&, std::ios_base::iostate&, _ValueT&) const':
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:467:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
467 | string __found_grouping;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:469:11: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
469 | __found_grouping.reserve(32);
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:515:23: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
515 | __found_grouping += static_cast<char>(__sep_pos);
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:555:13: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
555 | if (__found_grouping.size())
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:568:46: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
568 | if ((!__sep_pos && !__found_zero && !__found_grouping.size())
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::num_get<_CharT, _InIter>::do_get(iter_type, iter_type, std::ios_base&, std::ios_base::iostate&, float&) const':
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:694:7: error: 'string' was not declared in this scope; did you mean 'stdin'?
694 | string __xtrc;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:695:7: error: '__xtrc' was not declared in this scope
695 | __xtrc.reserve(32);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::num_get<_CharT, _InIter>::do_get(iter_type, iter_type, std::ios_base&, std::ios_base::iostate&, double&) const':
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:709:7: error: 'string' was not declared in this scope; did you mean 'stdin'?
709 | string __xtrc;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:710:7: error: '__xtrc' was not declared in this scope
710 | __xtrc.reserve(32);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::num_get<_CharT, _InIter>::do_get(iter_type, iter_type, std::ios_base&, std::ios_base::iostate&, long double&) const':
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:741:7: error: 'string' was not declared in this scope; did you mean 'stdin'?
741 | string __xtrc;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:742:7: error: '__xtrc' was not declared in this scope
742 | __xtrc.reserve(32);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: At global scope:
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1333:11: error: 'numpunct' is not a template function
1333 | const numpunct<char>&
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1333:19: error: expected ';' before '<' token
1333 | const numpunct<char>&
| ^
| ;
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1350:15: error: 'numpunct' was not declared in this scope; did you mean 'std::__cxx11::numpunct'?
1350 | has_facet<numpunct<char> >(const locale&);
| ^~~~~~~~
| std::__cxx11::numpunct
/usr/local/include/c++/12.1.0/bits/localefwd.h:162:35: note: 'std::__cxx11::numpunct' declared here
162 | template<typename _CharT> class numpunct;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1350:5: error: parse error in template argument list
1350 | has_facet<numpunct<char> >(const locale&);
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1350:5: error: template-id 'has_facet<<expression error> >' used as a declarator
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1350:5: error: 'std::has_facet(const locale&)' is not a variable template
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1350:29: error: expected ';' before '>' token
1350 | has_facet<numpunct<char> >(const locale&);
| ^~
| ;
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1372:11: error: 'numpunct' is not a template function
1372 | const numpunct<wchar_t>&
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1372:19: error: expected ';' before '<' token
1372 | const numpunct<wchar_t>&
| ^
| ;
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1389:15: error: 'numpunct' was not declared in this scope; did you mean 'std::__cxx11::numpunct'?
1389 | has_facet<numpunct<wchar_t> >(const locale&);
| ^~~~~~~~
| std::__cxx11::numpunct
/usr/local/include/c++/12.1.0/bits/localefwd.h:162:35: note: 'std::__cxx11::numpunct' declared here
162 | template<typename _CharT> class numpunct;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1389:5: error: parse error in template argument list
1389 | has_facet<numpunct<wchar_t> >(const locale&);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1389:5: error: template-id 'has_facet<<expression error> >' used as a declarator
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1389:5: error: 'std::has_facet(const locale&)' is not a variable template
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1389:32: error: expected ';' before '>' token
1389 | has_facet<numpunct<wchar_t> >(const locale&);
| ^~
| ;
In file included from /usr/local/include/c++/12.1.0/sstream:1217,
from /usr/local/include/c++/12.1.0/complex:45,
from N4910.h:9:
/usr/local/include/c++/12.1.0/bits/sstream.tcc:44:14: error: expected nested-name-specifier before 'basic_stringbuf'
44 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:44:29: error: expected initializer before '<' token
44 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type
| ^
/usr/local/include/c++/12.1.0/bits/sstream.tcc:78:14: error: expected nested-name-specifier before 'basic_stringbuf'
78 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:78:29: error: expected initializer before '<' token
78 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type
| ^
/usr/local/include/c++/12.1.0/bits/sstream.tcc:148:14: error: expected nested-name-specifier before 'basic_stringbuf'
148 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:148:29: error: expected initializer before '<' token
148 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type
| ^
/usr/local/include/c++/12.1.0/bits/sstream.tcc:166:14: error: expected nested-name-specifier before 'basic_stringbuf'
166 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:166:29: error: expected initializer before '<' token
166 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type
| ^
/usr/local/include/c++/12.1.0/bits/sstream.tcc:214:14: error: expected nested-name-specifier before 'basic_stringbuf'
214 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:214:29: error: expected initializer before '<' token
214 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type
| ^
/usr/local/include/c++/12.1.0/bits/sstream.tcc:245:20: error: expected initializer before '<' token
245 | basic_stringbuf<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/sstream.tcc:276:20: error: expected initializer before '<' token
276 | basic_stringbuf<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/sstream.tcc:291:25: error: 'basic_stringbuf' is not a class template
291 | extern template class basic_stringbuf<char>;
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:291:25: error: explicit instantiation of non-template type 'std::basic_stringbuf'
/usr/local/include/c++/12.1.0/bits/sstream.tcc:292:25: error: 'basic_istringstream' is not a class template
292 | extern template class basic_istringstream<char>;
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:292:25: error: explicit instantiation of non-template type 'std::basic_istringstream'
/usr/local/include/c++/12.1.0/bits/sstream.tcc:293:25: error: 'basic_ostringstream' is not a class template
293 | extern template class basic_ostringstream<char>;
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:293:25: error: explicit instantiation of non-template type 'std::basic_ostringstream'
/usr/local/include/c++/12.1.0/bits/sstream.tcc:294:25: error: 'basic_stringstream' is not a class template
294 | extern template class basic_stringstream<char>;
| ^~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:294:25: error: explicit instantiation of non-template type 'std::basic_stringstream'
/usr/local/include/c++/12.1.0/bits/sstream.tcc:297:25: error: 'basic_stringbuf' is not a class template
297 | extern template class basic_stringbuf<wchar_t>;
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:297:25: error: explicit instantiation of non-template type 'std::basic_stringbuf'
/usr/local/include/c++/12.1.0/bits/sstream.tcc:298:25: error: 'basic_istringstream' is not a class template
298 | extern template class basic_istringstream<wchar_t>;
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:298:25: error: explicit instantiation of non-template type 'std::basic_istringstream'
/usr/local/include/c++/12.1.0/bits/sstream.tcc:299:25: error: 'basic_ostringstream' is not a class template
299 | extern template class basic_ostringstream<wchar_t>;
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:299:25: error: explicit instantiation of non-template type 'std::basic_ostringstream'
/usr/local/include/c++/12.1.0/bits/sstream.tcc:300:25: error: 'basic_stringstream' is not a class template
300 | extern template class basic_stringstream<wchar_t>;
| ^~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:300:25: error: explicit instantiation of non-template type 'std::basic_stringstream'
/usr/local/include/c++/12.1.0/complex: In function 'std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const complex<_Tp>&)':
/usr/local/include/c++/12.1.0/complex:557:7: error: 'std::basic_ostringstream' is not a template
557 | basic_ostringstream<_CharT, _Traits> __s;
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/complex:557:44: error: '__s' has incomplete type
557 | basic_ostringstream<_CharT, _Traits> __s;
| ^~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:293:25: note: forward declaration of 'class std::basic_ostringstream'
293 | extern template class basic_ostringstream<char>;
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/complex:557:44: error: '__s' has incomplete type
557 | basic_ostringstream<_CharT, _Traits> __s;
| ^~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:293:25: note: forward declaration of 'class std::basic_ostringstream'
293 | extern template class basic_ostringstream<char>;
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/complex:557:44: error: '__s' has incomplete type
557 | basic_ostringstream<_CharT, _Traits> __s;
| ^~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:293:25: note: forward declaration of 'class std::basic_ostringstream'
293 | extern template class basic_ostringstream<char>;
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/complex:561:11: error: no match for 'operator<<' (operand types are 'std::basic_ostringstream' and 'char')
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ~~~ ^~ ~~~
| | |
| | char
| std::basic_ostringstream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3883:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, int'
3883 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3883:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<_CharT, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:507:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
507 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:507:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<_CharT, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:517:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
517 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:517:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<_CharT, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:523:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
523 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:523:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:534:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
534 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:534:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:539:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
539 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:539:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:598:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
598 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:598:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<_CharT, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
In file included from /usr/local/include/c++/12.1.0/ostream:833:
/usr/local/include/c++/12.1.0/bits/ostream.tcc:302:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
302 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/ostream.tcc:302:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<_CharT, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:615:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
615 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:615:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:628:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
628 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:628:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:633:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
633 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:633:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/complex:555:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const complex<_Tp>&'
555 | operator<<(basic_ostream<_CharT, _Traits>& __os, const complex<_Tp>& __x)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/complex:555:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<_CharT, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/complex:557:44: error: '__s' has incomplete type
557 | basic_ostringstream<_CharT, _Traits> __s;
| ^~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:293:25: note: forward declaration of 'class std::basic_ostringstream'
293 | extern template class basic_ostringstream<char>;
| ^~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/c++/12.1.0/memory:67,
from N4910.h:14:
/usr/local/include/c++/12.1.0/bits/stl_tempbuf.h: In function 'std::pair<_Tp*, long int> std::get_temporary_buffer(ptrdiff_t)':
/usr/local/include/c++/12.1.0/bits/stl_tempbuf.h:110:56: error: too many arguments to function 'void* operator new(long unsigned int)'
110 | _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp),
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
111 | std::nothrow));
| ~~~~~~~~~~~~~
In file included from N4910.h:17:
/usr/local/include/c++/12.1.0/bitset: At global scope:
/usr/local/include/c++/12.1.0/bitset:760:39: error: 'std::basic_string' is not a template
760 | _M_check_initial_position(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~
/usr/local/include/c++/12.1.0/bitset:893:22: error: 'std::basic_string' is not a template
893 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~
/usr/local/include/c++/12.1.0/bitset:914:22: error: 'std::basic_string' is not a template
914 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~
/usr/local/include/c++/12.1.0/bitset:925:22: error: 'std::basic_string' is not a template
925 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~
/usr/local/include/c++/12.1.0/bitset:1196:9: error: 'std::basic_string' is not a template
1196 | std::basic_string<_CharT, _Traits, _Alloc>
| ^~~
/usr/local/include/c++/12.1.0/bitset:1207:9: error: 'std::basic_string' is not a template
1207 | std::basic_string<_CharT, _Traits, _Alloc>
| ^~~
/usr/local/include/c++/12.1.0/bitset:1218:9: error: 'std::basic_string' is not a template
1218 | std::basic_string<_CharT, _Traits, std::allocator<_CharT> >
| ^~~
/usr/local/include/c++/12.1.0/bitset:1225:9: error: 'std::basic_string' is not a template
1225 | std::basic_string<_CharT, _Traits, std::allocator<_CharT> >
| ^~~
/usr/local/include/c++/12.1.0/bitset:1231:9: error: 'std::basic_string' is not a template
1231 | std::basic_string<_CharT, std::char_traits<_CharT>,
| ^~~
/usr/local/include/c++/12.1.0/bitset:1240:9: error: 'std::basic_string' is not a template
1240 | std::basic_string<_CharT, std::char_traits<_CharT>,
| ^~~
/usr/local/include/c++/12.1.0/bitset:1248:7: error: 'std::basic_string' is not a template
1248 | std::basic_string<char, std::char_traits<char>, std::allocator<char> >
| ^~~
/usr/local/include/c++/12.1.0/bitset:1255:7: error: 'std::basic_string' is not a template
1255 | std::basic_string<char, std::char_traits<char>, std::allocator<char> >
| ^~~
/usr/local/include/c++/12.1.0/bitset:1270:35: error: 'std::basic_string' is not a template
1270 | _M_copy_from_string(const std::basic_string<_CharT,
| ^~~
/usr/local/include/c++/12.1.0/bitset:1278:27: error: 'std::basic_string' is not a template
1278 | _M_copy_to_string(std::basic_string<_CharT, _Traits, _Alloc>&,
| ^~~
/usr/local/include/c++/12.1.0/bitset:1284:35: error: 'std::basic_string' is not a template
1284 | _M_copy_from_string(const std::basic_string<_CharT,
| ^~~
/usr/local/include/c++/12.1.0/bitset:1290:27: error: 'std::basic_string' is not a template
1290 | _M_copy_to_string(std::basic_string<_CharT, _Traits,_Alloc>& __s) const
| ^~~
/usr/local/include/c++/12.1.0/bitset: In constructor 'std::bitset<_Nb>::bitset(const std::basic_string&, size_t)':
/usr/local/include/c++/12.1.0/bitset:899:31: error: 'std::basic_string' is not a template
899 | std::basic_string<_CharT, _Traits, _Alloc>::npos,
| ^~~
/usr/local/include/c++/12.1.0/bitset:899:75: error: incomplete type 'std::basic_string' used in nested name specifier
899 | std::basic_string<_CharT, _Traits, _Alloc>::npos,
| ^~~~
/usr/local/include/c++/12.1.0/bitset: At global scope:
/usr/local/include/c++/12.1.0/bitset:1198:9: error: return type 'class std::basic_string' is incomplete
1198 | {
| ^
/usr/local/include/c++/12.1.0/bitset: In member function 'void std::bitset<_Nb>::to_string() const':
/usr/local/include/c++/12.1.0/bitset:1199:11: error: 'std::basic_string' is not a template
1199 | std::basic_string<_CharT, _Traits, _Alloc> __result;
| ^~~
/usr/local/include/c++/12.1.0/bitset: At global scope:
/usr/local/include/c++/12.1.0/bitset:1209:9: error: return type 'class std::basic_string' is incomplete
1209 | {
| ^
/usr/local/include/c++/12.1.0/bitset: In member function 'void std::bitset<_Nb>::to_string(_CharT, _CharT) const':
/usr/local/include/c++/12.1.0/bitset:1210:11: error: 'std::basic_string' is not a template
1210 | std::basic_string<_CharT, _Traits, _Alloc> __result;
| ^~~
/usr/local/include/c++/12.1.0/bitset: At global scope:
/usr/local/include/c++/12.1.0/bitset:1220:9: error: return type 'class std::basic_string' is incomplete
1220 | { return to_string<_CharT, _Traits, std::allocator<_CharT> >(); }
| ^
/usr/local/include/c++/12.1.0/bitset:1227:9: error: return type 'class std::basic_string' is incomplete
1227 | { return to_string<_CharT, _Traits,
| ^
/usr/local/include/c++/12.1.0/bitset:1234:9: error: return type 'class std::basic_string' is incomplete
1234 | {
| ^
/usr/local/include/c++/12.1.0/bitset:1243:9: error: return type 'class std::basic_string' is incomplete
1243 | {
| ^
/usr/local/include/c++/12.1.0/bitset:1250:7: error: return type 'class std::basic_string' is incomplete
1250 | {
| ^
/usr/local/include/c++/12.1.0/bitset:1257:7: error: return type 'class std::basic_string' is incomplete
1257 | {
| ^
/usr/local/include/c++/12.1.0/bitset:1414:25: error: 'std::basic_string' is not a template
1414 | _M_copy_to_string(std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~
/usr/local/include/c++/12.1.0/bitset: In member function 'void std::bitset<_Nb>::_M_copy_to_string(std::basic_string&, _CharT, _CharT) const':
/usr/local/include/c++/12.1.0/bitset:1420:32: error: no match for 'operator[]' (operand types are 'std::basic_string' and 'long unsigned int')
1420 | _Traits::assign(__s[_Nb - __i], __one);
| ^
/usr/local/include/c++/12.1.0/bitset: In function 'std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)':
/usr/local/include/c++/12.1.0/bitset:1478:7: error: 'std::basic_string' is not a template
1478 | std::basic_string<_CharT, _Traits> __tmp;
| ^~~
/usr/local/include/c++/12.1.0/bitset:1478:42: error: '__tmp' has incomplete type
1478 | std::basic_string<_CharT, _Traits> __tmp;
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1082:25: note: forward declaration of 'class std::basic_string'
1082 | extern template class basic_string<char>;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1478:42: error: '__tmp' has incomplete type
1478 | std::basic_string<_CharT, _Traits> __tmp;
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1082:25: note: forward declaration of 'class std::basic_string'
1082 | extern template class basic_string<char>;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1478:42: error: '__tmp' has incomplete type
1478 | std::basic_string<_CharT, _Traits> __tmp;
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1082:25: note: forward declaration of 'class std::basic_string'
1082 | extern template class basic_string<char>;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1478:42: error: '__tmp' has incomplete type
1478 | std::basic_string<_CharT, _Traits> __tmp;
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1082:25: note: forward declaration of 'class std::basic_string'
1082 | extern template class basic_string<char>;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset: In function 'std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)':
/usr/local/include/c++/12.1.0/bitset:1543:7: error: 'std::basic_string' is not a template
1543 | std::basic_string<_CharT, _Traits> __tmp;
| ^~~
p1382.cpp: At global scope:
p1382.cpp:20:7: error: expected nested-name-specifier before 'rep'
20 | using rep = see_below ;
| ^~~
p1382.cpp:21:7: error: expected nested-name-specifier before 'period'
21 | using period = ratio<unspecified,
| ^~~~~~
p1382.cpp:23:7: error: expected nested-name-specifier before 'time_point'
23 | using time_point = chrono::time_point<system_clock>; static constexpr bool is_steady = unspecified;
| ^~~~~~~~~~
p1382.cpp:23:61: error: 'constexpr' does not name a type
23 | using time_point = chrono::time_point<system_clock>; static constexpr bool is_steady = unspecified;
| ^~~~~~~~~
p1382.cpp:23:61: note: C++11 'constexpr' only available with '-std=c++11' or '-std=gnu++11'
p1382.cpp:24:12: error: 'time_point' does not name a type; did you mean 'time_put'?
24 | static time_point now() noexcept;
| ^~~~~~~~~~
| time_put
p1382.cpp:26:32: error: 'time_point' does not name a type; did you mean 'time_put'?
26 | static time_t to_time_t (const time_point& t) noexcept; static time_point from_time_t(time_t t) noexcept;
| ^~~~~~~~~~
| time_put
p1382.cpp:26:45: error: expected ';' at end of member declaration
26 | static time_t to_time_t (const time_point& t) noexcept; static time_point from_time_t(time_t t) noexcept;
| ^
| ;
p1382.cpp:26:47: error: 'noexcept' does not name a type
26 | static time_t to_time_t (const time_point& t) noexcept; static time_point from_time_t(time_t t) noexcept;
| ^~~~~~~~
p1382.cpp:26:47: note: C++11 'noexcept' only available with '-std=c++11' or '-std=gnu++11'
p1382.cpp:26:64: error: 'time_point' does not name a type; did you mean 'time_put'?
26 | static time_t to_time_t (const time_point& t) noexcept; static time_point from_time_t(time_t t) noexcept;
| ^~~~~~~~~~
| time_put
p1382.cpp:28:8: error: 'time_point' does not name a type; did you mean 'time_t'?
28 | static time_point from_time_t(time_t t) noexcept;
| ^~~~~~~~~~
| time_t
p1382.cpp:29:1: error: 'unspecified' does not name a type
29 | unspecified >;
| ^~~~~~~~~~~
p1382.cpp:33:7: error: 'system_clock' has not been declared
33 | using system_clock::rep = unspecified;
| ^~~~~~~~~~~~
p1382.cpp:33:24: error: expected ';' before '=' token
33 | using system_clock::rep = unspecified;
| ^~
| ;
p1382.cpp:33:25: error: expected unqualified-id before '=' token
33 | using system_clock::rep = unspecified;
| ^
p1382.cpp:35:34: error: 'time_point' does not name a type; did you mean 'time_t'?
35 | static time_t to_time_t(const time_point& t) noexcept;
| ^~~~~~~~~~
| time_t
p1382.cpp:35:49: error: expected initializer before 'noexcept'
35 | static time_t to_time_t(const time_point& t) noexcept;
| ^~~~~~~~
p1382.cpp:41:52: error: 'sys_time' does not name a type
41 | operator<<(basic_ostream<charT, traits>& os, const sys_time<Duration>& tp);
| ^~~~~~~~
p1382.cpp:41:60: error: expected ',' or '...' before '<' token
41 | operator<<(basic_ostream<charT, traits>& os, const sys_time<Duration>& tp);
| ^
p1382.cpp:44:1: error: expected unqualified-id before 'return'
44 | return os << format(os.getloc(), STATICALLY-WIDEN("{:L%F %T}"), tp);
| ^~~~~~
p1382.cpp:46:3: error: 'cout' does not name a type
46 | cout << sys_seconds{0s} << '\n';
| ^~~~
p1382.cpp:46:27: error: expected unqualified-id before '<<' token
46 | cout << sys_seconds{0s} << '\n';
| ^~
p1382.cpp:47:3: error: 'cout' does not name a type
47 | cout << sys_seconds{946'684'800s} << '\n';
| ^~~~
p1382.cpp:47:37: error: expected unqualified-id before '<<' token
47 | cout << sys_seconds{946'684'800s} << '\n';
| ^~
p1382.cpp:48:3: error: 'cout' does not name a type
48 | cout << sys_seconds{946'688'523s} << '\n';
| ^~~~
p1382.cpp:48:37: error: expected unqualified-id before '<<' token
48 | cout << sys_seconds{946'688'523s} << '\n';
| ^~
p1382.cpp:52:52: error: 'sys_days' does not name a type
52 | operator<<(basic_ostream<charT, traits>& os, const sys_days& dp);
| ^~~~~~~~
p1382.cpp:54:82: error: spurious '>>', use '>' to terminate a template argument list
54 | template<class charT, class traits, class Duration, class Alloc = allocator<charT>>
| ^~
p1382.cpp:54:67: error: two or more data types in declaration of 'type name'
54 | template<class charT, class traits, class Duration, class Alloc = allocator<charT>>
| ^~~~~~~~~~~~~~~~~
p1382.cpp:56:1: error: expected '>' before 'from_stream'
56 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~~~~~~~
p1382.cpp:58:39: error: expected unqualified-id before ';' token
58 | minutes* offset = nullptr);
| ^
p1382.cpp:66:13: error: expected nested-name-specifier before 'rep'
66 | using rep = a signed arithmetic type;
| ^~~
p1382.cpp:67:13: error: expected nested-name-specifier before 'period'
67 | using period = ratio<unspecified, unspecified>;
| ^~~~~~
p1382.cpp:68:13: error: expected nested-name-specifier before 'duration'
68 | using duration = chrono::duration<rep, period>;
| ^~~~~~~~
p1382.cpp:69:13: error: expected nested-name-specifier before 'time_point'
69 | using time_point = chrono::time_point<utc_clock>;
| ^~~~~~~~~~
p1382.cpp:70:14: error: 'constexpr' does not name a type
70 | static constexpr bool is_steady = unspecified;
| ^~~~~~~~~
p1382.cpp:70:14: note: C++11 'constexpr' only available with '-std=c++11' or '-std=gnu++11'
p1382.cpp:71:14: error: 'time_point' does not name a type; did you mean 'time_put'?
71 | static time_point now();
| ^~~~~~~~~~
| time_put
p1382.cpp:73:14: error: 'sys_time' does not name a type
73 | static sys_time<common_type_t<Duration, seconds>>
| ^~~~~~~~
p1382.cpp:76:14: error: 'utc_time' does not name a type
76 | static utc_time<common_type_t<Duration, seconds>>
| ^~~~~~~~
p1382.cpp:82:26: error: 'charT' was not declared in this scope; did you mean 'char'?
82 | operator<<(basic_ostream<charT, traits>& os, const utc_time<Duration>& t);
| ^~~~~
| char
p1382.cpp:82:33: error: 'traits' was not declared in this scope
82 | operator<<(basic_ostream<charT, traits>& os, const utc_time<Duration>& t);
| ^~~~~~
p1382.cpp:82:39: error: template argument 1 is invalid
82 | operator<<(basic_ostream<charT, traits>& os, const utc_time<Duration>& t);
| ^
p1382.cpp:82:39: error: template argument 2 is invalid
p1382.cpp:82:52: error: 'utc_time' does not name a type
82 | operator<<(basic_ostream<charT, traits>& os, const utc_time<Duration>& t);
| ^~~~~~~~
p1382.cpp:82:60: error: expected ',' or '...' before '<' token
82 | operator<<(basic_ostream<charT, traits>& os, const utc_time<Duration>& t);
| ^
p1382.cpp:82:74: error: expected constructor, destructor, or type conversion before ';' token
82 | operator<<(basic_ostream<charT, traits>& os, const utc_time<Duration>& t);
| ^
p1382.cpp:84:1: error: expected unqualified-id before 'return'
84 | return os << format(os.getloc(), STATICALLY-WIDEN<charT>("{:L%F %T}"), t);
| ^~~~~~
p1382.cpp:86:4: warning: 'auto' changes meaning in C++11; please remove it [-Wc++11-compat]
86 | auto t = sys_days{July/1/2015} - 500ms;
| ^~~~
| ----
p1382.cpp:86:9: error: 't' does not name a type; did you mean 'tm'?
86 | auto t = sys_days{July/1/2015} - 500ms;
| ^
| tm
p1382.cpp:86:35: error: expected unqualified-id before '-' token
86 | auto t = sys_days{July/1/2015} - 500ms;
| ^
p1382.cpp:87:4: warning: 'auto' changes meaning in C++11; please remove it [-Wc++11-compat]
87 | auto u = clock_cast<utc_clock>(t);
| ^~~~
| ----
p1382.cpp:87:9: error: 'u' does not name a type
87 | auto u = clock_cast<utc_clock>(t);
| ^
p1382.cpp:88:4: error: expected unqualified-id before 'for'
88 | for (auto i = 0; i < 8; ++i, u += 250ms)
| ^~~
p1382.cpp:88:21: error: 'i' does not name a type
88 | for (auto i = 0; i < 8; ++i, u += 250ms)
| ^
p1382.cpp:88:28: error: expected unqualified-id before '++' token
88 | for (auto i = 0; i < 8; ++i, u += 250ms)
| ^~
p1382.cpp:91:4: error: expected unqualified-id before numeric constant
91 | 2015-06-30 23:59:59.500 UTC
| ^~~~
p1382.cpp:100:10: error: 'sys_time' does not name a type
100 | static sys_time<common_type_t<Duration, seconds>>
| ^~~~~~~~
p1382.cpp:104:10: error: 'utc_time' does not name a type
104 | static utc_time<common_type_t<Duration, seconds>>
| ^~~~~~~~
p1382.cpp:108:4: warning: 'auto' changes meaning in C++11; please remove it [-Wc++11-compat]
108 | auto t = sys_days{July/1/2015} - 2ns;
| ^~~~
| ----
p1382.cpp:108:9: error: 't' does not name a type; did you mean 'tm'?
108 | auto t = sys_days{July/1/2015} - 2ns;
| ^
| tm
p1382.cpp:108:35: error: expected unqualified-id before '-' token
108 | auto t = sys_days{July/1/2015} - 2ns;
| ^
p1382.cpp:109:4: warning: 'auto' changes meaning in C++11; please remove it [-Wc++11-compat]
109 | auto u = utc_clock::from_sys(t);
| ^~~~
| ----
p1382.cpp:109:9: error: 'u' does not name a type
109 | auto u = utc_clock::from_sys(t);
| ^
p1382.cpp:110:4: error: expected unqualified-id before 'static_cast'
110 | assert(u.time_since_epoch() - t.time_since_epoch() == 25s);
| ^~~~~~
p1382.cpp:110:4: error: expected ')' before 'static_cast'
110 | assert(u.time_since_epoch() - t.time_since_epoch() == 25s);
| ^~~~~~
p1382.cpp:111:4: error: 't' does not name a type; did you mean 'tm'?
111 | t += 1ns;
| ^
| tm
p1382.cpp:112:4: error: 'u' does not name a type
112 | u = utc_clock::from_sys(t);
| ^
p1382.cpp:113:4: error: expected unqualified-id before 'static_cast'
113 | assert(u.time_since_epoch() - t.time_since_epoch() == 25s);
| ^~~~~~
p1382.cpp:113:4: error: expected ')' before 'static_cast'
113 | assert(u.time_since_epoch() - t.time_since_epoch() == 25s);
| ^~~~~~
p1382.cpp:114:4: error: 't' does not name a type; did you mean 'tm'?
114 | t += 1ns;
| ^
| tm
p1382.cpp:115:4: error: 'u' does not name a type
115 | u = utc_clock::from_sys(t);
| ^
p1382.cpp:116:4: error: expected unqualified-id before 'static_cast'
116 | assert(u.time_since_epoch() - t.time_since_epoch() == 26s);
| ^~~~~~
p1382.cpp:116:4: error: expected ')' before 'static_cast'
116 | assert(u.time_since_epoch() - t.time_since_epoch() == 26s);
| ^~~~~~
p1382.cpp:117:4: error: 't' does not name a type; did you mean 'tm'?
117 | t += 1ns;
| ^
| tm
p1382.cpp:118:4: error: 'u' does not name a type
118 | u = utc_clock::from_sys(t);
| ^
p1382.cpp:119:4: error: expected unqualified-id before 'static_cast'
119 | assert(u.time_since_epoch() - t.time_since_epoch() == 26s);
| ^~~~~~
p1382.cpp:119:4: error: expected ')' before 'static_cast'
119 | assert(u.time_since_epoch() - t.time_since_epoch() == 26s);
| ^~~~~~
p1382.cpp:123:1: error: expected unqualified-id before '}' token
123 | };
| ^
p1382.cpp:123:1: error: expected declaration before '}' token
p1382.cpp:124:27: error: 'charT' was not declared in this scope; did you mean 'char'?
124 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~
| char
p1382.cpp:124:34: error: 'traits' was not declared in this scope
124 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~~
p1382.cpp:124:40: error: template argument 1 is invalid
124 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^
p1382.cpp:124:40: error: template argument 2 is invalid
p1382.cpp:124:53: error: 'charT' does not name a type; did you mean 'char'?
124 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~
| char
p1382.cpp:125:13: error: 'utc_time' has not been declared
125 | utc_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^~~~~~~~
p1382.cpp:125:21: error: expected ',' or '...' before '<' token
125 | utc_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^
p1382.cpp:126:39: error: expected constructor, destructor, or type conversion before ';' token
126 | minutes* offset = nullptr);
| ^
p1382.cpp:129:8: error: expected unqualified-id before numeric constant
129 | 2015-06-30 23:59:60.250 UTC
| ^~~~
p1382.cpp:245:27: error: 'charT' was not declared in this scope; did you mean 'char'?
245 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~
| char
p1382.cpp:245:34: error: 'traits' was not declared in this scope
245 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~~
p1382.cpp:245:40: error: template argument 1 is invalid
245 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^
p1382.cpp:245:40: error: template argument 2 is invalid
p1382.cpp:245:53: error: 'charT' does not name a type; did you mean 'char'?
245 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~
| char
p1382.cpp:246:13: error: 'gps_time' has not been declared
246 | gps_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^~~~~~~~
p1382.cpp:246:21: error: expected ',' or '...' before '<' token
246 | gps_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^
p1382.cpp:247:39: error: expected constructor, destructor, or type conversion before ';' token
247 | minutes* offset = nullptr);
| ^
p1382.cpp:253:7: error: expected nested-name-specifier before 'file_clock'
253 | using file_clock = see_below;
| ^~~~~~~~~~
p1382.cpp:258:33: error: 'sys_time' does not name a type
258 | template<class Duration> static sys_time<see_below>
| ^~~~~~~~
p1382.cpp:261:8: error: 'file_time' does not name a type
261 | static file_time<see_below> from_sys(const sys_time<Duration>&);
| ^~~~~~~~~
p1382.cpp:263:33: error: 'utc_time' does not name a type
263 | template<class Duration> static utc_time<see_below>
| ^~~~~~~~
p1382.cpp:266:8: error: 'file_time' does not name a type
266 | static file_time<see_below> from_utc(const utc_time<Duration>&);
| ^~~~~~~~~
p1382.cpp:271:56: error: 'file_time' does not name a type
271 | operator<<(basic_ostream<charT, traits>& os, const file_time<Duration>& t);
| ^~~~~~~~~
p1382.cpp:271:65: error: expected ',' or '...' before '<' token
271 | operator<<(basic_ostream<charT, traits>& os, const file_time<Duration>& t);
| ^
p1382.cpp:273:1: error: expected unqualified-id before 'return'
273 | return os << format(os.getloc(), STATICALLY-WIDEN<charT>("{:L%F %T}"), t);
| ^~~~~~
p1382.cpp:274:82: error: spurious '>>', use '>' to terminate a template argument list
274 | template<class charT, class traits, class Duration, class Alloc = allocator<charT>>
| ^~
p1382.cpp:274:67: error: two or more data types in declaration of 'type name'
274 | template<class charT, class traits, class Duration, class Alloc = allocator<charT>>
| ^~~~~~~~~~~~~~~~~
p1382.cpp:276:1: error: expected '>' before '}' token
276 | }
| ^
p1382.cpp:276:1: error: expected unqualified-id before '}' token
p1382.cpp:277:27: error: 'charT' was not declared in this scope; did you mean 'char'?
277 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~
| char
p1382.cpp:277:34: error: 'traits' was not declared in this scope
277 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~~
p1382.cpp:277:40: error: template argument 1 is invalid
277 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^
p1382.cpp:277:40: error: template argument 2 is invalid
p1382.cpp:277:53: error: 'charT' does not name a type; did you mean 'char'?
277 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~
| char
p1382.cpp:278:13: error: 'file_time' has not been declared
278 | file_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^~~~~~~~~
p1382.cpp:278:22: error: expected ',' or '...' before '<' token
278 | file_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^
p1382.cpp:279:39: error: expected constructor, destructor, or type conversion before ';' token
279 | minutes* offset = nullptr);
| ^
p1382.cpp:286:7: error: expected nested-name-specifier before 'rep'
286 | using rep = unspecified ;
| ^~~
p1382.cpp:287:7: error: expected nested-name-specifier before 'period'
287 | using period = ratio<unspecified,
| ^~~~~~
p1382.cpp:289:7: error: expected nested-name-specifier before 'time_point'
289 | using time_point = chrono::time_point<unspecified, duration>; static constexpr bool is_steady = true;
| ^~~~~~~~~~
p1382.cpp:289:70: error: 'constexpr' does not name a type
289 | using time_point = chrono::time_point<unspecified, duration>; static constexpr bool is_steady = true;
| ^~~~~~~~~
p1382.cpp:289:70: note: C++11 'constexpr' only available with '-std=c++11' or '-std=gnu++11'
p1382.cpp:290:10: error: 'time_point' does not name a type; did you mean 'time_put'?
290 | static time_point now() noexcept;
| ^~~~~~~~~~
| time_put
p1382.cpp:292:1: error: 'unspecified' does not name a type
292 | unspecified >;
| ^~~~~~~~~~~
p1382.cpp:298:7: error: expected nested-name-specifier before 'rep'
298 | using rep = unspecified ;
| ^~~
p1382.cpp:299:7: error: expected nested-name-specifier before 'period'
299 | using period = ratio<unspecified,
| ^~~~~~
p1382.cpp:301:7: error: expected nested-name-specifier before 'time_point'
301 | using time_point = chrono::time_point<unspecified, duration>;
| ^~~~~~~~~~
p1382.cpp:302:8: error: 'constexpr' does not name a type
302 | static constexpr bool is_steady = unspecified;
| ^~~~~~~~~
p1382.cpp:302:8: note: C++11 'constexpr' only available with '-std=c++11' or '-std=gnu++11'
p1382.cpp:303:12: error: 'time_point' does not name a type; did you mean 'time_put'?
303 | static time_point now() noexcept;
| ^~~~~~~~~~
| time_put
p1382.cpp:306:1: error: 'unspecified' does not name a type
306 | unspecified >;
| ^~~~~~~~~~~
p1382.cpp:312:56: error: 'local_time' does not name a type; did you mean 'locale'?
312 | operator<<(basic_ostream<charT, traits>& os, const local_time<Duration>& lt);
| ^~~~~~~~~~
| locale
p1382.cpp:312:66: error: expected ',' or '...' before '<' token
312 | operator<<(basic_ostream<charT, traits>& os, const local_time<Duration>& lt);
| ^
p1382.cpp:314:1: error: 'os' does not name a type; did you mean 'ios'?
314 | os << sys_time<Duration>{lt.time_since_epoch()};
| ^~
| ios
p1382.cpp:317:82: error: spurious '>>', use '>' to terminate a template argument list
317 | template<class charT, class traits, class Duration, class Alloc = allocator<charT>>
| ^~
p1382.cpp:317:67: error: two or more data types in declaration of 'type name'
317 | template<class charT, class traits, class Duration, class Alloc = allocator<charT>>
| ^~~~~~~~~~~~~~~~~
p1382.cpp:319:1: error: expected '>' before 'from_stream'
319 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~~~~~~~
p1382.cpp:321:39: error: expected unqualified-id before ';' token
321 | minutes* offset = nullptr);
| ^
p1382.cpp:335:10: error: 'time_point' does not name a type; did you mean 'time_put'?
335 | time_point<Clock, Duration>
| ^~~~~~~~~~
| time_put
p1382.cpp:339:6: error: 'time_point' does not name a type; did you mean 'time_put'?
339 | time_point<Clock, Duration>
| ^~~~~~~~~~
| time_put
p1382.cpp:345:5: error: 'sys_time' does not name a type
345 | sys_time<Duration>
| ^~~~~~~~
p1382.cpp:349:3: error: 'sys_time' does not name a type
349 | sys_time<Duration>
| ^~~~~~~~
p1382.cpp:355:7: error: 'utc_time' does not name a type
355 | utc_time<Duration>
| ^~~~~~~~
p1382.cpp:359:3: error: 'utc_time' does not name a type
359 | utc_time<Duration>
| ^~~~~~~~
p1382.cpp:366:7: error: 'utc_time' does not name a type
366 | utc_time<common_type_t<Duration, seconds>>
| ^~~~~~~~
p1382.cpp:370:3: error: 'utc_time' does not name a type
370 | utc_time<common_type_t<Duration, seconds>>
| ^~~~~~~~
p1382.cpp:376:7: error: 'sys_time' does not name a type
376 | sys_time<common_type_t<Duration, seconds>>
| ^~~~~~~~
p1382.cpp:380:3: error: 'sys_time' does not name a type
380 | sys_time<common_type_t<Duration, seconds>>
| ^~~~~~~~
p1382.cpp:387:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++11-compat]
387 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^~~~
| ----
p1382.cpp:387:29: error: 'time_point' does not name a type; did you mean 'time_put'?
387 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^~~~~~~~~~
| time_put
p1382.cpp:387:39: error: expected ',' or '...' before '<' token
387 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^
p1382.cpp:388:12: error: expected type-specifier before 'decltype'
388 | -> decltype(SourceClock::to_sys(t));
| ^~~~~~~~
p1382.cpp:388:12: error: expected initializer before 'decltype'
p1382.cpp:391:3: warning: 'auto' changes meaning in C++11; please remove it [-Wc++11-compat]
391 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^~~~
| ----
p1382.cpp:391:25: error: 'time_point' does not name a type; did you mean 'time_put'?
391 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^~~~~~~~~~
| time_put
p1382.cpp:391:35: error: expected ',' or '...' before '<' token
391 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^
p1382.cpp:395:1: error: expected initializer before 'template'
395 | template<class DestClock>
| ^~~~~~~~
p1382.cpp:409:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++11-compat]
409 | auto operator()(const utc_time<Duration>& t) const
| ^~~~
| ----
p1382.cpp:409:29: error: 'utc_time' does not name a type
409 | auto operator()(const utc_time<Duration>& t) const
| ^~~~~~~~
p1382.cpp:409:37: error: expected ',' or '...' before '<' token
409 | auto operator()(const utc_time<Duration>& t) const
| ^
p1382.cpp:410:12: error: expected type-specifier before 'decltype'
410 | -> decltype(DestClock::from_utc(t));
| ^~~~~~~~
p1382.cpp:410:12: error: expected initializer before 'decltype'
p1382.cpp:413:3: warning: 'auto' changes meaning in C++11; please remove it [-Wc++11-compat]
413 | auto operator()(const utc_time<Duration>& t) const
| ^~~~
| ----
p1382.cpp:413:25: error: 'utc_time' does not name a type
413 | auto operator()(const utc_time<Duration>& t) const
| ^~~~~~~~
p1382.cpp:413:33: error: expected ',' or '...' before '<' token
413 | auto operator()(const utc_time<Duration>& t) const
| ^
p1382.cpp:414:4: error: expected type-specifier before 'decltype'
414 | -> decltype(DestClock::from_utc(t));
| ^~~~~~~~
p1382.cpp:414:4: error: expected initializer before 'decltype'
p1382.cpp:419:3: warning: 'auto' changes meaning in C++11; please remove it [-Wc++11-compat]
419 | auto operator()(const sys_time<Duration>& t) const
| ^~~~
| ----
p1382.cpp:419:25: error: 'sys_time' does not name a type
419 | auto operator()(const sys_time<Duration>& t) const
| ^~~~~~~~
p1382.cpp:419:33: error: expected ',' or '...' before '<' token
419 | auto operator()(const sys_time<Duration>& t) const
| ^
p1382.cpp:420:4: error: expected type-specifier before 'decltype'
420 | -> decltype(DestClock::from_sys(t));
| ^~~~~~~~
p1382.cpp:420:4: error: expected initializer before 'decltype'
p1382.cpp:421:4: error: expected declaration before '}' token
421 | }; }
| ^
p1382.cpp:427:10: error: 'clock_time_conversion' is not a class template
427 | struct clock_time_conversion<utc_clock, SourceClock> {
| ^~~~~~~~~~~~~~~~~~~~~
p1382.cpp:427:32: error: 'utc_clock' was not declared in this scope; did you mean 'std::chrono::utc_clock'?
427 | struct clock_time_conversion<utc_clock, SourceClock> {
| ^~~~~~~~~
| std::chrono::utc_clock
p1382.cpp:64:11: note: 'std::chrono::utc_clock' declared here
64 | class utc_clock {
| ^~~~~~~~~
p1382.cpp:429:7: warning: 'auto' changes meaning in C++11; please remove it [-Wc++11-compat]
429 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^~~~
| ----
p1382.cpp:429:29: error: 'time_point' does not name a type; did you mean 'time_t'?
429 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^~~~~~~~~~
| time_t
p1382.cpp:429:39: error: expected ',' or '...' before '<' token
429 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^
p1382.cpp:430:12: error: expected type-specifier before 'decltype'
430 | -> decltype(SourceClock::to_utc(t));
| ^~~~~~~~
p1382.cpp:430:12: error: expected initializer before 'decltype'
p1382.cpp:432:3: warning: 'auto' changes meaning in C++11; please remove it [-Wc++11-compat]
432 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^~~~
| ----
p1382.cpp:432:25: error: 'time_point' does not name a type; did you mean 'time_t'?
432 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^~~~~~~~~~
| time_t
p1382.cpp:432:35: error: expected ',' or '...' before '<' token
432 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^
p1382.cpp:434:1: error: expected initializer before 'template'
434 | template<class DestClock, class SourceClock, class Duration>
| ^~~~~~~~
p1382.cpp:436:4: error: expected ';' before 'clock_time_conversion'
436 | }
| ^
| ;
......
442 | clock_time_conversion<system_clock, SourceClock>{}(t)))
| ~~~~~~~~~~~~~~~~~~~~~
p1382.cpp:442:65: error: expected constructor, destructor, or type conversion before ')' token
442 | clock_time_conversion<system_clock, SourceClock>{}(t)))
| ^
p1382.cpp:444:62: error: expected constructor, destructor, or type conversion before ')' token
444 | clock_time_conversion<utc_clock, SourceClock>{}(t)))
| ^
$ g++ p1382.cpp -std=2b -o p1382g -I. -Wall
p1382.cpp:3:22: warning: missing terminating " character
3 | const char * n4910 = "29.7 Clocks [time.clock] C++N4910:2022 (675) p1382.cpp;
| ^
p1382.cpp:3:22: error: missing terminating " character
3 | const char * n4910 = "29.7 Clocks [time.clock] C++N4910:2022 (675) p1382.cpp;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/c++/12.1.0/cstddef:49,
from N4910.h:1,
from p1382.cpp:10:
/usr/local/include/c++/12.1.0/x86_64-linux-gnu/bits/c++config.h:296:1: error: expected primary-expression before 'namespace'
296 | namespace std
| ^~~~~~~~~
In file included from /usr/local/include/c++/12.1.0/iosfwd:39,
from /usr/local/include/c++/12.1.0/ios:38,
from /usr/local/include/c++/12.1.0/ostream:38,
from /usr/local/include/c++/12.1.0/iostream:39,
from N4910.h:2:
/usr/local/include/c++/12.1.0/bits/stringfwd.h:77:11: error: 'basic_string' does not name a type
77 | typedef basic_string<char> string;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/stringfwd.h:80:11: error: 'basic_string' does not name a type
80 | typedef basic_string<wchar_t> wstring;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/stringfwd.h:84:11: error: 'basic_string' does not name a type
84 | typedef basic_string<char8_t> u8string;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/stringfwd.h:89:11: error: 'basic_string' does not name a type
89 | typedef basic_string<char16_t> u16string;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/stringfwd.h:92:11: error: 'basic_string' does not name a type
92 | typedef basic_string<char32_t> u32string;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/iosfwd:147:11: error: 'basic_stringbuf' does not name a type; did you mean 'basic_streambuf'?
147 | typedef basic_stringbuf<char> stringbuf;
| ^~~~~~~~~~~~~~~
| basic_streambuf
/usr/local/include/c++/12.1.0/iosfwd:150:11: error: 'basic_istringstream' does not name a type; did you mean 'basic_istream'?
150 | typedef basic_istringstream<char> istringstream;
| ^~~~~~~~~~~~~~~~~~~
| basic_istream
/usr/local/include/c++/12.1.0/iosfwd:153:11: error: 'basic_ostringstream' does not name a type; did you mean 'basic_ostream'?
153 | typedef basic_ostringstream<char> ostringstream;
| ^~~~~~~~~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/iosfwd:156:11: error: 'basic_stringstream' does not name a type; did you mean basic_istream'?
156 | typedef basic_stringstream<char> stringstream;
| ^~~~~~~~~~~~~~~~~~
| basic_istream
/usr/local/include/c++/12.1.0/iosfwd:187:11: error: 'basic_stringbuf' does not name a type; did you mean 'basic_streambuf'?
187 | typedef basic_stringbuf<wchar_t> wstringbuf;
| ^~~~~~~~~~~~~~~
| basic_streambuf
/usr/local/include/c++/12.1.0/iosfwd:190:11: error: 'basic_istringstream' does not name a type; did you mean 'basic_istream'?
190 | typedef basic_istringstream<wchar_t> wistringstream;
| ^~~~~~~~~~~~~~~~~~~
| basic_istream
/usr/local/include/c++/12.1.0/iosfwd:193:11: error: 'basic_ostringstream' does not name a type; did you mean 'basic_ostream'?
193 | typedef basic_ostringstream<wchar_t> wostringstream;
| ^~~~~~~~~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/iosfwd:196:11: error: 'basic_stringstream' does not name a type; did you mean basic_istream'?
196 | typedef basic_stringstream<wchar_t> wstringstream;
| ^~~~~~~~~~~~~~~~~~
| basic_istream
In file included from /usr/local/include/c++/12.1.0/bits/exception_ptr.h:40,
from /usr/local/include/c++/12.1.0/exception:168,
from /usr/local/include/c++/12.1.0/ios:39:
/usr/local/include/c++/12.1.0/new:126:26: error: declaration of 'operator new' as non-function
126 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/new:126:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
126 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
In file included from /usr/local/include/c++/12.1.0/cstddef:50:
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/new:127:41: error: attributes after parenthesized initializer ignored [-fpermissive]
127 | __attribute__((__externally_visible__));
| ^
/usr/local/include/c++/12.1.0/new:128:26: error: declaration of 'operator new []' as non-function
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/new:128:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/new:129:41: error: attributes after parenthesized initializer ignored [-fpermissive]
129 | __attribute__((__externally_visible__));
| ^
/usr/local/include/c++/12.1.0/new:135:29: error: 'std::size_t' has not been declared
135 | void operator delete(void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
| ^~~
/usr/local/include/c++/12.1.0/new:137:31: error: 'std::size_t' has not been declared
137 | void operator delete[](void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
| ^~~
/usr/local/include/c++/12.1.0/new:140:26: error: declaration of 'operator new' as non-function
140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/local/include/c++/12.1.0/new:140:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/new:140:52: error: expected primary-expression before 'const'
140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/usr/local/include/c++/12.1.0/new:142:26: error: declaration of 'operator new []' as non-function
142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/local/include/c++/12.1.0/new:142:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/new:142:54: error: expected primary-expression before 'const'
142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/usr/local/include/c++/12.1.0/new:149:26: error: declaration of 'operator new' as non-function
149 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/new:149:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
149 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/new:149:68: error: expected primary-expression before ')' token
149 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^
/usr/local/include/c++/12.1.0/new:150:73: error: attributes after parenthesized initializer ignored [-fpermissive]
150 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__));
| ^
/usr/local/include/c++/12.1.0/new:151:26: error: declaration of 'operator new' as non-function
151 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/new:151:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
151 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/new:151:68: error: expected primary-expression before ',' token
151 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^
/usr/local/include/c++/12.1.0/new:151:70: error: expected primary-expression before 'const'
151 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~
/usr/local/include/c++/12.1.0/new:157:26: error: declaration of 'operator new []' as non-function
157 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/new:157:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
157 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/new:157:70: error: expected primary-expression before ')' token
157 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^
/usr/local/include/c++/12.1.0/new:158:73: error: attributes after parenthesized initializer ignored [-fpermissive]
158 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__));
| ^
/usr/local/include/c++/12.1.0/new:159:26: error: declaration of 'operator new []' as non-function
159 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/new:159:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
159 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/new:159:70: error: expected primary-expression before ',' token
159 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^
/usr/local/include/c++/12.1.0/new:159:72: error: expected primary-expression before 'const'
159 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~
/usr/local/include/c++/12.1.0/new:166:29: error: 'std::size_t' has not been declared
166 | void operator delete(void*, std::size_t, std::align_val_t)
| ^~~
/usr/local/include/c++/12.1.0/new:168:31: error: 'std::size_t' has not been declared
168 | void operator delete[](void*, std::size_t, std::align_val_t)
| ^~~
/usr/local/include/c++/12.1.0/new:174:33: error: declaration of 'operator new' as non-function
174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/local/include/c++/12.1.0/new:174:51: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/new:174:59: error: expected primary-expression before 'void'
174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~
/usr/local/include/c++/12.1.0/new:176:33: error: declaration of 'operator new []' as non-function
176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/local/include/c++/12.1.0/new:176:53: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/new:176:61: error: expected primary-expression before 'void'
176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~
In file included from /usr/local/include/c++/12.1.0/bits/move.h:57,
from /usr/local/include/c++/12.1.0/bits/exception_ptr.h:43:
/usr/local/include/c++/12.1.0/type_traits:452:26: error: 'std::size_t' has not been declared
452 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/local/include/c++/12.1.0/type_traits:453:25: error: '_Size' was not declared in this scope
453 | struct is_array<_Tp[_Size]>
| ^~~~~
/usr/local/include/c++/12.1.0/type_traits:453:31: error: template argument 1 is invalid
453 | struct is_array<_Tp[_Size]>
| ^
/usr/local/include/c++/12.1.0/type_traits:558:42: error: 'nullptr_t' is not a member of 'std'; did you mean nullptr_t'?
558 | struct __is_null_pointer_helper<std::nullptr_t>
| ^~~~~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:442:29: note: 'nullptr_t' declared here
442 | typedef decltype(nullptr) nullptr_t;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/type_traits:558:51: error: template argument 1 is invalid
558 | struct __is_null_pointer_helper<std::nullptr_t>
| ^
/usr/local/include/c++/12.1.0/type_traits:1386:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1386 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/type_traits:1386:57: error: template argument 1 is invalid
1386 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/usr/local/include/c++/12.1.0/type_traits:1395:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1395 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/type_traits:1395:46: error: template argument 1 is invalid
1395 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/local/include/c++/12.1.0/type_traits:1397:26: error: 'std::size_t' has not been declared
1397 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/local/include/c++/12.1.0/type_traits:1398:21: error: '_Size' was not declared in this scope
1398 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/local/include/c++/12.1.0/type_traits:1398:27: error: template argument 1 is invalid
1398 | struct rank<_Tp[_Size]>
| ^
/usr/local/include/c++/12.1.0/type_traits:1399:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1399 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/type_traits:1399:65: error: template argument 1 is invalid
1399 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/local/include/c++/12.1.0/type_traits:1403:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1403 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/type_traits:1403:65: error: template argument 1 is invalid
1403 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/local/include/c++/12.1.0/type_traits:1408:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1408 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/type_traits:1408:46: error: template argument 1 is invalid
1408 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/local/include/c++/12.1.0/type_traits:1410:42: error: 'std::size_t' has not been declared
1410 | template<typename _Tp, unsigned _Uint, std::size_t _Size>
| ^~~
/usr/local/include/c++/12.1.0/type_traits:1411:23: error: '_Size' was not declared in this scope
1411 | struct extent<_Tp[_Size], _Uint>
| ^~~~~
/usr/local/include/c++/12.1.0/type_traits:1411:36: error: template argument 1 is invalid
1411 | struct extent<_Tp[_Size], _Uint>
| ^
/usr/local/include/c++/12.1.0/type_traits:1412:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1412 | : public integral_constant<std::size_t,
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/type_traits:1413:45: error: '_Size' was not declared in this scope
1413 | _Uint == 0 ? _Size : extent<_Tp,
| ^~~~~
/usr/local/include/c++/12.1.0/type_traits:1414:77: error: template argument 1 is invalid
1414 | _Uint - 1>::value>
| ^
/usr/local/include/c++/12.1.0/type_traits:1419:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1419 | : public integral_constant<std::size_t,
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/type_traits:1421:73: error: template argument 1 is invalid
1421 | _Uint - 1>::value>
| ^
/usr/local/include/c++/12.1.0/type_traits:2019:26: error: 'std::size_t' has not been declared
2019 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/local/include/c++/12.1.0/type_traits:2020:30: error: '_Size' was not declared in this scope
2020 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/local/include/c++/12.1.0/type_traits:2020:36: error: template argument 1 is invalid
2020 | struct remove_extent<_Tp[_Size]>
| ^
/usr/local/include/c++/12.1.0/type_traits:2032:26: error: 'std::size_t' has not been declared
2032 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/local/include/c++/12.1.0/type_traits:2033:35: error: '_Size' was not declared in this scope
2033 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/local/include/c++/12.1.0/type_traits:2033:41: error: template argument 1 is invalid
2033 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/local/include/c++/12.1.0/type_traits:2091:12: error: 'std::size_t' has not been declared
2091 | template<std::size_t _Len>
| ^~~
/usr/local/include/c++/12.1.0/type_traits:2096:30: error: '_Len' was not declared in this scope
2096 | unsigned char __data[_Len];
| ^~~~
/usr/local/include/c++/12.1.0/type_traits:2111:12: error: 'std::size_t' has not been declared
2111 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/local/include/c++/12.1.0/type_traits:2111:30: error: 'std::size_t' has not been declared
2111 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/local/include/c++/12.1.0/type_traits:2112:55: error: '_Len' was not declared in this scope
2112 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/local/include/c++/12.1.0/type_traits:2112:59: error: template argument 1 is invalid
2112 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/local/include/c++/12.1.0/type_traits:2117:30: error: '_Len' was not declared in this scope
2117 | unsigned char __data[_Len];
| ^~~~
/usr/local/include/c++/12.1.0/type_traits:2118:44: error: '_Align' was not declared in this scope
2118 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
In file included from /usr/local/include/c++/12.1.0/ios:40:
/usr/local/include/c++/12.1.0/bits/char_traits.h:129:61: error: 'std::size_t' has not been declared
129 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:131:40: error: 'size_t' in namespace 'std' does not name a type
131 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:135:34: error: 'std::size_t' has not been declared
135 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:138:52: error: 'std::size_t' has not been declared
138 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:141:52: error: 'std::size_t' has not been declared
141 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:144:30: error: 'std::size_t' has not been declared
144 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:170:59: error: 'std::size_t' has not been declared
170 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/local/include/c++/12.1.0/bits/char_traits.h: In static member function 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)':
/usr/local/include/c++/12.1.0/bits/char_traits.h:172:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
172 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:172:33: error: '__i' was not declared in this scope; did you mean '__n'?
172 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __n
/usr/local/include/c++/12.1.0/bits/char_traits.h: At global scope:
/usr/local/include/c++/12.1.0/bits/char_traits.h:181:31: error: 'size_t' in namespace 'std' does not name a type
181 | _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:194:32: error: 'std::size_t' has not been declared
194 | find(const char_type* __s, std::size_t __n, const char_type& __a)
| ^~~
/usr/local/include/c++/12.1.0/bits/char_traits.h: In static member function 'static constexpr const __gnu_cxx::char_traits<_CharT>::char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, int, const char_type&)':
/usr/local/include/c++/12.1.0/bits/char_traits.h:196:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
196 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:196:33: error: '__i' was not declared in this scope; did you mean '__s'?
196 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __s
/usr/local/include/c++/12.1.0/bits/char_traits.h: At global scope:
/usr/local/include/c++/12.1.0/bits/char_traits.h:206:50: error: 'std::size_t' has not been declared
206 | move(char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:256:50: error: 'std::size_t' has not been declared
256 | copy(char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/local/include/c++/12.1.0/bits/char_traits.h: In static member function 'static constexpr __gnu_cxx::char_traits<_CharT>::char_type* __gnu_cxx::char_traits<_CharT>::copy(char_type*, const char_type*, int)':
/usr/local/include/c++/12.1.0/bits/char_traits.h:261:21: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
261 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:261:37: error: '__i' was not declared in this scope; did you mean '__n'?
261 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __n
/usr/local/include/c++/12.1.0/bits/char_traits.h: At global scope:
/usr/local/include/c++/12.1.0/bits/char_traits.h:275:28: error: 'std::size_t' has not been declared
275 | assign(char_type* __s, std::size_t __n, char_type __a)
| ^~~
/usr/local/include/c++/12.1.0/bits/char_traits.h: In static member function 'static constexpr __gnu_cxx::char_traits<_CharT>::char_type* __gnu_cxx::char_traits<_CharT>::assign(char_type*, int, char_type)':
/usr/local/include/c++/12.1.0/bits/char_traits.h:280:21: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
280 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:280:37: error: '__i' was not declared in this scope; did you mean '__s'?
280 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __s
/usr/local/include/c++/12.1.0/bits/char_traits.h:294:21: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
294 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:294:37: error: '__i' was not declared in this scope; did you mean '__s'?
294 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __s
/usr/local/include/c++/12.1.0/bits/char_traits.h: In static member function 'static constexpr void std::char_traits<char>::assign(char_type&, const char_type&)':
/usr/local/include/c++/12.1.0/bits/char_traits.h:351:28: error: no matching function for call to 'construct_at(std::char_traits<char>::char_type*, const std::char_traits<char>::char_type&)'
351 | std::construct_at(__builtin_addressof(__c1), __c2);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/c++/12.1.0/bits/char_traits.h:46:
/usr/local/include/c++/12.1.0/bits/stl_construct.h:94:5: note: candidate: 'template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...)'
94 | construct_at(_Tp* __location, _Args&&... __args)
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/stl_construct.h:94:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/bits/stl_construct.h: In substitution of 'template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...) [with _Tp = char; _Args = {const char&}]':
/usr/local/include/c++/12.1.0/bits/char_traits.h:351:21: required from here
/usr/local/include/c++/12.1.0/bits/stl_construct.h:96:17: error: no matching function for call to 'operator new(sizetype, void*)'
96 | -> decltype(::new((void*)0) _Tp(std::declval<_Args>()...))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<built-in>: note: candidate: 'void* operator new(long unsigned int)'
<built-in>: note: candidate expects 1 argument, 2 provided
<built-in>: note: candidate: 'void* operator new(long unsigned int, std::align_val_t)'
<built-in>: note: no known conversion for argument 2 from 'void*' to 'std::align_val_t'
/usr/local/include/c++/12.1.0/bits/char_traits.h: In static member function 'static constexpr size_t std::char_traits<char>::length(const char_type*)':
/usr/local/include/c++/12.1.0/bits/char_traits.h:393:53: error: 'length' is not a member of '__gnu_cxx::char_traits<char>'
393 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h: In static member function 'static constexpr void std::char_traits<wchar_t>::assign(char_type&, const char_type&)':
/usr/local/include/c++/12.1.0/bits/char_traits.h:489:28: error: no matching function for call to 'construct_at(std::char_traits<wchar_t>::char_type*, const std::char_traits<wchar_t>::char_type&)'
489 | std::construct_at(__builtin_addressof(__c1), __c2);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/stl_construct.h:94:5: note: candidate: 'template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...)'
94 | construct_at(_Tp* __location, _Args&&... __args)
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/stl_construct.h:94:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/bits/stl_construct.h: In substitution of 'template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...) [with _Tp = wchar_t; _Args = {const wchar_t&}]':
/usr/local/include/c++/12.1.0/bits/char_traits.h:489:21: required from here
/usr/local/include/c++/12.1.0/bits/stl_construct.h:96:17: error: no matching function for call to 'operator new(sizetype, void*)'
96 | -> decltype(::new((void*)0) _Tp(std::declval<_Args>()...))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<built-in>: note: candidate: 'void* operator new(long unsigned int)'
<built-in>: note: candidate expects 1 argument, 2 provided
<built-in>: note: candidate: 'void* operator new(long unsigned int, std::align_val_t)'
<built-in>: note: no known conversion for argument 2 from 'void*' to 'std::align_val_t'
/usr/local/include/c++/12.1.0/bits/char_traits.h: In static member function 'static constexpr size_t std::char_traits<wchar_t>::length(const char_type*)':
/usr/local/include/c++/12.1.0/bits/char_traits.h:520:53: error: 'length' is not a member of '__gnu_cxx::char_traits<wchar_t>'
520 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h:522:22: error: call to non-'constexpr' function 'size_t wcslen(const wchar_t*)'
522 | return wcslen(__s);
| ~~~~~~^~~~~
In file included from /usr/local/include/c++/12.1.0/cwchar:44,
from /usr/local/include/c++/12.1.0/bits/postypes.h:40,
from /usr/local/include/c++/12.1.0/iosfwd:40:
/usr/include/wchar.h:222:15: note: 'size_t wcslen(const wchar_t*)' declared here
222 | extern size_t wcslen (const wchar_t *__s) __THROW __attribute_pure__;
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h: In static member function 'static constexpr void std::char_traits<char8_t>::assign(char_type&, const char_type&)':
/usr/local/include/c++/12.1.0/bits/char_traits.h:617:28: error: no matching function for call to 'construct_at(std::char_traits<char8_t>::char_type*, const std::char_traits<char8_t>::char_type&)'
617 | std::construct_at(__builtin_addressof(__c1), __c2);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/stl_construct.h:94:5: note: candidate: 'template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...)'
94 | construct_at(_Tp* __location, _Args&&... __args)
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/stl_construct.h:94:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/bits/stl_construct.h: In substitution of 'template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...) [with _Tp = char8_t; _Args = {const char8_t&}]':
/usr/local/include/c++/12.1.0/bits/char_traits.h:617:21: required from here
/usr/local/include/c++/12.1.0/bits/stl_construct.h:96:17: error: no matching function for call to 'operator new(sizetype, void*)'
96 | -> decltype(::new((void*)0) _Tp(std::declval<_Args>()...))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<built-in>: note: candidate: 'void* operator new(long unsigned int)'
<built-in>: note: candidate expects 1 argument, 2 provided
<built-in>: note: candidate: 'void* operator new(long unsigned int, std::align_val_t)'
<built-in>: note: no known conversion for argument 2 from 'void*' to 'std::align_val_t'
/usr/local/include/c++/12.1.0/bits/char_traits.h: In static member function 'static constexpr size_t std::char_traits<char8_t>::length(const char_type*)':
/usr/local/include/c++/12.1.0/bits/char_traits.h:648:53: error: 'length' is not a member of '__gnu_cxx::char_traits<char8_t>'
648 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/char_traits.h: In static member function 'static constexpr void std::char_traits<char16_t>::assign(char_type&, const char_type&)':
/usr/local/include/c++/12.1.0/bits/char_traits.h:760:28: error: no matching function for call to 'construct_at(std::char_traits<char16_t>::char_type*, const std::char_traits<char16_t>::char_type&)'
760 | std::construct_at(__builtin_addressof(__c1), __c2);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/stl_construct.h:94:5: note: candidate: 'template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...)'
94 | construct_at(_Tp* __location, _Args&&... __args)
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/stl_construct.h:94:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/bits/stl_construct.h: In substitution of 'template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...) [with _Tp = char16_t; _Args = {const char16_t&}]':
/usr/local/include/c++/12.1.0/bits/char_traits.h:760:21: required from here
/usr/local/include/c++/12.1.0/bits/stl_construct.h:96:17: error: no matching function for call to 'operator new(sizetype, void*)'
96 | -> decltype(::new((void*)0) _Tp(std::declval<_Args>()...))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<built-in>: note: candidate: 'void* operator new(long unsigned int)'
<built-in>: note: candidate expects 1 argument, 2 provided
<built-in>: note: candidate: 'void* operator new(long unsigned int, std::align_val_t)'
<built-in>: note: no known conversion for argument 2 from 'void*' to 'std::align_val_t'
/usr/local/include/c++/12.1.0/bits/char_traits.h: In static member function 'static constexpr void std::char_traits<char32_t>::assign(char_type&, const char_type&)':
/usr/local/include/c++/12.1.0/bits/char_traits.h:881:28: error: no matching function for call to 'construct_at(std::char_traits<char32_t>::char_type*, const std::char_traits<char32_t>::char_type&)'
881 | std::construct_at(__builtin_addressof(__c1), __c2);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/stl_construct.h:94:5: note: candidate: 'template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...)'
94 | construct_at(_Tp* __location, _Args&&... __args)
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/stl_construct.h:94:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/bits/stl_construct.h: In substitution of 'template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...) [with _Tp = char32_t; _Args = {const char32_t&}]':
/usr/local/include/c++/12.1.0/bits/char_traits.h:881:21: required from here
/usr/local/include/c++/12.1.0/bits/stl_construct.h:96:17: error: no matching function for call to 'operator new(sizetype, void*)'
96 | -> decltype(::new((void*)0) _Tp(std::declval<_Args>()...))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<built-in>: note: candidate: 'void* operator new(long unsigned int)'
<built-in>: note: candidate expects 1 argument, 2 provided
<built-in>: note: candidate: 'void* operator new(long unsigned int, std::align_val_t)'
<built-in>: note: no known conversion for argument 2 from 'void*' to 'std::align_val_t'
In file included from /usr/local/include/c++/12.1.0/x86_64-linux-gnu/bits/c++allocator.h:33,
from /usr/local/include/c++/12.1.0/bits/allocator.h:46,
from /usr/local/include/c++/12.1.0/string:41,
from /usr/local/include/c++/12.1.0/bits/locale_classes.h:40,
from /usr/local/include/c++/12.1.0/bits/ios_base.h:41,
from /usr/local/include/c++/12.1.0/ios:42:
/usr/local/include/c++/12.1.0/bits/new_allocator.h: At global scope:
/usr/local/include/c++/12.1.0/bits/new_allocator.h:60:20: error: 'size_t' in namespace 'std' does not name a type
60 | typedef std::size_t size_type;
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/new_allocator.h:61:20: error: 'ptrdiff_t' in namespace 'std' does not name a type
61 | typedef std::ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/new_allocator.h:112:16: error: 'size_type' has not been declared
112 | allocate(size_type __n, const void* = static_cast<const void*>(0))
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/new_allocator.h:142:28: error: 'size_type' has not been declared
142 | deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__)))
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/new_allocator.h:209:26: error: 'size_type' does not name a type; did you mean 'true_type'?
209 | _GLIBCXX_CONSTEXPR size_type
| ^~~~~~~~~
| true_type
/usr/local/include/c++/12.1.0/bits/new_allocator.h: In member function '_Tp* std::__new_allocator<_Tp>::allocate(int, const void*)':
/usr/local/include/c++/12.1.0/bits/new_allocator.h:124:29: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
124 | if (__n > (std::size_t(-1) / sizeof(_Tp)))
| ^~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:214:23: note: 'size_t' declared here
214 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/local/include/c++/12.1.0/bits/stl_iterator.h:65,
from /usr/local/include/c++/12.1.0/string:47:
/usr/local/include/c++/12.1.0/ext/type_traits.h: At global scope:
/usr/local/include/c++/12.1.0/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
164 | __is_null_pointer(std::nullptr_t)
| ^
/usr/local/include/c++/12.1.0/ext/type_traits.h:159:5: note: previous declaration 'template<class _Type> constexpr bool __gnu_cxx::__is_null_pointer(_Type)'
159 | __is_null_pointer(_Type)
| ^~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/ext/type_traits.h:164:26: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'?
164 | __is_null_pointer(std::nullptr_t)
| ^~~~~~~~~
/usr/local/lib/gcc/x86_64-linux-gnu/12.1.0/include/stddef.h:442:29: note: 'nullptr_t' declared here
442 | typedef decltype(nullptr) nullptr_t;
| ^~~~~~~~~
In file included from /usr/local/include/c++/12.1.0/ext/alloc_traits.h:34,
from /usr/local/include/c++/12.1.0/bits/basic_string.h:40,
from /usr/local/include/c++/12.1.0/string:53:
/usr/local/include/c++/12.1.0/bits/alloc_traits.h:432:36: error: 'ptrdiff_t' in namespace 'std' does not name a type
432 | using difference_type = std::ptrdiff_t;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/alloc_traits.h:435:30: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
435 | using size_type = std::size_t;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/alloc_traits.h:463:37: error: 'size_type' has not been declared
463 | allocate(allocator_type& __a, size_type __n)
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/alloc_traits.h:477:37: error: 'size_type' has not been declared
477 | allocate(allocator_type& __a, size_type __n, const_void_pointer __hint)
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/alloc_traits.h:495:52: error: 'size_type' has not been declared
495 | deallocate(allocator_type& __a, pointer __p, size_type __n)
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/alloc_traits.h:546:35: error: 'size_type' does not name a type; did you mean 'true_type'?
546 | static _GLIBCXX20_CONSTEXPR size_type
| ^~~~~~~~~
| true_type
/usr/local/include/c++/12.1.0/bits/alloc_traits.h:589:36: error: 'ptrdiff_t' in namespace 'std' does not name a type
589 | using difference_type = std::ptrdiff_t;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/alloc_traits.h:592:30: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
592 | using size_type = std::size_t;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/alloc_traits.h:614:33: error: 'size_type' has not been declared
614 | allocate(allocator_type&, size_type, const void* = nullptr) = delete;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/alloc_traits.h:618:42: error: 'size_type' has not been declared
618 | deallocate(allocator_type&, void*, size_type) = delete;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/alloc_traits.h:651:14: error: 'size_type' does not name a type; did you mean 'true_type'?
651 | static size_type
| ^~~~~~~~~
| true_type
/usr/local/include/c++/12.1.0/bits/basic_string.h:3431:5: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3431 | basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3448:5: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3448 | basic_string<_CharT,_Traits,_Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3460:5: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3460 | basic_string<_CharT,_Traits,_Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3471:12: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3471 | inline basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3488:12: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3488 | inline basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3501:12: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3501 | inline basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3508:12: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3508 | inline basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3515:12: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3515 | inline basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3538:12: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3538 | inline basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3545:12: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3545 | inline basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3552:12: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3552 | inline basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3559:12: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3559 | inline basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3575:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3575 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3575:34: error: expected ',' or '...' before '<' token
3575 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3575:5: error: 'constexpr bool std::operator==(int)' must have an argument of class or enumerated type
3575 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3584:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3584 | operator==(const basic_string<_CharT>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3584:34: error: expected ',' or '...' before '<' token
3584 | operator==(const basic_string<_CharT>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3584:5: error: 'constexpr typename __gnu_cxx::__enable_if<std::__is_char<_Tp>::__value, bool>::__type std::operator==(int)' must have an argument of class or enumerated type
3584 | operator==(const basic_string<_CharT>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3599:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3599 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3599:34: error: expected ',' or '...' before '<' token
3599 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3599:5: error: 'constexpr bool std::operator==(int)' must have an argument of class or enumerated type
3599 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3613:23: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3613 | operator<=>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3613:35: error: expected ',' or '...' before '<' token
3613 | operator<=>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3613:5: error: 'constexpr decltype (__char_traits_cmp_cat<_Traits>(0)) std::operator<=>(int)' must have an argument of class or enumerated type
3613 | operator<=>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3627:23: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3627 | operator<=>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3627:35: error: expected ',' or '...' before '<' token
3627 | operator<=>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3627:5: error: 'constexpr decltype (__char_traits_cmp_cat<_Traits>(0)) std::operator<=>(int)' must have an argument of class or enumerated type
3627 | operator<=>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3845:5: error: variable or field 'swap' declared void
3845 | swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3845:10: error: 'basic_string' was not declared in this scope; did you mean 'std::__cxx11::basic_string'?
3845 | swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~~~~~
| std::__cxx11::basic_string
/usr/local/include/c++/12.1.0/bits/stringfwd.h:72:11: note: 'std::__cxx11::basic_string' declared here
72 | class basic_string;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3845:29: error: expected primary-expression before ',' token
3845 | swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3845:38: error: expected primary-expression before ',' token
3845 | swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3845:46: error: expected primary-expression before '>' token
3845 | swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3845:49: error: '__lhs' was not declared in this scope
3845 | swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3846:10: error: 'basic_string' was not declared in this scope; did you mean 'std::__cxx11::basic_string'?
3846 | basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^~~~~~~~~~~~
| std::__cxx11::basic_string
/usr/local/include/c++/12.1.0/bits/stringfwd.h:72:11: note: 'std::__cxx11::basic_string' declared here
72 | class basic_string;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3846:29: error: expected primary-expression before ',' token
3846 | basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3846:38: error: expected primary-expression before ',' token
3846 | basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3846:46: error: expected primary-expression before '>' token
3846 | basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3846:49: error: '__rhs' was not declared in this scope
3846 | basic_string<_CharT, _Traits, _Alloc>& __rhs)
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3866:16: error: 'basic_string' has not been declared
3866 | basic_string<_CharT, _Traits, _Alloc>& __str);
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3866:28: error: expected ',' or '...' before '<' token
3866 | basic_string<_CharT, _Traits, _Alloc>& __str);
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3870:43: error: 'basic_string' has not been declared
3870 | operator>>(basic_istream<char>& __is, basic_string<char>& __str);
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3870:55: error: expected ',' or '...' before '<' token
3870 | operator>>(basic_istream<char>& __is, basic_string<char>& __str);
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3870:5: error: template-id 'operator>><>' for 'std::basic_istream<char>& std::operator>>(basic_istream<char>&, int)' does not match any template declaration
3870 | operator>>(basic_istream<char>& __is, basic_string<char>& __str);
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3865:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, int)'
3865 | operator>>(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/cstddef:128:5: note: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
128 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3884:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
3884 | const basic_string<_CharT, _Traits, _Alloc>& __str)
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:3884:34: error: expected ',' or '...' before '<' token
3884 | const basic_string<_CharT, _Traits, _Alloc>& __str)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:3888:37: error: '__str' was not declared in this scope
3888 | return __ostream_insert(__os, __str.data(), __str.size());
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:3907:13: error: 'basic_string' has not been declared
3907 | basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim);
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3907:25: error: expected ',' or '...' before '<' token
3907 | basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim);
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3924:13: error: 'basic_string' has not been declared
3924 | basic_string<_CharT, _Traits, _Alloc>& __str)
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3924:25: error: expected ',' or '...' before '<' token
3924 | basic_string<_CharT, _Traits, _Alloc>& __str)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:3925:33: error: '__str' was not declared in this scope
3925 | { return std::getline(__is, __str, __is.widen('\n')); }
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:3932:13: error: 'basic_string' has not been declared
3932 | basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim)
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3932:25: error: expected ',' or '...' before '<' token
3932 | basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:3933:33: error: '__str' was not declared in this scope
3933 | { return std::getline(__is, __str, __delim); }
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3933:40: error: '__delim' was not declared in this scope
3933 | { return std::getline(__is, __str, __delim); }
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:3939:13: error: 'basic_string' has not been declared
3939 | basic_string<_CharT, _Traits, _Alloc>& __str)
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3939:25: error: expected ',' or '...' before '<' token
3939 | basic_string<_CharT, _Traits, _Alloc>& __str)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3938:5: error: redefinition of 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, int)'
3938 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3931:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, int)' previously declared here
3931 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3945:40: error: 'basic_string' has not been declared
3945 | getline(basic_istream<char>& __in, basic_string<char>& __str,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3945:52: error: expected ',' or '...' before '<' token
3945 | getline(basic_istream<char>& __in, basic_string<char>& __str,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3945:5: error: template-id 'getline<>' for 'std::basic_istream<char>& std::getline(basic_istream<char>&, int)' does not match any template declaration
3945 | getline(basic_istream<char>& __in, basic_string<char>& __str,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3931:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, int)'
3931 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3923:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int)'
3923 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3951:43: error: 'basic_string' has not been declared
3951 | getline(basic_istream<wchar_t>& __in, basic_string<wchar_t>& __str,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3951:55: error: expected ',' or '...' before '<' token
3951 | getline(basic_istream<wchar_t>& __in, basic_string<wchar_t>& __str,
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:3951:5: error: template-id 'getline<>' for 'std::basic_istream<wchar_t>& std::getline(basic_istream<wchar_t>&, int)' does not match any template declaration
3951 | getline(basic_istream<wchar_t>& __in, basic_string<wchar_t>& __str,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3931:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, int)'
3931 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3923:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int)'
3923 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
In file included from /usr/local/include/c++/12.1.0/bits/basic_string.h:3960:
/usr/local/include/c++/12.1.0/ext/string_conversions.h:55:53: error: 'std::size_t' has not been declared
55 | const char* __name, const _CharT* __str, std::size_t* __idx,
| ^~~
/usr/local/include/c++/12.1.0/ext/string_conversions.h:99:43: error: 'std::size_t' has not been declared
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~
/usr/local/include/c++/12.1.0/ext/string_conversions.h:100:54: error: 'std::size_t' has not been declared
100 | __builtin_va_list), std::size_t __n,
| ^~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3971:14: error: 'string' does not name a type; did you mean 'stdin'?
3971 | stoi(const string& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'int std::__cxx11::stoi(const int&, size_t*, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:3972:69: error: request for member 'c_str' in '__str', which is of non-class type 'const int'
3972 | { return __gnu_cxx::__stoa<long, int>(&std::strtol, "stoi", __str.c_str(),
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:3976:14: error: 'string' does not name a type; did you mean 'stdin'?
3976 | stol(const string& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'long int std::__cxx11::stol(const int&, size_t*, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:3977:58: error: request for member 'c_str' in '__str', which is of non-class type 'const int'
3977 | { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(),
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:3981:15: error: 'string' does not name a type; did you mean 'stdin'?
3981 | stoul(const string& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'long unsigned int std::__cxx11::stoul(const int&, size_t*, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:3982:60: error: request for member 'c_str' in '__str', which is of non-class type 'const int'
3982 | { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(),
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:3986:15: error: 'string' does not name a type; did you mean 'stdin'?
3986 | stoll(const string& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'long long int std::__cxx11::stoll(const int&, size_t*, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:3987:60: error: request for member 'c_str' in '__str', which is of non-class type 'const int'
3987 | { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(),
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:3991:16: error: 'string' does not name a type; did you mean 'stdin'?
3991 | stoull(const string& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'long long unsigned int std::__cxx11::stoull(const int&, size_t*, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:3992:62: error: request for member 'c_str' in '__str', which is of non-class type 'const int'
3992 | { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(),
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:3997:14: error: 'string' does not name a type; did you mean 'stdin'?
3997 | stof(const string& __str, size_t* __idx = 0)
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'float std::__cxx11::stof(const int&, size_t*':
/usr/local/include/c++/12.1.0/bits/basic_string.h:3998:58: error: request for member 'c_str' in '__str', which is of non-class type 'const int'
3998 | { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:4001:14: error: 'string' does not name a type; did you mean 'stdin'?
4001 | stod(const string& __str, size_t* __idx = 0)
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'double std::__cxx11::stod(const int&, size_t*)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:4002:58: error: request for member 'c_str' in '__str', which is of non-class type 'const int'
4002 | { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); }
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:4005:15: error: 'string' does not name a type; did you mean 'stdin'?
4005 | stold(const string& __str, size_t* __idx = 0)
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'long double std::__cxx11::stold(const int&, size_t*)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:4006:60: error: request for member 'c_str' in '__str', which is of non-class type 'const int'
4006 | { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); }
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:4011:10: error: 'string' does not name a type; did you mean 'stdin'?
4011 | inline string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4025:10: error: 'string' does not name a type; did you mean 'stdin'?
4025 | inline string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4036:10: error: 'string' does not name a type; did you mean 'stdin'?
4036 | inline string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4050:10: error: 'string' does not name a type; did you mean 'stdin'?
4050 | inline string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4061:10: error: 'string' does not name a type; did you mean 'stdin'?
4061 | inline string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4073:10: error: 'string' does not name a type; did you mean 'stdin'?
4073 | inline string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4084:10: error: 'string' does not name a type; did you mean 'stdin'?
4084 | inline string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4093:10: error: 'string' does not name a type; did you mean 'stdin'?
4093 | inline string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4102:10: error: 'string' does not name a type; did you mean 'stdin'?
4102 | inline string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4114:14: error: 'wstring' does not name a type; did you mean 'stdin'?
4114 | stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4114:3: error: redefinition of 'int std::__cxx11::stoi(const int&, size_t*, int)'
4114 | stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
| ^~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3971:3: note: 'int std::__cxx11::stoi(const int&, size_t*, int)' previously defined here
3971 | stoi(const string& __str, size_t* __idx = 0, int __base = 10)
| ^~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'int std::__cxx11::stoi(const int&, size_t*, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:4115:69: error: request for member 'c_str' in '__str', which is of non-class type 'const int'
4115 | { return __gnu_cxx::__stoa<long, int>(&std::wcstol, "stoi", __str.c_str(),
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:4119:14: error: 'wstring' does not name a type; did you mean 'stdin'?
4119 | stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4119:3: error: redefinition of 'long int std::__cxx11::stol(const int&, size_t*, int)'
4119 | stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
| ^~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3976:3: note: 'long int std::__cxx11::stol(const int&, size_t*, int)' previously defined here
3976 | stol(const string& __str, size_t* __idx = 0, int __base = 10)
| ^~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'long int std::__cxx11::stol(const int&, size_t*, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:4120:58: error: request for member 'c_str' in '__str', which is of non-class type 'const int'
4120 | { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(),
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:4124:15: error: 'wstring' does not name a type; did you mean 'stdin'?
4124 | stoul(const wstring& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4124:3: error: redefinition of 'long unsigned int std::__cxx11::stoul(const int&, size_t*, int)'
4124 | stoul(const wstring& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3981:3: note: 'long unsigned int std::__cxx11::stoul(const int&, size_t*, int)' previously defined here
3981 | stoul(const string& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'long unsigned int std::__cxx11::stoul(const int&, size_t*, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:4125:60: error: request for member 'c_str' in '__str', which is of non-class type 'const int'
4125 | { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(),
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:4129:15: error: 'wstring' does not name a type; did you mean 'stdin'?
4129 | stoll(const wstring& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4129:3: error: redefinition of 'long long int std::__cxx11::stoll(const int&, size_t*, int)'
4129 | stoll(const wstring& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3986:3: note: 'long long int std::__cxx11::stoll(const int&, size_t*, int)' previously defined here
3986 | stoll(const string& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'long long int std::__cxx11::stoll(const int&, size_t*, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:4130:60: error: request for member 'c_str' in '__str', which is of non-class type 'const int'
4130 | { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(),
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:4134:16: error: 'wstring' does not name a type; did you mean 'stdin'?
4134 | stoull(const wstring& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4134:3: error: redefinition of 'long long unsigned int std::__cxx11::stoull(const int&, size_t*, int)'
4134 | stoull(const wstring& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3991:3: note: 'long long unsigned int std::__cxx11::stoull(const int&, size_t*, int)' previously defined here
3991 | stoull(const string& __str, size_t* __idx = 0, int __base = 10)
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'long long unsigned int std::__cxx11::stoull(const int&, size_t*, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:4135:62: error: request for member 'c_str' in '__str', which is of non-class type 'const int'
4135 | { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(),
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:4140:14: error: 'wstring' does not name a type; did you mean 'stdin'?
4140 | stof(const wstring& __str, size_t* __idx = 0)
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4140:3: error: redefinition of 'float std::__cxx11::stof(const int&, size_t*)'
4140 | stof(const wstring& __str, size_t* __idx = 0)
| ^~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3997:3: note: 'float std::__cxx11::stof(const int&, size_t*)' previously defined here
3997 | stof(const string& __str, size_t* __idx = 0)
| ^~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'float std::__cxx11::stof(const int&, size_t*':
/usr/local/include/c++/12.1.0/bits/basic_string.h:4141:58: error: request for member 'c_str' in '__str', which is of non-class type 'const int'
4141 | { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:4144:14: error: 'wstring' does not name a type; did you mean 'stdin'?
4144 | stod(const wstring& __str, size_t* __idx = 0)
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4144:3: error: redefinition of 'double std::__cxx11::stod(const int&, size_t*)'
4144 | stod(const wstring& __str, size_t* __idx = 0)
| ^~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:4001:3: note: 'double std::__cxx11::stod(const int&, size_t*)' previously defined here
4001 | stod(const string& __str, size_t* __idx = 0)
| ^~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'double std::__cxx11::stod(const int&, size_t*)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:4145:58: error: request for member 'c_str' in '__str', which is of non-class type 'const int'
4145 | { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); }
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:4148:15: error: 'wstring' does not name a type; did you mean 'stdin'?
4148 | stold(const wstring& __str, size_t* __idx = 0)
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4148:3: error: redefinition of 'long double std::__cxx11::stold(const int&, size_t*)'
4148 | stold(const wstring& __str, size_t* __idx = 0)
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:4005:3: note: 'long double std::__cxx11::stold(const int&, size_t*)' previously defined here
4005 | stold(const string& __str, size_t* __idx = 0)
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: In function 'long double std::__cxx11::stold(const int&, size_t*)':
/usr/local/include/c++/12.1.0/bits/basic_string.h:4149:60: error: request for member 'c_str' in '__str', which is of non-class type 'const int'
4149 | { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.h:4153:10: error: 'wstring' does not name a type; did you mean 'stdin'?
4153 | inline wstring
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4158:10: error: 'wstring' does not name a type; did you mean 'stdin'?
4158 | inline wstring
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4164:10: error: 'wstring' does not name a type; did you mean 'stdin'?
4164 | inline wstring
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4169:10: error: 'wstring' does not name a type; did you mean 'stdin'?
4169 | inline wstring
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4175:10: error: 'wstring' does not name a type; did you mean 'stdin'?
4175 | inline wstring
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4181:10: error: 'wstring' does not name a type; did you mean 'stdin'?
4181 | inline wstring
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4187:10: error: 'wstring' does not name a type; did you mean 'stdin'?
4187 | inline wstring
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4196:10: error: 'wstring' does not name a type; did you mean 'stdin'?
4196 | inline wstring
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4205:10: error: 'wstring' does not name a type; did you mean 'stdin'?
4205 | inline wstring
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4235:17: error: 'string' was not declared in this scope; did you mean 'stdin'?
4235 | struct hash<string>
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4235:23: error: template argument 1 is invalid
4235 | struct hash<string>
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:4236:34: error: 'string' was not declared in this scope; did you mean 'stdin'?
4236 | : public __hash_base<size_t, string>
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4236:40: error: template argument 2 is invalid
4236 | : public __hash_base<size_t, string>
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:4244:32: error: 'string' was not declared in this scope; did you mean 'stdin'?
4244 | struct __is_fast_hash<hash<string>> : std::false_type
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.h:4244:32: error: template argument 1 is invalid
/usr/local/include/c++/12.1.0/bits/basic_string.h:4244:38: error: template argument 1 is invalid
4244 | struct __is_fast_hash<hash<string>> : std::false_type
| ^~
/usr/local/include/c++/12.1.0/bits/basic_string.h:4249:17: error: 'wstring' was not declared in this scope
4249 | struct hash<wstring>
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:4249:24: error: template argument 1 is invalid
4249 | struct hash<wstring>
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:4250:34: error: 'wstring' was not declared in this scope
4250 | : public __hash_base<size_t, wstring>
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:4250:41: error: template argument 2 is invalid
4250 | : public __hash_base<size_t, wstring>
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:4259:32: error: 'wstring' was not declared in this scope
4259 | struct __is_fast_hash<hash<wstring>> : std::false_type
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:4259:32: error: template argument 1 is invalid
/usr/local/include/c++/12.1.0/bits/basic_string.h:4259:39: error: template argument 1 is invalid
4259 | struct __is_fast_hash<hash<wstring>> : std::false_type
| ^~
/usr/local/include/c++/12.1.0/bits/basic_string.h:4266:17: error: 'u8string' was not declared in this scope
4266 | struct hash<u8string>
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:4266:25: error: template argument 1 is invalid
4266 | struct hash<u8string>
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:4267:34: error: 'u8string' was not declared in this scope
4267 | : public __hash_base<size_t, u8string>
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:4267:42: error: template argument 2 is invalid
4267 | : public __hash_base<size_t, u8string>
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:4276:32: error: 'u8string' was not declared in this scope
4276 | struct __is_fast_hash<hash<u8string>> : std::false_type
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:4276:32: error: template argument 1 is invalid
/usr/local/include/c++/12.1.0/bits/basic_string.h:4276:40: error: template argument 1 is invalid
4276 | struct __is_fast_hash<hash<u8string>> : std::false_type
| ^~
/usr/local/include/c++/12.1.0/bits/basic_string.h:4282:17: error: 'u16string' was not declared in this scope; did you mean 'u16string_view'?
4282 | struct hash<u16string>
| ^~~~~~~~~
| u16string_view
/usr/local/include/c++/12.1.0/bits/basic_string.h:4282:26: error: template argument 1 is invalid
4282 | struct hash<u16string>
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:4283:34: error: 'u16string' was not declared in this scope; did you mean 'u16string_view'?
4283 | : public __hash_base<size_t, u16string>
| ^~~~~~~~~
| u16string_view
/usr/local/include/c++/12.1.0/bits/basic_string.h:4283:43: error: template argument 2 is invalid
4283 | : public __hash_base<size_t, u16string>
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:4292:32: error: 'u16string' was not declared in this scope; did you mean 'u16string_view'?
4292 | struct __is_fast_hash<hash<u16string>> : std::false_type
| ^~~~~~~~~
| u16string_view
/usr/local/include/c++/12.1.0/bits/basic_string.h:4292:32: error: template argument 1 is invalid
/usr/local/include/c++/12.1.0/bits/basic_string.h:4292:41: error: template argument 1 is invalid
4292 | struct __is_fast_hash<hash<u16string>> : std::false_type
| ^~
/usr/local/include/c++/12.1.0/bits/basic_string.h:4297:17: error: 'u32string' was not declared in this scope; did you mean 'u32string_view'?
4297 | struct hash<u32string>
| ^~~~~~~~~
| u32string_view
/usr/local/include/c++/12.1.0/bits/basic_string.h:4297:26: error: template argument 1 is invalid
4297 | struct hash<u32string>
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:4298:34: error: 'u32string' was not declared in this scope; did you mean 'u32string_view'?
4298 | : public __hash_base<size_t, u32string>
| ^~~~~~~~~
| u32string_view
/usr/local/include/c++/12.1.0/bits/basic_string.h:4298:43: error: template argument 2 is invalid
4298 | : public __hash_base<size_t, u32string>
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.h:4307:32: error: 'u32string' was not declared in this scope; did you mean 'u32string_view'?
4307 | struct __is_fast_hash<hash<u32string>> : std::false_type
| ^~~~~~~~~
| u32string_view
/usr/local/include/c++/12.1.0/bits/basic_string.h:4307:32: error: template argument 1 is invalid
/usr/local/include/c++/12.1.0/bits/basic_string.h:4307:41: error: template argument 1 is invalid
4307 | struct __is_fast_hash<hash<u32string>> : std::false_type
| ^~
/usr/local/include/c++/12.1.0/bits/basic_string.h:4328:12: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
4328 | inline basic_string<char>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:4333:12: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
4333 | inline basic_string<wchar_t>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:4339:12: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
4339 | inline basic_string<char8_t>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:4345:12: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
4345 | inline basic_string<char16_t>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:4350:12: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
4350 | inline basic_string<char32_t>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.h:4367:40: error: 'basic_string' is not a member of 'std'
4367 | struct _Never_valueless_alt<std::basic_string<_Tp, _Traits, _Alloc>>
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3962:1: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
3961 | #include <bits/charconv.h>
+++ |+#include <string>
3962 |
/usr/local/include/c++/12.1.0/bits/basic_string.h:4367:67: error: wrong number of template arguments (3, should be 1)
4367 | struct _Never_valueless_alt<std::basic_string<_Tp, _Traits, _Alloc>>
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:4362:31: note: provided for 'template<class> struct std::__detail::__variant::_Never_valueless_alt'
4362 | template<typename> struct _Never_valueless_alt; // see <variant>
| ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:4367:73: error: expected unqualified-id before '>' token
4367 | struct _Never_valueless_alt<std::basic_string<_Tp, _Traits, _Alloc>>
| ^~
In file included from /usr/local/include/c++/12.1.0/string:54:
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:53:20: error: expected nested-name-specifier before 'basic_string'
53 | const typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:53:32: error: expected initializer before '<' token
53 | const typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:59:17: error: expected initializer before '<' token
59 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:133:14: error: expected nested-name-specifier before 'basic_string'
133 | typename basic_string<_CharT, _Traits, _Alloc>::pointer
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:133:26: error: expected initializer before '<' token
133 | typename basic_string<_CharT, _Traits, _Alloc>::pointer
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:166:7: error: too many template-parameter-lists
166 | basic_string<_CharT, _Traits, _Alloc>::
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:217:7: error: too many template-parameter-lists
217 | basic_string<_CharT, _Traits, _Alloc>::
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:253:17: error: expected initializer before '<' token
253 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:273:17: error: expected initializer before '<' token
273 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:300:17: error: expected initializer before '<' token
300 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:321:17: error: expected initializer before '<' token
321 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:346:17: error: expected initializer before '<' token
346 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:360:17: error: expected initializer before '<' token
360 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:396:17: error: expected initializer before '<' token
396 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:408:5: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
408 | basic_string<_CharT, _Traits, _Alloc>&
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:429:7: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
429 | basic_string<_CharT, _Traits, _Alloc>&
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:445:5: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
445 | basic_string<_CharT, _Traits, _Alloc>&
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:475:5: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
475 | basic_string<_CharT, _Traits, _Alloc>&
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:547:14: error: expected nested-name-specifier before 'basic_string'
547 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:547:26: error: expected initializer before '<' token
547 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:564:5: error: too many template-parameter-lists
564 | basic_string<_CharT, _Traits, _Alloc>::
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:605:5: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
605 | basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:626:5: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
626 | basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:645:14: error: expected nested-name-specifier before 'basic_string'
645 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:645:26: error: expected initializer before '<' token
645 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:682:14: error: expected nested-name-specifier before 'basic_string'
682 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:682:26: error: expected initializer before '<' token
682 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:701:14: error: expected nested-name-specifier before 'basic_string'
701 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:701:26: error: expected initializer before '<' token
701 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:724:14: error: expected nested-name-specifier before 'basic_string'
724 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:724:26: error: expected initializer before '<' token
724 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:742:14: error: expected nested-name-specifier before 'basic_string'
742 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:742:26: error: expected initializer before '<' token
742 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:759:14: error: expected nested-name-specifier before 'basic_string'
759 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:759:26: error: expected initializer before '<' token
759 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:782:14: error: expected nested-name-specifier before 'basic_string'
782 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:782:26: error: expected initializer before '<' token
782 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:796:14: error: expected nested-name-specifier before 'basic_string'
796 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:796:26: error: expected initializer before '<' token
796 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:808:14: error: expected nested-name-specifier before 'basic_string'
808 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:808:26: error: expected initializer before '<' token
808 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:831:14: error: expected nested-name-specifier before 'basic_string'
831 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:831:26: error: expected initializer before '<' token
831 | typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:853:17: error: expected initializer before '<' token
853 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:869:17: error: expected initializer before '<' token
869 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:888:17: error: expected initializer before '<' token
888 | basic_string<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:904:18: error: expected initializer before '<' token
904 | basic_string <_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:921:18: error: expected initializer before '<' token
921 | basic_string <_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:941:16: error: 'basic_string' has not been declared
941 | basic_string<_CharT, _Traits, _Alloc>& __str)
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:941:28: error: expected ',' or '...' before '<' token
941 | basic_string<_CharT, _Traits, _Alloc>& __str)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc: In function 'std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, int)':
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:944:15: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
944 | typedef basic_string<_CharT, _Traits, _Alloc> __string_type;
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:947:24: error: '__string_type' has not been declared
947 | typedef typename __string_type::size_type __size_type;
| ^~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:959:15: error: '__str' was not declared in this scope
959 | __str.erase();
| ^~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc: At global scope:
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1013:13: error: 'basic_string' has not been declared
1013 | basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim)
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1013:25: error: expected ',' or '...' before '<' token
1013 | basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim)
| ^
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1012:5: error: redefinition of 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int)'
1012 | getline(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3923:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int)' previously declared here
3923 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1092:38: error: 'string' has not been declared
1092 | operator>>(basic_istream<char>&, string&);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1092:5: error: template-id 'operator>><>' for 'std::basic_istream<char>& std::operator>>(basic_istream<char>&, int&)' does not match any template declaration
1092 | operator>>(basic_istream<char>&, string&);
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:940:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, int)'
940 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/cstddef:128:5: note: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
128 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1095:44: error: 'string' does not name a type; did you mean 'stdin'?
1095 | operator<<(basic_ostream<char>&, const string&);
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1095:5: error: template-id 'operator<< <>' for 'std::basic_ostream<char>& std::operator<<(basic_ostream<char>&, const int&)' does not match any template declaration
1095 | operator<<(basic_ostream<char>&, const string&);
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3883:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, int)'
3883 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
In file included from /usr/local/include/c++/12.1.0/bits/basic_string.h:48:
/usr/local/include/c++/12.1.0/string_view:672:5: note: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
672 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/cstddef:123:5: note: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
123 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1098:35: error: 'string' has not been declared
1098 | getline(basic_istream<char>&, string&, char);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1098:5: error: template-id 'getline<>' for 'std::basic_istream<char>& std::getline(basic_istream<char>&, int&, char)' does not match any template declaration
1098 | getline(basic_istream<char>&, string&, char);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3931:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, int)'
3931 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3923:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int)'
3923 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1101:35: error: 'string' has not been declared
1101 | getline(basic_istream<char>&, string&);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1101:5: error: template-id 'getline<>' for 'std::basic_istream<char>& std::getline(basic_istream<char>&, int&)' does not match any template declaration
1101 | getline(basic_istream<char>&, string&);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3931:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, int)'
3931 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3923:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int)'
3923 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1113:41: error: 'wstring' has not been declared
1113 | operator>>(basic_istream<wchar_t>&, wstring&);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1113:5: error: template-id 'operator>><>' for 'std::basic_istream<wchar_t>& std::operator>>(basic_istream<wchar_t>&, int&)' does not match any template declaration
1113 | operator>>(basic_istream<wchar_t>&, wstring&);
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:940:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, int)'
940 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/cstddef:128:5: note: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
128 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1116:47: error: 'wstring' does not name a type; did you mean 'stdin'?
1116 | operator<<(basic_ostream<wchar_t>&, const wstring&);
| ^~~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1116:5: error: template-id 'operator<< <>' for 'std::basic_ostream<wchar_t>& std::operator<<(basic_ostream<wchar_t>&, const int&)' does not match any template declaration
1116 | operator<<(basic_ostream<wchar_t>&, const wstring&);
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3883:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, int)'
3883 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/string_view:672:5: note: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
672 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/cstddef:123:5: note: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
123 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1119:38: error: 'wstring' has not been declared
1119 | getline(basic_istream<wchar_t>&, wstring&, wchar_t);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1119:5: error: template-id 'getline<>' for 'std::basic_istream<wchar_t>& std::getline(basic_istream<wchar_t>&, int&, wchar_t)' does not match any template declaration
1119 | getline(basic_istream<wchar_t>&, wstring&, wchar_t);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3931:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, int)'
3931 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3923:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int)'
3923 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1122:38: error: 'wstring' has not been declared
1122 | getline(basic_istream<wchar_t>&, wstring&);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.tcc:1122:5: error: template-id 'getline<>' for 'std::basic_istream<wchar_t>& std::getline(basic_istream<wchar_t>&, int&)' does not match any template declaration
1122 | getline(basic_istream<wchar_t>&, wstring&);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3931:5: note: candidates are: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&&, int)'
3931 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3923:5: note: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(basic_istream<_CharT, _Traits>&, int)'
3923 | getline(basic_istream<_CharT, _Traits>& __is,
| ^~~~~~~
/usr/local/include/c++/12.1.0/string:63:33: error: 'basic_string' in namespace 'std' does not name a template type
63 | using basic_string = std::basic_string<_CharT, _Traits,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/string:55:1: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
54 | #include <bits/basic_string.tcc>
+++ |+#include <string>
55 |
/usr/local/include/c++/12.1.0/string:65:23: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
65 | using string = basic_string<char>;
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/string:67:23: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
67 | using u8string = basic_string<char8_t>;
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/string:69:23: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
69 | using u16string = basic_string<char16_t>;
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/string:70:23: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
70 | using u32string = basic_string<char32_t>;
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/string:71:23: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
71 | using wstring = basic_string<wchar_t>;
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/string:84:22: error: 'string' is not a member of 'std::pmr'
84 | struct hash<pmr::string>
| ^~~~~~
/usr/local/include/c++/12.1.0/string:84:28: error: template argument 1 is invalid
84 | struct hash<pmr::string>
| ^
/usr/local/include/c++/12.1.0/string:85:38: error: 'string' is not a member of 'std::pmr'
85 | : public __hash_string_base<pmr::string>
| ^~~~~~
/usr/local/include/c++/12.1.0/string:85:44: error: template argument 1 is invalid
85 | : public __hash_string_base<pmr::string>
| ^
/usr/local/include/c++/12.1.0/string:89:22: error: 'u8string' is not a member of 'std::pmr'
89 | struct hash<pmr::u8string>
| ^~~~~~~~
/usr/local/include/c++/12.1.0/string:89:30: error: template argument 1 is invalid
89 | struct hash<pmr::u8string>
| ^
/usr/local/include/c++/12.1.0/string:90:38: error: 'u8string' is not a member of 'std::pmr'
90 | : public __hash_string_base<pmr::u8string>
| ^~~~~~~~
/usr/local/include/c++/12.1.0/string:90:46: error: template argument 1 is invalid
90 | : public __hash_string_base<pmr::u8string>
| ^
/usr/local/include/c++/12.1.0/string:94:22: error: 'u16string' is not a member of 'std::pmr'
94 | struct hash<pmr::u16string>
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/string:94:31: error: template argument 1 is invalid
94 | struct hash<pmr::u16string>
| ^
/usr/local/include/c++/12.1.0/string:95:38: error: 'u16string' is not a member of 'std::pmr'
95 | : public __hash_string_base<pmr::u16string>
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/string:95:47: error: template argument 1 is invalid
95 | : public __hash_string_base<pmr::u16string>
| ^
/usr/local/include/c++/12.1.0/string:98:22: error: 'u32string' is not a member of 'std::pmr'
98 | struct hash<pmr::u32string>
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/string:98:31: error: template argument 1 is invalid
98 | struct hash<pmr::u32string>
| ^
/usr/local/include/c++/12.1.0/string:99:38: error: 'u32string' is not a member of 'std::pmr'
99 | : public __hash_string_base<pmr::u32string>
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/string:99:47: error: template argument 1 is invalid
99 | : public __hash_string_base<pmr::u32string>
| ^
/usr/local/include/c++/12.1.0/string:102:22: error: 'wstring' is not a member of 'std::pmr'
102 | struct hash<pmr::wstring>
| ^~~~~~~
/usr/local/include/c++/12.1.0/string:102:29: error: template argument 1 is invalid
102 | struct hash<pmr::wstring>
| ^
/usr/local/include/c++/12.1.0/string:103:38: error: 'wstring' is not a member of 'std::pmr'
103 | : public __hash_string_base<pmr::wstring>
| ^~~~~~~
/usr/local/include/c++/12.1.0/string:103:45: error: template argument 1 is invalid
103 | : public __hash_string_base<pmr::wstring>
| ^
/usr/local/include/c++/12.1.0/string:120:21: error: expected nested-name-specifier before 'basic_string'
120 | inline typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/string:120:33: error: expected initializer before '<' token
120 | inline typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/string:134:21: error: expected nested-name-specifier before 'basic_string'
134 | inline typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/string:134:33: error: expected initializer before '<' token
134 | inline typename basic_string<_CharT, _Traits, _Alloc>::size_type
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.h:163:23: error: 'string' in namespace 'std' does not name a type
163 | locale(const std::string& __s) : locale(__s.c_str()) { }
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.h:41:1: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
40 | #include <string>
+++ |+#include <string>
41 | #include <ext/atomicity.h>
/usr/local/include/c++/12.1.0/bits/locale_classes.h:177:45: error: 'string' in namespace 'std' does not name a type
177 | locale(const locale& __base, const std::string& __s, category __cat)
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.h:177:40: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
177 | locale(const locale& __base, const std::string& __s, category __cat)
| ^~~
/usr/local/include/c++/12.1.0/bits/locale_classes.h:244:5: error: 'string' does not name a type; did you mean 'stdin'?
244 | string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_classes.h:286:24: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
286 | operator()(const basic_string<_Char, _Traits, _Alloc>& __s1,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/locale_classes.h:286:36: error: expected ',' or '...' before '<' token
286 | operator()(const basic_string<_Char, _Traits, _Alloc>& __s1,
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.h: In constructor 'std::locale::locale(const int&)':
/usr/local/include/c++/12.1.0/bits/locale_classes.h:163:49: error: request for member 'c_str' in '__s', which is of non-class type 'const int'
163 | locale(const std::string& __s) : locale(__s.c_str()) { }
| ^~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.h: In constructor 'std::locale::locale(const std::locale&, const int&, category)':
/usr/local/include/c++/12.1.0/bits/locale_classes.h:178:26: error: request for member 'c_str' in '__s', which is of non-class type 'const int'
178 | : locale(__base, __s.c_str(), __cat) { }
| ^~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.h: At global scope:
/usr/local/include/c++/12.1.0/bits/locale_classes.h:799:23: error: expected initializer before '<' token
799 | locale::id collate<_CharT>::id;
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.h:804:12: error: expected initializer before '<' token
804 | collate<char>::_M_compare(const char*, const char*) const throw();
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.h:808:12: error: expected initializer before '<' token
808 | collate<char>::_M_transform(char*, const char*, size_t) const throw();
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.h:813:12: error: expected initializer before '<' token
813 | collate<wchar_t>::_M_compare(const wchar_t*, const wchar_t*) const throw();
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.h:817:12: error: expected initializer before '<' token
817 | collate<wchar_t>::_M_transform(wchar_t*, const wchar_t*, size_t) const throw();
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.h:845:28: error: 'string' does not name a type; did you mean 'stdin'?
845 | collate_byname(const string& __s, size_t __refs = 0)
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_classes.h: In constructor 'std::__cxx11::collate_byname<_CharT>::collate_byname(const int&, size_t)':
/usr/local/include/c++/12.1.0/bits/locale_classes.h:846:28: error: request for member 'c_str' in '__s', which is of non-class type 'const int'
846 | : collate_byname(__s.c_str(), __refs) { }
| ^~~~~
In file included from /usr/local/include/c++/12.1.0/bits/locale_classes.h:857:
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc: At global scope:
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:81:22: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
81 | operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1,
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:81:34: error: expected ',' or '...' before '<' token
81 | operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1,
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc: In member function 'bool std::locale::operator()(int) const':
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:84:20: error: 'collate' in namespace 'std' does not name a template type
84 | typedef std::collate<_CharT> __collate_type;
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:85:13: error: '__collate_type' does not name a type; did you mean '__false_type'?
85 | const __collate_type& __collate = use_facet<__collate_type>(*this);
| ^~~~~~~~~~~~~~
| __false_type
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:86:15: error: '__collate' was not declared in this scope; did you mean 'collate'?
86 | return (__collate.compare(__s1.data(), __s1.data() + __s1.length(),
| ^~~~~~~~~
| collate
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:86:33: error: '__s1' was not declared in this scope
86 | return (__collate.compare(__s1.data(), __s1.data() + __s1.length(),
| ^~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:87:33: error: '__s2' was not declared in this scope
87 | __s2.data(), __s2.data() + __s2.length()) < 0);
| ^~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc: At global scope:
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:149:12: error: expected initializer before '<' token
149 | collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw ()
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:155:12: error: expected initializer before '<' token
155 | collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw ()
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:160:12: error: expected initializer before '<' token
160 | collate<_CharT>::
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:198:14: error: expected nested-name-specifier before 'collate'
198 | typename collate<_CharT>::string_type
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:198:21: error: expected initializer before '<' token
198 | typename collate<_CharT>::string_type
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:255:12: error: expected initializer before '<' token
255 | collate<_CharT>::
| ^
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:270:25: error: 'collate' is not a class template
270 | extern template class collate<char>;
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:270:25: error: explicit instantiation of non-template type 'std::collate'
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:271:25: error: 'collate_byname' is not a class template
271 | extern template class collate_byname<char>;
| ^~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:271:25: error: explicit instantiation of non-template type 'std::collate_byname'
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:274:11: error: 'std::collate' is not a template
274 | const collate<char>&
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:275:15: error: 'std::collate' is not a template
275 | use_facet<collate<char> >(const locale&);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:279:15: error: 'std::collate' is not a template
279 | has_facet<collate<char> >(const locale&);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:282:25: error: 'collate' is not a class template
282 | extern template class collate<wchar_t>;
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:282:25: error: explicit instantiation of non-template type 'std::collate'
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:283:25: error: 'collate_byname' is not a class template
283 | extern template class collate_byname<wchar_t>;
| ^~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:283:25: error: explicit instantiation of non-template type 'std::collate_byname'
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:286:11: error: 'std::collate' is not a template
286 | const collate<wchar_t>&
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:287:15: error: 'std::collate' is not a template
287 | use_facet<collate<wchar_t> >(const locale&);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_classes.tcc:291:15: error: 'std::collate' is not a template
291 | has_facet<collate<wchar_t> >(const locale&);
| ^~~~~~~
In file included from /usr/local/include/c++/12.1.0/system_error:41,
from /usr/local/include/c++/12.1.0/bits/ios_base.h:46:
/usr/local/include/c++/12.1.0/stdexcept:56:29: error: 'string' in namespace 'std' does not name a type
56 | __cow_string(const std::string&);
| ^~~~~~
/usr/local/include/c++/12.1.0/stdexcept:1:1: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
+++ |+#include <string>
1 | // Standard exception classes -*- C++ -*-
/usr/local/include/c++/12.1.0/stdexcept:67:11: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
67 | typedef basic_string<char> __sso_string;
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/stdexcept:120:23: error: 'string' does not name a type; did you mean 'stdin'?
120 | logic_error(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/stdexcept:156:33: error: 'string' does not name a type; did you mean 'stdin'?
156 | explicit domain_error(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/stdexcept:171:37: error: 'string' does not name a type; did you mean 'stdin'?
171 | explicit invalid_argument(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/stdexcept:187:33: error: 'string' does not name a type; did you mean 'stdin'?
187 | explicit length_error(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/stdexcept:203:33: error: 'string' does not name a type; did you mean 'stdin'?
203 | explicit out_of_range(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/stdexcept:226:25: error: 'string' does not name a type; did you mean 'stdin'?
226 | runtime_error(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/stdexcept:261:32: error: 'string' does not name a type; did you mean 'stdin'?
261 | explicit range_error(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/stdexcept:276:35: error: 'string' does not name a type; did you mean 'stdin'?
276 | explicit overflow_error(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/stdexcept:291:36: error: 'string' does not name a type; did you mean 'stdin'?
291 | explicit underflow_error(const string& __arg) _GLIBCXX_TXN_SAFE;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/system_error:122:13: error: 'string' does not name a type; did you mean 'stdin'?
122 | virtual string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/system_error:238:5: error: 'string' does not name a type; did you mean 'stdin'?
238 | string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/system_error:337:5: error: 'string' does not name a type; did you mean 'stdin'?
337 | string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/system_error:455:41: error: 'string' does not name a type; did you mean 'stdin'?
455 | system_error(error_code __ec, const string& __what)
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/system_error:468:63: error: 'string' does not name a type; did you mean 'stdin'?
468 | system_error(int __v, const error_category& __ecat, const string& __what)
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/system_error: In constructor 'std::system_error::system_error(std::error_code)':
/usr/local/include/c++/12.1.0/system_error:453:26: error: 'class std::error_code' has no member named 'message'
453 | : runtime_error(__ec.message()), _M_code(__ec) { }
| ^~~~~~~
/usr/local/include/c++/12.1.0/system_error: In constructor 'std::system_error::system_error(std::error_code, const int&)':
/usr/local/include/c++/12.1.0/system_error:456:42: error: 'class std::error_code' has no member named 'message'
456 | : runtime_error(__what + ": " + __ec.message()), _M_code(__ec) { }
| ^~~~~~~
/usr/local/include/c++/12.1.0/system_error: In constructor 'std::system_error::system_error(std::error_code, const char*)':
/usr/local/include/c++/12.1.0/system_error:459:43: error: 'class std::error_code' has no member named 'message'
459 | : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { }
| ^~~~~~~
/usr/local/include/c++/12.1.0/system_error: In constructor 'std::system_error::system_error(int, const std::_V2::error_category&)':
/usr/local/include/c++/12.1.0/system_error:465:45: error: 'class std::error_code' has no member named 'message'
465 | : runtime_error(error_code(__v, __ecat).message()),
| ^~~~~~~
/usr/local/include/c++/12.1.0/system_error: In constructor 'std::system_error::system_error(int, const std::_V2::error_category&, const int&)':
/usr/local/include/c++/12.1.0/system_error:469:61: error: 'class std::error_code' has no member named 'message'
469 | : runtime_error(__what + ": " + error_code(__v, __ecat).message()),
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/ios_base.h: At global scope:
/usr/local/include/c++/12.1.0/bits/ios_base.h:260:21: error: 'string' does not name a type; did you mean 'stdin'?
260 | failure(const string& __str);
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/ios_base.h:264:21: error: 'string' does not name a type; did you mean 'stdin'?
264 | failure(const string&, const error_code&);
| ^~~~~~
| stdin
In file included from /usr/local/include/c++/12.1.0/ios:43:
/usr/local/include/c++/12.1.0/streambuf:174:20: error: 'basic_string' has not been declared
174 | basic_string<_CharT2, _Traits2, _Alloc>&);
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/streambuf:174:32: error: expected ',' or '...' before '<' token
174 | basic_string<_CharT2, _Traits2, _Alloc>&);
| ^
/usr/local/include/c++/12.1.0/streambuf:179:17: error: 'basic_string' has not been declared
179 | basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2);
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/streambuf:179:29: error: expected ',' or '...' before '<' token
179 | basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2);
| ^
In file included from /usr/local/include/c++/12.1.0/bits/basic_ios.h:37,
from /usr/local/include/c++/12.1.0/ios:44:
/usr/local/include/c++/12.1.0/bits/locale_facets.h:677:17: error: 'basic_string' was not declared in this scope; did you mean 'std::__cxx11::basic_string'?
677 | class ctype<basic_string<_CharT, _Traits, _Alloc> >;
| ^~~~~~~~~~~~
| std::__cxx11::basic_string
/usr/local/include/c++/12.1.0/bits/stringfwd.h:72:11: note: 'std::__cxx11::basic_string' declared here
72 | class basic_string;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.h:677:53: error: wrong number of template arguments (3, should be 1)
677 | class ctype<basic_string<_CharT, _Traits, _Alloc> >;
| ^
In file included from /usr/local/include/c++/12.1.0/ios:41:
/usr/local/include/c++/12.1.0/bits/localefwd.h:127:11: note: provided for 'template<class _CharT> class std::ctype'
127 | class ctype;
| ^~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.h:677:55: error: expected unqualified-id before '>' token
677 | class ctype<basic_string<_CharT, _Traits, _Alloc> >;
| ^
/usr/local/include/c++/12.1.0/bits/locale_facets.h:1496:26: error: 'string' does not name a type; did you mean 'stdin'?
1496 | ctype_byname(const string& __s, size_t __refs = 0)
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.h: In constructor 'std::ctype_byname<_CharT>::ctype_byname(const int&, size_t)':
/usr/local/include/c++/12.1.0/bits/locale_facets.h:1497:26: error: request for member 'c_str' in '__s', which is of non-class type 'const int'
1497 | : ctype_byname(__s.c_str(), __refs) { }
| ^~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.h: At global scope:
/usr/local/include/c++/12.1.0/bits/locale_facets.h:1515:26: error: 'string' does not name a type; did you mean 'stdin'?
1515 | ctype_byname(const string& __s, size_t __refs = 0);
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.h:1533:26: error: 'string' does not name a type; did you mean 'stdin'?
1533 | ctype_byname(const string& __s, size_t __refs = 0);
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.h:1787:7: error: 'string' does not name a type; did you mean 'stdin'?
1787 | string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.h:1855:15: error: 'string' does not name a type; did you mean 'stdin'?
1855 | virtual string
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.h:1933:29: error: 'string' does not name a type; did you mean 'stdin'?
1933 | numpunct_byname(const string& __s, size_t __refs = 0)
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.h: In constructor 'std::__cxx11::numpunct_byname<_CharT>::numpunct_byname(const int&, size_t)':
/usr/local/include/c++/12.1.0/bits/locale_facets.h:1934:29: error: request for member 'c_str' in '__s', which is of non-class type 'const int'
1934 | : numpunct_byname(__s.c_str(), __refs) { }
| ^~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.h: At global scope:
/usr/local/include/c++/12.1.0/bits/locale_facets.h:2158:24: error: 'string' has not been declared
2158 | string&) const;
| ^~~~~~
In file included from /usr/local/include/c++/12.1.0/bits/locale_facets.h:2687:
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: In member function 'const std::__numpunct_cache<_CharT>* std::__use_cache<std::__numpunct_cache<_CharT> >::operator()(const std::locale&) const':
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:55:28: error: 'numpunct' was not declared in this scope; did you mean 'std::__cxx11::numpunct'?
55 | const size_t __i = numpunct<_CharT>::id._M_id();
| ^~~~~~~~
| std::__cxx11::numpunct
/usr/local/include/c++/12.1.0/bits/localefwd.h:162:35: note: 'std::__cxx11::numpunct' declared here
162 | template<typename _CharT> class numpunct;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:55:43: error: expected primary-expression before '>' token
55 | const size_t __i = numpunct<_CharT>::id._M_id();
| ^
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:55:46: error: '::id' has not been declared
55 | const size_t __i = numpunct<_CharT>::id._M_id();
| ^~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: In member function 'void std::__numpunct_cache<_CharT>::_M_cache(const std::locale&)':
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:80:13: error: 'numpunct' does not name a type
80 | const numpunct<_CharT>& __np = use_facet<numpunct<_CharT> >(__loc);
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:87:17: error: 'string' does not name a type; did you mean 'stdin'?
87 | const string& __g = __np.grouping();
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:88:30: error: '__g' was not declared in this scope; did you mean '__lg'?
88 | _M_grouping_size = __g.size();
| ^~~
| __lg
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:96:17: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
96 | const basic_string<_CharT>& __tn = __np.truename();
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:97:30: error: '__tn' was not declared in this scope
97 | _M_truename_size = __tn.size();
| ^~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:101:17: error: 'basic_string' does not name a type; did you mean 'basic_ostream'?
101 | const basic_string<_CharT>& __fn = __np.falsename();
| ^~~~~~~~~~~~
| basic_ostream
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:102:31: error: '__fn' was not declared in this scope
102 | _M_falsename_size = __fn.size();
| ^~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:106:30: error: '__np' was not declared in this scope
106 | _M_decimal_point = __np.decimal_point();
| ^~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: At global scope:
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:141:27: error: 'string' does not name a type; did you mean 'stdin'?
141 | const string& __grouping_tmp) throw ();
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:150:48: error: 'string' has not been declared
150 | ios_base::iostate& __err, string& __xtrc) const
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: In member function '_InIter std::num_get<_CharT, _InIter>::_M_extract_float(_InIter, _InIter, std::ios_base&, std::ios_base::iostate&, int&) const':
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:209:7: error: 'string' was not declared in this scope; did you mean 'stdin'?
209 | string __found_grouping;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:211:9: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
211 | __found_grouping.reserve(32);
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:275:25: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
275 | __found_grouping += static_cast<char>(__sep_pos);
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:282:32: error: request for member 'clear' in '__xtrc', which is of non-class type 'int'
282 | __xtrc.clear();
| ^~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:296:25: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
296 | if (__found_grouping.size())
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:319:25: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
319 | if (__found_grouping.size() && !__found_dec)
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:355:11: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
355 | if (__found_grouping.size())
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: In member function '_InIter std::num_get<_CharT, _InIter>::_M_extract_int(_InIter, _InIter, std::ios_base&, std::ios_base::iostate&, _ValueT&) const':
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:467:9: error: 'string' was not declared in this scope; did you mean 'stdin'?
467 | string __found_grouping;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:469:11: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
469 | __found_grouping.reserve(32);
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:515:23: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
515 | __found_grouping += static_cast<char>(__sep_pos);
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:555:13: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
555 | if (__found_grouping.size())
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:568:46: error: '__found_grouping' was not declared in this scope; did you mean '__add_grouping'?
568 | if ((!__sep_pos && !__found_zero && !__found_grouping.size())
| ^~~~~~~~~~~~~~~~
| __add_grouping
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::num_get<_CharT, _InIter>::do_get(iter_type, iter_type, std::ios_base&, std::ios_base::iostate&, float&) const':
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:694:7: error: 'string' was not declared in this scope; did you mean 'stdin'?
694 | string __xtrc;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:695:7: error: '__xtrc' was not declared in this scope
695 | __xtrc.reserve(32);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::num_get<_CharT, _InIter>::do_get(iter_type, iter_type, std::ios_base&, std::ios_base::iostate&, double&) const':
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:709:7: error: 'string' was not declared in this scope; did you mean 'stdin'?
709 | string __xtrc;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:710:7: error: '__xtrc' was not declared in this scope
710 | __xtrc.reserve(32);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::num_get<_CharT, _InIter>::do_get(iter_type, iter_type, std::ios_base&, std::ios_base::iostate&, long double&) const':
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:741:7: error: 'string' was not declared in this scope; did you mean 'stdin'?
741 | string __xtrc;
| ^~~~~~
| stdin
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:742:7: error: '__xtrc' was not declared in this scope
742 | __xtrc.reserve(32);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc: At global scope:
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1333:11: error: 'numpunct' is not a template function
1333 | const numpunct<char>&
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1333:19: error: expected ';' before '<' token
1333 | const numpunct<char>&
| ^
| ;
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1350:15: error: 'numpunct' was not declared in this scope; did you mean 'std::__cxx11::numpunct'?
1350 | has_facet<numpunct<char> >(const locale&);
| ^~~~~~~~
| std::__cxx11::numpunct
/usr/local/include/c++/12.1.0/bits/localefwd.h:162:35: note: 'std::__cxx11::numpunct' declared here
162 | template<typename _CharT> class numpunct;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1350:5: error: parse error in template argument list
1350 | has_facet<numpunct<char> >(const locale&);
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1350:5: error: template-id 'has_facet<<expression error> >' used as a declarator
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1350:5: error: 'std::has_facet(const locale&)' is not a variable template
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1350:29: error: expected ';' before '>' token
1350 | has_facet<numpunct<char> >(const locale&);
| ^~
| ;
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1372:11: error: 'numpunct' is not a template function
1372 | const numpunct<wchar_t>&
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1372:19: error: expected ';' before '<' token
1372 | const numpunct<wchar_t>&
| ^
| ;
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1389:15: error: 'numpunct' was not declared in this scope; did you mean 'std::__cxx11::numpunct'?
1389 | has_facet<numpunct<wchar_t> >(const locale&);
| ^~~~~~~~
| std::__cxx11::numpunct
/usr/local/include/c++/12.1.0/bits/localefwd.h:162:35: note: 'std::__cxx11::numpunct' declared here
162 | template<typename _CharT> class numpunct;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1389:5: error: parse error in template argument list
1389 | has_facet<numpunct<wchar_t> >(const locale&);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1389:5: error: template-id 'has_facet<<expression error> >' used as a declarator
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1389:5: error: 'std::has_facet(const locale&)' is not a variable template
/usr/local/include/c++/12.1.0/bits/locale_facets.tcc:1389:32: error: expected ';' before '>' token
1389 | has_facet<numpunct<wchar_t> >(const locale&);
| ^~
| ;
In file included from N4910.h:7:
/usr/local/include/c++/12.1.0/coroutine:102:48: error: expected ')' before '__h'
102 | constexpr coroutine_handle(std::nullptr_t __h) noexcept
| ~ ^~~~
| )
/usr/local/include/c++/12.1.0/coroutine:106:35: error: 'std::nullptr_t' has not been declared
106 | coroutine_handle& operator=(std::nullptr_t) noexcept
| ^~~
In file included from /usr/local/include/c++/12.1.0/sstream:1217,
from /usr/local/include/c++/12.1.0/complex:45,
from N4910.h:9:
/usr/local/include/c++/12.1.0/bits/sstream.tcc:44:14: error: expected nested-name-specifier before 'basic_stringbuf'
44 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:44:29: error: expected initializer before '<' token
44 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type
| ^
/usr/local/include/c++/12.1.0/bits/sstream.tcc:78:14: error: expected nested-name-specifier before 'basic_stringbuf'
78 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:78:29: error: expected initializer before '<' token
78 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type
| ^
/usr/local/include/c++/12.1.0/bits/sstream.tcc:148:14: error: expected nested-name-specifier before 'basic_stringbuf'
148 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:148:29: error: expected initializer before '<' token
148 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type
| ^
/usr/local/include/c++/12.1.0/bits/sstream.tcc:166:14: error: expected nested-name-specifier before 'basic_stringbuf'
166 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:166:29: error: expected initializer before '<' token
166 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type
| ^
/usr/local/include/c++/12.1.0/bits/sstream.tcc:214:14: error: expected nested-name-specifier before 'basic_stringbuf'
214 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:214:29: error: expected initializer before '<' token
214 | typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type
| ^
/usr/local/include/c++/12.1.0/bits/sstream.tcc:245:20: error: expected initializer before '<' token
245 | basic_stringbuf<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/sstream.tcc:276:20: error: expected initializer before '<' token
276 | basic_stringbuf<_CharT, _Traits, _Alloc>::
| ^
/usr/local/include/c++/12.1.0/bits/sstream.tcc:291:25: error: 'basic_stringbuf' is not a class template
291 | extern template class basic_stringbuf<char>;
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:291:25: error: explicit instantiation of non-template type 'std::basic_stringbuf'
/usr/local/include/c++/12.1.0/bits/sstream.tcc:292:25: error: 'basic_istringstream' is not a class template
292 | extern template class basic_istringstream<char>;
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:292:25: error: explicit instantiation of non-template type 'std::basic_istringstream'
/usr/local/include/c++/12.1.0/bits/sstream.tcc:293:25: error: 'basic_ostringstream' is not a class template
293 | extern template class basic_ostringstream<char>;
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:293:25: error: explicit instantiation of non-template type 'std::basic_ostringstream'
/usr/local/include/c++/12.1.0/bits/sstream.tcc:294:25: error: 'basic_stringstream' is not a class template
294 | extern template class basic_stringstream<char>;
| ^~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:294:25: error: explicit instantiation of non-template type 'std::basic_stringstream'
/usr/local/include/c++/12.1.0/bits/sstream.tcc:297:25: error: 'basic_stringbuf' is not a class template
297 | extern template class basic_stringbuf<wchar_t>;
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:297:25: error: explicit instantiation of non-template type 'std::basic_stringbuf'
/usr/local/include/c++/12.1.0/bits/sstream.tcc:298:25: error: 'basic_istringstream' is not a class template
298 | extern template class basic_istringstream<wchar_t>;
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:298:25: error: explicit instantiation of non-template type 'std::basic_istringstream'
/usr/local/include/c++/12.1.0/bits/sstream.tcc:299:25: error: 'basic_ostringstream' is not a class template
299 | extern template class basic_ostringstream<wchar_t>;
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:299:25: error: explicit instantiation of non-template type 'std::basic_ostringstream'
/usr/local/include/c++/12.1.0/bits/sstream.tcc:300:25: error: 'basic_stringstream' is not a class template
300 | extern template class basic_stringstream<wchar_t>;
| ^~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:300:25: error: explicit instantiation of non-template type 'std::basic_stringstream'
/usr/local/include/c++/12.1.0/complex: In function 'std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const complex<_Tp>&)':
/usr/local/include/c++/12.1.0/complex:557:7: error: 'std::basic_ostringstream' is not a template
557 | basic_ostringstream<_CharT, _Traits> __s;
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/complex:557:44: error: '__s' has incomplete type
557 | basic_ostringstream<_CharT, _Traits> __s;
| ^~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:293:25: note: forward declaration of 'class std::basic_ostringstream'
293 | extern template class basic_ostringstream<char>;
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/complex:557:44: error: '__s' has incomplete type
557 | basic_ostringstream<_CharT, _Traits> __s;
| ^~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:293:25: note: forward declaration of 'class std::basic_ostringstream'
293 | extern template class basic_ostringstream<char>;
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/complex:557:44: error: '__s' has incomplete type
557 | basic_ostringstream<_CharT, _Traits> __s;
| ^~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:293:25: note: forward declaration of 'class std::basic_ostringstream'
293 | extern template class basic_ostringstream<char>;
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/complex:561:11: error: no match for 'operator<<' (operand types are 'std::basic_ostringstream' and 'char')
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ~~~ ^~ ~~~
| | |
| | char
| std::basic_ostringstream
/usr/local/include/c++/12.1.0/cstddef:123:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
123 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/local/include/c++/12.1.0/cstddef:123:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:7: note: cannot convert '__s' (type 'std::basic_ostringstream') to type 'std::byte'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/string_view:672:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
672 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/string_view:672:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<_CharT, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3883:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, int'
3883 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/basic_string.h:3883:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<_CharT, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/system_error:279:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
279 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/system_error:279:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<_CharT, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:507:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
507 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:507:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<_CharT, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:517:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
517 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:517:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<_CharT, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:523:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
523 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:523:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:534:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
534 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:534:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:539:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
539 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:539:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:548:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, wchar_t)' (deleted)
548 | operator<<(basic_ostream<char, _Traits>&, wchar_t) = delete;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:548:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:553:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char8_t)' (deleted)
553 | operator<<(basic_ostream<char, _Traits>&, char8_t) = delete;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:553:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:558:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char16_t)' (deleted)
558 | operator<<(basic_ostream<char, _Traits>&, char16_t) = delete;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:558:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:562:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char32_t)' (deleted)
562 | operator<<(basic_ostream<char, _Traits>&, char32_t) = delete;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:562:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:568:5: note: candidate: 'template<class _Traits> std::basic_ostream<wchar_t, _Traits>& std::operator<<(basic_ostream<wchar_t, _Traits>&, char8_t)' (deleted)
568 | operator<<(basic_ostream<wchar_t, _Traits>&, char8_t) = delete;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:568:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<wchar_t, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:573:5: note: candidate: 'template<class _Traits> std::basic_ostream<wchar_t, _Traits>& std::operator<<(basic_ostream<wchar_t, _Traits>&, char16_t)' (deleted)
573 | operator<<(basic_ostream<wchar_t, _Traits>&, char16_t) = delete;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:573:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<wchar_t, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:577:5: note: candidate: 'template<class _Traits> std::basic_ostream<wchar_t, _Traits>& std::operator<<(basic_ostream<wchar_t, _Traits>&, char32_t)' (deleted)
577 | operator<<(basic_ostream<wchar_t, _Traits>&, char32_t) = delete;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:577:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<wchar_t, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:598:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
598 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:598:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<_CharT, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
In file included from /usr/local/include/c++/12.1.0/ostream:833:
/usr/local/include/c++/12.1.0/bits/ostream.tcc:302:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
302 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/ostream.tcc:302:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<_CharT, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:615:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
615 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:615:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:628:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
628 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:628:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:633:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
633 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:633:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:642:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const wchar_t*)' (deleted)
642 | operator<<(basic_ostream<char, _Traits>&, const wchar_t*) = delete;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:642:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:647:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char8_t*)' (deleted)
647 | operator<<(basic_ostream<char, _Traits>&, const char8_t*) = delete;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:647:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:652:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char16_t*)' (deleted)
652 | operator<<(basic_ostream<char, _Traits>&, const char16_t*) = delete;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:652:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:656:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char32_t*)' (deleted)
656 | operator<<(basic_ostream<char, _Traits>&, const char32_t*) = delete;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:656:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<char, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:662:5: note: candidate: 'template<class _Traits> std::basic_ostream<wchar_t, _Traits>& std::operator<<(basic_ostream<wchar_t, _Traits>&, const char8_t*)' (deleted)
662 | operator<<(basic_ostream<wchar_t, _Traits>&, const char8_t*) = delete;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:662:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<wchar_t, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:667:5: note: candidate: 'template<class _Traits> std::basic_ostream<wchar_t, _Traits>& std::operator<<(basic_ostream<wchar_t, _Traits>&, const char16_t*)' (deleted)
667 | operator<<(basic_ostream<wchar_t, _Traits>&, const char16_t*) = delete;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:667:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<wchar_t, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<wchar_t, _Traits>& std::operator<<(basic_ostream<wchar_t, _Traits>&, const char32_t*)' (deleted)
671 | operator<<(basic_ostream<wchar_t, _Traits>&, const char32_t*) = delete;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:671:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<wchar_t, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/ostream:754:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
754 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/ostream:754:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_ostringstream&; _Tp = char]':
/usr/local/include/c++/12.1.0/complex:561:14: required from here
/usr/local/include/c++/12.1.0/ostream:754:5: error: template constraint failure for 'template<class _Os, class _Tp> requires (__derived_from_ios_base<_Os>) && requires(_Os& __os, const _Tp& __t) {__os << __t;} using __rvalue_stream_insertion_t = _Os&&'
/usr/local/include/c++/12.1.0/ostream:754:5: note: constraints not satisfied
/usr/local/include/c++/12.1.0/ostream: In substitution of 'template<class _Os, class _Tp> requires (__derived_from_ios_base<_Os>) && requires(_Os& __os, const _Tp& __t) {__os << __t;} using __rvalue_stream_insertion_t = _Os&& [with _Os = std::basic_ostringstream&; _Tp = char]':
/usr/local/include/c++/12.1.0/ostream:754:5: required by substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_ostringstream&; _Tp = char'
/usr/local/include/c++/12.1.0/complex:561:14: required from here
/usr/local/include/c++/12.1.0/ostream:721:13: required for the satisfaction of '__derived_from_ios_base<_Os>' [with _Os = std::basic_ostringstream&]
/usr/local/include/c++/12.1.0/ostream:721:39: note: the expression 'is_class_v<_Tp> [with _Tp = std::basic_ostringstream&]' evaluated to 'false'
721 | concept __derived_from_ios_base = is_class_v<_Tp>
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/complex:555:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const complex<_Tp>&'
555 | operator<<(basic_ostream<_CharT, _Traits>& __os, const complex<_Tp>& __x)
| ^~~~~~~~
/usr/local/include/c++/12.1.0/complex:555:5: note: template argument deduction/substitution failed:
/usr/local/include/c++/12.1.0/complex:561:14: note: 'std::basic_ostringstream' is not derived from 'std::basic_ostream<_CharT, _Traits>'
561 | __s << '(' << __x.real() << ',' << __x.imag() << ')';
| ^~~
/usr/local/include/c++/12.1.0/complex:557:44: error: '__s' has incomplete type
557 | basic_ostringstream<_CharT, _Traits> __s;
| ^~~
/usr/local/include/c++/12.1.0/bits/sstream.tcc:293:25: note: forward declaration of 'class std::basic_ostringstream'
293 | extern template class basic_ostringstream<char>;
| ^~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/c++/12.1.0/bits/stl_tree.h:69,
from /usr/local/include/c++/12.1.0/map:60,
from N4910.h:10:
/usr/local/include/c++/12.1.0/ext/aligned_buffer.h: At global scope:
/usr/local/include/c++/12.1.0/ext/aligned_buffer.h:61:24: error: invalid use of '::'
61 | __aligned_membuf(std::nullptr_t) { }
| ^~~
/usr/local/include/c++/12.1.0/ext/aligned_buffer.h:61:42: error: expected ';' at end of member declaration
61 | __aligned_membuf(std::nullptr_t) { }
| ^
| ;
/usr/local/include/c++/12.1.0/ext/aligned_buffer.h:94:60: error: '<declaration error>' is not a template [-fpermissive]
94 | std::aligned_storage<sizeof(_Tp), __alignof__(_Tp)>::type _M_storage;
| ^~
/usr/local/include/c++/12.1.0/ext/aligned_buffer.h:99:24: error: invalid use of '::'
99 | __aligned_buffer(std::nullptr_t) { }
| ^~~
/usr/local/include/c++/12.1.0/ext/aligned_buffer.h:99:42: error: expected ';' at end of member declaration
99 | __aligned_buffer(std::nullptr_t) { }
| ^
| ;
In file included from /usr/local/include/c++/12.1.0/bits/hashtable.h:35,
from /usr/local/include/c++/12.1.0/unordered_map:46,
from N4910.h:12:
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:258:29: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
258 | static constexpr std::size_t
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:321:12: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
321 | { std::size_t _M_hash_code; };
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:382:36: error: 'ptrdiff_t' in namespace 'std' does not name a type
382 | using difference_type = std::ptrdiff_t;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:432:20: error: 'ptrdiff_t' in namespace 'std' does not name a type
432 | typedef std::ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:479:18: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
479 | typedef std::size_t first_argument_type;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:480:18: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
480 | typedef std::size_t second_argument_type;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:481:18: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
481 | typedef std::size_t result_type;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:483:5: error: 'result_type' does not name a type
483 | result_type
| ^~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:510:10: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
510 | std::size_t
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:514:10: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
514 | std::size_t
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:522:26: error: 'size_t' is not a member of 'std'; did you mean 'size'?
522 | std::pair<bool, std::size_t>
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:522:32: error: template argument 2 is invalid
522 | std::pair<bool, std::size_t>
| ^
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:522:10: error: '<expression error>' in namespace 'std' does not name a type
522 | std::pair<bool, std::size_t>
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:526:18: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
526 | typedef std::size_t _State;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:528:5: error: '_State' does not name a type
528 | _State
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:537:14: error: '_State' has not been declared
537 | _M_reset(_State __state)
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:540:23: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
540 | static const std::size_t _S_growth_factor = 2;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:543:18: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
543 | mutable std::size_t _M_next_resize;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In constructor 'std::__detail::_Prime_rehash_policy::_Prime_rehash_policy(float)':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:503:32: error: class 'std::__detail::_Prime_rehash_policy' does not have any field named '_M_next_resize'
503 | : _M_max_load_factor(__z), _M_next_resize(0) { }
| ^~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In member function 'void std::__detail::_Prime_rehash_policy::_M_reset()':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:534:7: error: '_M_next_resize' was not declared in this scope
534 | { _M_next_resize = 0; }
| ^~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In member function 'void std::__detail::_Prime_rehash_policy::_M_reset(int)':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:538:7: error: '_M_next_resize' was not declared in this scope
538 | { _M_next_resize = __state; }
| ^~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: At global scope:
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:549:18: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
549 | typedef std::size_t first_argument_type;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:550:18: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
550 | typedef std::size_t second_argument_type;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:551:18: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
551 | typedef std::size_t result_type;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:553:5: error: 'result_type' does not name a type
553 | result_type
| ^~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:560:15: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
560 | inline std::size_t
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:589:10: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
589 | std::size_t
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:623:10: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
623 | std::size_t
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:631:26: error: 'size_t' is not a member of 'std'; did you mean 'size'?
631 | std::pair<bool, std::size_t>
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:631:32: error: template argument 2 is invalid
631 | std::pair<bool, std::size_t>
| ^
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:631:10: error: '<expression error>' in namespace 'std' does not name a type
631 | std::pair<bool, std::size_t>
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:656:18: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
656 | typedef std::size_t _State;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:658:5: error: '_State' does not name a type
658 | _State
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:667:14: error: '_State' has not been declared
667 | _M_reset(_State __state) noexcept
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:670:23: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
670 | static const std::size_t _S_growth_factor = 2;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:673:10: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
673 | std::size_t _M_next_resize;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In constructor 'std::__detail::_Power2_rehash_policy::_Power2_rehash_policy(float)':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:581:32: error: class 'std::__detail::_Power2_rehash_policy' does not have any field named '_M_next_resize'
581 | : _M_max_load_factor(__z), _M_next_resize(0) { }
| ^~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In member function 'void std::__detail::_Power2_rehash_policy::_M_reset()':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:664:7: error: '_M_next_resize' was not declared in this scope
664 | { _M_next_resize = 0; }
| ^~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In member function 'void std::__detail::_Power2_rehash_policy::_M_reset(int)':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:668:7: error: '_M_next_resize' was not declared in this scope
668 | { _M_next_resize = __state; }
| ^~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In member function 'std::__detail::_Map_base<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>::mapped_type& std::__detail::_Map_base<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>::operator[](const key_type&)':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:772:12: error: 'size_t' is not a member of 'std'; did you mean 'size'?
772 | std::size_t __bkt = __h->_M_bucket_index(__code);
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:773:43: error: '__bkt' was not declared in this scope; did you mean '__beta'?
773 | if (auto __node = __h->_M_find_node(__bkt, __k, __code))
| ^~~~~
| __beta
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:783:38: error: '__bkt' was not declared in this scope; did you mean '__beta'?
783 | = __h->_M_insert_unique_node(__bkt, __code, __node._M_node);
| ^~~~~
| __beta
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In member function 'std::__detail::_Map_base<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>::mapped_type& std::__detail::_Map_base<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>::operator[](key_type&&)':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:799:12: error: 'size_t' is not a member of 'std'; did you mean 'size'?
799 | std::size_t __bkt = __h->_M_bucket_index(__code);
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:800:43: error: '__bkt' was not declared in this scope; did you mean '__beta'?
800 | if (auto __node = __h->_M_find_node(__bkt, __k, __code))
| ^~~~~
| __beta
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:810:38: error: '__bkt' was not declared in this scope; did you mean '__beta'?
810 | = __h->_M_insert_unique_node(__bkt, __code, __node._M_node);
| ^~~~~
| __beta
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In member function 'std::pair<std::__detail::_Node_iterator<_Value, typename _Traits::__constant_iterators::value, typename _Traits::__hash_cached::value>, bool> std::__detail::_Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::try_emplace(const_iterator, _KType&&, _Args&& ...)':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:908:16: error: 'size_t' is not a member of 'std'; did you mean 'size'?
908 | std::size_t __bkt = __h._M_bucket_index(__code);
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:909:46: error: '__bkt' was not declared in this scope; did you mean '__beta'?
909 | if (auto __node = __h._M_find_node(__bkt, __k, __code))
| ^~~~~
| __beta
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:919:41: error: '__bkt' was not declared in this scope; did you mean '__beta'?
919 | = __h._M_insert_unique_node(__bkt, __code, __node._M_node);
| ^~~~~
| __beta
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In member function 'void std::__detail::_Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_M_insert_range(_InputIterator, _InputIterator, const _NodeGetter&, std::false_type)':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:969:48: error: 'size_t' is not a member of 'std'; did you mean 'size'?
969 | using pair_type = std::pair<bool, std::size_t>;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:969:54: error: template argument 2 is invalid
969 | using pair_type = std::pair<bool, std::size_t>;
| ^
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:969:32: error: '<expression error>' in namespace 'std' does not name a type
969 | using pair_type = std::pair<bool, std::size_t>;
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:978:9: error: 'pair_type' was not declared in this scope
978 | pair_type __do_rehash = __rehash._M_need_rehash(__h._M_bucket_count,
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:982:13: error: '__do_rehash' was not declared in this scope; did you mean '__rehash'?
982 | if (__do_rehash.first)
| ^~~~~~~~~~~
| __rehash
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: At global scope:
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1154:15: error: 'std::size_t' has not been declared
1154 | reserve(std::size_t __n)
| ^~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1255:20: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
1255 | typedef std::size_t __hash_code;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1263:7: error: '__hash_code' does not name a type; did you mean '_Hash_node'?
1263 | __hash_code
| ^~~~~~~~~~~
| _Hash_node
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1272:9: error: '__hash_code' does not name a type; did you mean '_Hash_node'?
1272 | __hash_code
| ^~~~~~~~~~~
| _Hash_node
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1280:7: error: '__hash_code' does not name a type; did you mean '_Hash_node'?
1280 | __hash_code
| ^~~~~~~~~~~
| _Hash_node
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1288:9: error: '__hash_code' does not name a type; did you mean '_Hash_node'?
1288 | __hash_code
| ^~~~~~~~~~~
| _Hash_node
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1293:7: error: '__hash_code' does not name a type; did you mean '_Hash_node'?
1293 | __hash_code
| ^~~~~~~~~~~
| _Hash_node
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1297:7: error: '__hash_code' does not name a type; did you mean '_Hash_node'?
1297 | __hash_code
| ^~~~~~~~~~~
| _Hash_node
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1301:12: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
1301 | std::size_t
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1305:12: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
1305 | std::size_t
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1316:12: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
1316 | std::size_t
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1324:52: error: '__hash_code' has not been declared
1324 | _M_store_code(_Hash_node_code_cache<false>&, __hash_code) const
| ^~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1333:55: error: '__hash_code' has not been declared
1333 | _M_store_code(_Hash_node_code_cache<true>& __n, __hash_code __c) const
| ^~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In member function 'void std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, __cache_hash_code>::_M_store_code(std::__detail::_Hash_node_code_cache<true>&, int) const':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1334:13: error: 'struct std::__detail::_Hash_node_code_cache<true>' has no member named '_M_hash_code'
1334 | { __n._M_hash_code = __c; }
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In member function 'void std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, __cache_hash_code>::_M_copy_code(std::__detail::_Hash_node_code_cache<true>&, const std::__detail::_Hash_node_code_cache<true>&) const':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1339:14: error: 'struct std::__detail::_Hash_node_code_cache<true>' has no member named '_M_hash_code'
1339 | { __to._M_hash_code = __from._M_hash_code; }
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1339:36: error: 'const struct std::__detail::_Hash_node_code_cache<true>' has no member named '_M_hash_code'
1339 | { __to._M_hash_code = __from._M_hash_code; }
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: At global scope:
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1364:28: error: 'std::size_t' has not been declared
1364 | std::size_t __bkt, std::size_t __bkt_count)
| ^~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1364:47: error: 'std::size_t' has not been declared
1364 | std::size_t __bkt, std::size_t __bkt_count)
| ^~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1381:12: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
1381 | std::size_t _M_bucket;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1382:12: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
1382 | std::size_t _M_bucket_count;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1385:12: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
1385 | std::size_t
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In constructor 'std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, true>::_Local_iterator_base(const __hash_code_base&, std::__detail::_Hash_node<_Value, true>*, int, int)':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1365:32: error: class 'std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, true>' does not have any field named '_M_bucket'
1365 | : __base_node_iter(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count)
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1365:50: error: class 'std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, true>' does not have any field named '_M_bucket_count'
1365 | : __base_node_iter(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count)
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In member function 'void std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, true>::_M_incr()':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1374:18: error: 'size_t' is not a member of 'std'; did you mean 'size'?
1374 | std::size_t __bkt
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1375:58: error: '_M_bucket_count' was not declared in this scope
1375 | = _RangeHash{}(this->_M_cur->_M_hash_code, _M_bucket_count);
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1376:17: error: '__bkt' was not declared in this scope; did you mean '__beta'?
1376 | if (__bkt != _M_bucket)
| ^~~~~
| __beta
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1376:26: error: '_M_bucket' was not declared in this scope
1376 | if (__bkt != _M_bucket)
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: At global scope:
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1444:28: error: 'std::size_t' has not been declared
1444 | std::size_t __bkt, std::size_t __bkt_count)
| ^~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1444:47: error: 'std::size_t' has not been declared
1444 | std::size_t __bkt, std::size_t __bkt_count)
| ^~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1488:12: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
1488 | std::size_t _M_bucket;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1489:12: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
1489 | std::size_t _M_bucket_count;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1499:12: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
1499 | std::size_t
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In constructor 'std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>::_Local_iterator_base()':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1440:32: error: class 'std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>' does not have any field named '_M_bucket_count'
1440 | _Local_iterator_base() : _M_bucket_count(-1) { }
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In constructor 'std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>::_Local_iterator_base(const __hash_code_base&, std::__detail::_Hash_node<_Value, false>*, int, int)':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1445:32: error: class 'std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>' does not have any field named '_M_bucket'
1445 | : __node_iter_base(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count)
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1445:50: error: class 'std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>' does not have any field named '_M_bucket_count'
1445 | : __node_iter_base(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count)
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In destructor 'std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>::~_Local_iterator_base()':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1450:13: error: '_M_bucket_count' was not declared in this scope
1450 | if (_M_bucket_count != size_t(-1))
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In copy constructor 'std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>::_Local_iterator_base(const std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>&)':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1455:42: error: class 'std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>' does not have any field named '_M_bucket'
1455 | : __node_iter_base(__iter._M_cur), _M_bucket(__iter._M_bucket)
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1456:9: error: class 'std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>' does not have any field named '_M_bucket_count'
1456 | , _M_bucket_count(__iter._M_bucket_count)
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1458:13: error: '_M_bucket_count' was not declared in this scope
1458 | if (_M_bucket_count != size_t(-1))
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In member function 'std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>& std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>::operator=(const std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>&)':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1465:13: error: '_M_bucket_count' was not declared in this scope
1465 | if (_M_bucket_count != -1)
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1468:9: error: '_M_bucket' was not declared in this scope
1468 | _M_bucket = __iter._M_bucket;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1469:9: error: '_M_bucket_count' was not declared in this scope
1469 | _M_bucket_count = __iter._M_bucket_count;
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In member function 'void std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>::_M_incr()':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1481:18: error: 'size_t' is not a member of 'std'; did you mean 'size'?
1481 | std::size_t __bkt = this->_M_h()->_M_bucket_index(*this->_M_cur,
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1483:17: error: '__bkt' was not declared in this scope; did you mean '__beta'?
1483 | if (__bkt != _M_bucket)
| ^~~~~
| __beta
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1483:26: error: '_M_bucket' was not declared in this scope
1483 | if (__bkt != _M_bucket)
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: At global scope:
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1529:23: error: 'std::size_t' has not been declared
1529 | std::size_t __bkt, std::size_t __bkt_count)
| ^~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1529:42: error: 'std::size_t' has not been declared
1529 | std::size_t __bkt, std::size_t __bkt_count)
| ^~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1574:20: error: 'ptrdiff_t' in namespace 'std' does not name a type
1574 | typedef std::ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1581:29: error: 'std::size_t' has not been declared
1581 | std::size_t __bkt, std::size_t __bkt_count)
| ^~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1581:48: error: 'std::size_t' has not been declared
1581 | std::size_t __bkt, std::size_t __bkt_count)
| ^~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1638:20: error: 'size_t' in namespace 'std' does not name a type; did you mean 'size'?
1638 | typedef std::size_t size_type;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1639:20: error: 'ptrdiff_t' in namespace 'std' does not name a type
1639 | typedef std::ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In static member function 'static bool std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _Traits>::_S_equals(__hash_code, const std::__detail::_Hash_node_code_cache<true>&)':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1664:27: error: 'const struct std::__detail::_Hash_node_code_cache<true>' has no member named '_M_hash_code'
1664 | { return __c == __n._M_hash_code; }
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In static member function 'static bool std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _Traits>::_S_node_equals(const std::__detail::_Hash_node_code_cache<true>&, const std::__detail::_Hash_node_code_cache<true>&)':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1669:22: error: 'const struct std::__detail::_Hash_node_code_cache<true>' has no member named '_M_hash_code'
1669 | { return __lhn._M_hash_code == __rhn._M_hash_code; }
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1669:44: error: 'const struct std::__detail::_Hash_node_code_cache<true>' has no member named '_M_hash_code'
1669 | { return __lhn._M_hash_code == __rhn._M_hash_code; }
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In member function 'bool std::__detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>::_M_equal(const __hashtable&) const':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1781:16: error: 'size_t' is not a member of 'std'; did you mean 'size'?
1781 | std::size_t __ybkt = __other._M_bucket_index(*__itx._M_cur);
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1782:46: error: '__ybkt' was not declared in this scope; did you mean '__cbrt'?
1782 | auto __prev_n = __other._M_buckets[__ybkt];
| ^~~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In member function 'bool std::__detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false>::_M_equal(const __hashtable&) const':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1833:16: error: 'size_t' is not a member of 'std'; did you mean 'size'?
1833 | std::size_t __x_count = 1;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1839:15: error: '__x_count' was not declared in this scope
1839 | ++__x_count;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1841:16: error: 'size_t' is not a member of 'std'; did you mean 'size'?
1841 | std::size_t __ybkt = __other._M_bucket_index(*__itx._M_cur);
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1842:48: error: '__ybkt' was not declared in this scope; did you mean '__cbrt'?
1842 | auto __y_prev_n = __other._M_buckets[__ybkt];
| ^~~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1864:19: error: '__x_count' was not declared in this scope
1864 | if (--__x_count == 0)
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1867:15: error: '__x_count' was not declared in this scope
1867 | if (__x_count != 0)
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: At global scope:
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1947:27: error: 'std::size_t' has not been declared
1947 | _M_allocate_buckets(std::size_t __bkt_count);
| ^~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1950:44: error: 'std::size_t' has not been declared
1950 | _M_deallocate_buckets(__buckets_ptr, std::size_t __bkt_count);
| ^~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:2010:5: error: 'auto std::__detail::_Hashtable_alloc<_NodeAlloc>::_M_allocate_buckets' is not a static data member of 'struct std::__detail::_Hashtable_alloc<_NodeAlloc>'
2010 | _Hashtable_alloc<_NodeAlloc>::_M_allocate_buckets(std::size_t __bkt_count)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:2010:60: error: template definition of non-template 'auto std::__detail::_Hashtable_alloc<_NodeAlloc>::_M_allocate_buckets'
2010 | _Hashtable_alloc<_NodeAlloc>::_M_allocate_buckets(std::size_t __bkt_count)
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:2010:60: error: 'size_t' is not a member of 'std'; did you mean 'size'?
2010 | _Hashtable_alloc<_NodeAlloc>::_M_allocate_buckets(std::size_t __bkt_count)
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:2025:27: error: 'std::size_t' has not been declared
2025 | std::size_t __bkt_count)
| ^~~
/usr/local/include/c++/12.1.0/bits/hashtable.h:338:49: error: 'size_t' is not a member of 'std'; did you mean 'size'?
338 | std::declval<const _RangeHash&>()((std::size_t)0, (std::size_t)0)),
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:338:65: error: 'size_t' is not a member of 'std'; did you mean 'size'?
338 | std::declval<const _RangeHash&>()((std::size_t)0, (std::size_t)0)),
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::node_type std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::extract(const _Key&)':
/usr/local/include/c++/12.1.0/bits/hashtable.h:1072:14: error: 'size_t' is not a member of 'std'; did you mean 'size'?
1072 | std::size_t __bkt = _M_bucket_index(__code);
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:1073:63: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
1073 | if (__node_base_ptr __prev_node = _M_find_before_node(__bkt, __k, __code))
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'void std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_M_assign_elements(_Ht&&)':
/usr/local/include/c++/12.1.0/bits/hashtable.h:1284:14: error: 'size_t' is not a member of 'std'; did you mean 'size'?
1284 | std::size_t __former_bucket_count = _M_bucket_count;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:1306:55: error: '__former_bucket_count' was not declared in this scope; did you mean '__former_buckets'?
1306 | _M_deallocate_buckets(__former_buckets, __former_bucket_count);
| ^~~~~~~~~~~~~~~~~~~~~
| __former_buckets
/usr/local/include/c++/12.1.0/bits/hashtable.h:1316:35: error: '__former_bucket_count' was not declared in this scope; did you mean '__former_buckets'?
1316 | _M_bucket_count = __former_bucket_count;
| ^~~~~~~~~~~~~~~~~~~~~
| __former_buckets
/usr/local/include/c++/12.1.0/bits/hashtable.h: In destructor 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::~_Hashtable()':
/usr/local/include/c++/12.1.0/bits/hashtable.h:1578:48: error: 'size_t' is not a member of 'std'; did you mean 'size'?
1578 | (std::size_t)0)),
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::find(const key_type&)':
/usr/local/include/c++/12.1.0/bits/hashtable.h:1652:12: error: 'size_t' is not a member of 'std'; did you mean 'size'?
1652 | std::size_t __bkt = _M_bucket_index(__code);
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:1653:36: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
1653 | return iterator(_M_find_node(__bkt, __k, __code));
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::const_iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::find(const key_type&) const':
/usr/local/include/c++/12.1.0/bits/hashtable.h:1675:12: error: 'size_t' is not a member of 'std'; did you mean 'size'?
1675 | std::size_t __bkt = _M_bucket_index(__code);
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:1676:42: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
1676 | return const_iterator(_M_find_node(__bkt, __k, __code));
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_M_find_tr(const _Kt&)':
/usr/local/include/c++/12.1.0/bits/hashtable.h:1692:14: error: 'size_t' is not a member of 'std'; did you mean 'size'?
1692 | std::size_t __bkt = _M_bucket_index(__code);
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:1693:41: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
1693 | return iterator(_M_find_node_tr(__bkt, __k, __code));
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::const_iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_M_find_tr(const _Kt&) const':
/usr/local/include/c++/12.1.0/bits/hashtable.h:1708:14: error: 'size_t' is not a member of 'std'; did you mean 'size'?
1708 | std::size_t __bkt = _M_bucket_index(__code);
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:1709:47: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
1709 | return const_iterator(_M_find_node_tr(__bkt, __k, __code));
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::size_type std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_M_count_tr(const _Kt&) const':
/usr/local/include/c++/12.1.0/bits/hashtable.h:1755:14: error: 'size_t' is not a member of 'std'; did you mean 'size'?
1755 | std::size_t __bkt = _M_bucket_index(__code);
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:1756:36: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
1756 | auto __n = _M_find_node_tr(__bkt, __k, __code);
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'std::pair<typename std::__detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::iterator, typename std::__detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::iterator> std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_M_equal_range_tr(const _Kt&)':
/usr/local/include/c++/12.1.0/bits/hashtable.h:1841:14: error: 'size_t' is not a member of 'std'; did you mean 'size'?
1841 | std::size_t __bkt = _M_bucket_index(__code);
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:1842:36: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
1842 | auto __n = _M_find_node_tr(__bkt, __k, __code);
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'std::pair<typename std::__detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::const_iterator, typename std::__detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::const_iterator> std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_M_equal_range_tr(const _Kt&) const':
/usr/local/include/c++/12.1.0/bits/hashtable.h:1869:14: error: 'size_t' is not a member of 'std'; did you mean 'size'?
1869 | std::size_t __bkt = _M_bucket_index(__code);
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:1870:36: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
1870 | auto __n = _M_find_node_tr(__bkt, __k, __code);
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_M_insert_unique_node(size_type, __hash_code, __node_ptr, size_type)':
/usr/local/include/c++/12.1.0/bits/hashtable.h:2147:28: error: 'size_t' is not a member of 'std'; did you mean 'size'?
2147 | std::pair<bool, std::size_t> __do_rehash
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:2147:34: error: template argument 2 is invalid
2147 | std::pair<bool, std::size_t> __do_rehash
| ^
/usr/local/include/c++/12.1.0/bits/hashtable.h:2151:23: error: request for member 'first' in '__do_rehash', which is of non-class type 'int'
2151 | if (__do_rehash.first)
| ^~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h:2153:33: error: request for member 'second' in '__do_rehash', which is of non-class type 'int'
2153 | _M_rehash(__do_rehash.second, __saved_state);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_M_insert_multi_node(__node_ptr, __hash_code, __node_ptr)':
/usr/local/include/c++/12.1.0/bits/hashtable.h:2177:28: error: 'size_t' is not a member of 'std'; did you mean 'size'?
2177 | std::pair<bool, std::size_t> __do_rehash
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:2177:34: error: template argument 2 is invalid
2177 | std::pair<bool, std::size_t> __do_rehash
| ^
/usr/local/include/c++/12.1.0/bits/hashtable.h:2180:23: error: request for member 'first' in '__do_rehash', which is of non-class type 'int'
2180 | if (__do_rehash.first)
| ^~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h:2181:31: error: request for member 'second' in '__do_rehash', which is of non-class type 'int'
2181 | _M_rehash(__do_rehash.second, __saved_state);
| ^~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::erase(const_iterator)':
/usr/local/include/c++/12.1.0/bits/hashtable.h:2296:12: error: 'size_t' is not a member of 'std'; did you mean 'size'?
2296 | std::size_t __bkt = _M_bucket_index(*__n);
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:2301:55: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
2301 | __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n);
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::size_type std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_M_erase(std::true_type, const key_type&)':
/usr/local/include/c++/12.1.0/bits/hashtable.h:2345:12: error: 'size_t' is not a member of 'std'; did you mean 'size'?
2345 | std::size_t __bkt;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:2354:11: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
2354 | __bkt = _M_bucket_index(*__n);
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h:2359:11: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
2359 | __bkt = _M_bucket_index(__code);
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h:2370:16: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
2370 | _M_erase(__bkt, __prev_n, __n);
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::size_type std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_M_erase(std::false_type, const key_type&)':
/usr/local/include/c++/12.1.0/bits/hashtable.h:2384:12: error: 'size_t' is not a member of 'std'; did you mean 'size'?
2384 | std::size_t __bkt;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:2395:11: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
2395 | __bkt = _M_bucket_index(*__n);
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h:2400:11: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
2400 | __bkt = _M_bucket_index(__code);
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h:2420:12: error: 'size_t' is not a member of 'std'; did you mean 'size'?
2420 | std::size_t __n_last_bkt = __n_last ? _M_bucket_index(*__n_last) : __bkt;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:2434:34: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
2434 | if (__prev_n == _M_buckets[__bkt])
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h:2435:49: error: '__n_last_bkt' was not declared in this scope; did you mean '__n_last'?
2435 | _M_remove_bucket_begin(__bkt, __n_last, __n_last_bkt);
| ^~~~~~~~~~~~
| __n_last
/usr/local/include/c++/12.1.0/bits/hashtable.h:2436:16: error: '__n_last_bkt' was not declared in this scope; did you mean '__n_last'?
2436 | else if (__n_last_bkt != __bkt)
| ^~~~~~~~~~~~
| __n_last
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::erase(const_iterator, const_iterator)':
/usr/local/include/c++/12.1.0/bits/hashtable.h:2457:12: error: 'size_t' is not a member of 'std'; did you mean 'size'?
2457 | std::size_t __bkt = _M_bucket_index(*__n);
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:2459:55: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
2459 | __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n);
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h:2461:12: error: 'size_t' is not a member of 'std'; did you mean 'size'?
2461 | std::size_t __n_bkt = __bkt;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:2472:15: error: '__n_bkt' was not declared in this scope
2472 | __n_bkt = _M_bucket_index(*__n);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h:2474:37: error: '__n_bkt' was not declared in this scope
2474 | while (__n != __last_n && __n_bkt == __bkt);
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h:2483:19: error: '__n_bkt' was not declared in this scope
2483 | if (__n && (__n_bkt != __bkt || __is_bucket_begin))
| ^~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'void std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_M_rehash_aux(size_type, std::true_type)':
/usr/local/include/c++/12.1.0/bits/hashtable.h:2563:12: error: 'size_t' is not a member of 'std'; did you mean 'size'?
2563 | std::size_t __bbegin_bkt = 0;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:2567:16: error: 'size_t' is not a member of 'std'; did you mean 'size'?
2567 | std::size_t __bkt
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:2569:30: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
2569 | if (!__new_buckets[__bkt])
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h:2575:31: error: '__bbegin_bkt' was not declared in this scope
2575 | __new_buckets[__bbegin_bkt] = __p;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h:2576:15: error: '__bbegin_bkt' was not declared in this scope
2576 | __bbegin_bkt = __bkt;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h: In member function 'void std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_M_rehash_aux(size_type, std::false_type)':
/usr/local/include/c++/12.1.0/bits/hashtable.h:2606:12: error: 'size_t' is not a member of 'std'; did you mean 'size'?
2606 | std::size_t __bbegin_bkt = 0;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:2607:12: error: 'size_t' is not a member of 'std'; did you mean 'size'?
2607 | std::size_t __prev_bkt = 0;
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:2614:16: error: 'size_t' is not a member of 'std'; did you mean 'size'?
2614 | std::size_t __bkt
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:2617:27: error: '__prev_bkt' was not declared in this scope; did you mean '__prev_p'?
2617 | if (__prev_p && __prev_bkt == __bkt)
| ^~~~~~~~~~
| __prev_p
/usr/local/include/c++/12.1.0/bits/hashtable.h:2617:41: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
2617 | if (__prev_p && __prev_bkt == __bkt)
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h:2640:28: error: 'size_t' is not a member of 'std'; did you mean 'size'?
2640 | std::size_t __next_bkt
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:2643:27: error: '__next_bkt' was not declared in this scope
2643 | if (__next_bkt != __prev_bkt)
| ^~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h:2655:35: error: '__bbegin_bkt' was not declared in this scope
2655 | __new_buckets[__bbegin_bkt] = __p;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h:2656:19: error: '__bbegin_bkt' was not declared in this scope
2656 | __bbegin_bkt = __bkt;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h:2665:11: error: '__prev_bkt' was not declared in this scope; did you mean '__prev_p'?
2665 | __prev_bkt = __bkt;
| ^~~~~~~~~~
| __prev_p
/usr/local/include/c++/12.1.0/bits/hashtable.h:2665:24: error: '__bkt' was not declared in this scope; did you mean '__cbrt'?
2665 | __prev_bkt = __bkt;
| ^~~~~
| __cbrt
/usr/local/include/c++/12.1.0/bits/hashtable.h:2671:16: error: 'size_t' is not a member of 'std'; did you mean 'size'?
2671 | std::size_t __next_bkt
| ^~~~~~
| size
/usr/local/include/c++/12.1.0/bits/hashtable.h:2674:15: error: '__next_bkt' was not declared in this scope
2674 | if (__next_bkt != __prev_bkt)
| ^~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h:2674:29: error: '__prev_bkt' was not declared in this scope; did you mean '__prev_p'?
2674 | if (__next_bkt != __prev_bkt)
| ^~~~~~~~~~
| __prev_p
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In instantiation of 'struct std::__detail::_Hashtable_base<int, std::pair<const int, int>, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<false, false, true> >':
/usr/local/include/c++/12.1.0/bits/hashtable.h:180:11: required from 'class std::_Hashtable<int, std::pair<const int, int>, std::allocator<std::pair<const int, int> >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >'
/usr/local/include/c++/12.1.0/bits/unordered_map.h:105:18: required from 'class std::unordered_map<int, int>'
/usr/local/include/c++/12.1.0/bits/unordered_map.h:1147:37: required from here
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1648:13: error: no type named '__hash_code' in 'struct std::__detail::_Hash_code_base<int, std::pair<const int, int>, std::__detail::_Select1st, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, false>'
1648 | using __hash_code = typename __hash_code_base::__hash_code;
| ^~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In instantiation of 'struct std::__detail::_Insert_base<int, std::pair<const int, int>, std::allocator<std::pair<const int, int> >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1051:12: required from 'struct std::__detail::_Insert<int, std::pair<const int, int>, std::allocator<std::pair<const int, int> >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true>, false>'
/usr/local/include/c++/12.1.0/bits/hashtable.h:180:11: required from 'class std::_Hashtable<int, std::pair<const int, int>, std::allocator<std::pair<const int, int> >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >'
/usr/local/include/c++/12.1.0/bits/unordered_map.h:105:18: required from 'class std::unordered_map<int, int>'
/usr/local/include/c++/12.1.0/bits/unordered_map.h:1147:37: required from here
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:854:13: error: no type named 'size_type' in 'struct std::__detail::_Hashtable_base<int, std::pair<const int, int>, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<false, false, true> >'
854 | using size_type = typename __hashtable_base::size_type;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<std::__detail::_Hash_node<std::pair<const int, int>, false> >, std::__detail::_Hash_node<std::pair<const int, int>, false> >':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1900:13: required from 'struct std::__detail::_Hashtable_alloc<std::allocator<std::__detail::_Hash_node<std::pair<const int, int>, false> > >'
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:857:13: required from 'struct std::__detail::_Insert_base<int, std::pair<const int, int>, std::allocator<std::pair<const int, int> >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >'
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1051:12: required from 'struct std::__detail::_Insert<int, std::pair<const int, int>, std::allocator<std::pair<const int, int> >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true>, false>'
/usr/local/include/c++/12.1.0/bits/hashtable.h:180:11: required from 'class std::_Hashtable<int, std::pair<const int, int>, std::allocator<std::pair<const int, int> >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >'
/usr/local/include/c++/12.1.0/bits/unordered_map.h:105:18: required from 'class std::unordered_map<int, int>'
/usr/local/include/c++/12.1.0/bits/unordered_map.h:1147:37: required from here
/usr/local/include/c++/12.1.0/ext/alloc_traits.h:59:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<std::__detail::_Hash_node<std::pair<const int, int>, false> > >'
59 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/ext/alloc_traits.h:60:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<std::__detail::_Hash_node<std::pair<const int, int>, false> > >'
60 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/ext/alloc_traits.h:68:23: error: 'max_size' has not been declared in '__gnu_cxx::__alloc_traits<std::allocator<std::__detail::_Hash_node<std::pair<const int, int>, false> >, std::__detail::_Hash_node<std::pair<const int, int>, false> >::_Base_type'
68 | using _Base_type::max_size;
| ^~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h: In instantiation of 'class std::_Hashtable<int, std::pair<const int, int>, std::allocator<std::pair<const int, int> >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >':
/usr/local/include/c++/12.1.0/bits/unordered_map.h:105:18: required from 'class std::unordered_map<int, int>'
/usr/local/include/c++/12.1.0/bits/unordered_map.h:1147:37: required from here
/usr/local/include/c++/12.1.0/bits/hashtable.h:263:13: error: no type named '_State' in 'using __rehash_type = struct std::__detail::_Prime_rehash_policy'
263 | using __rehash_state = typename __rehash_type::_State;
| ^~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h:377:13: error: no type named 'size_type' in 'struct std::__detail::_Hashtable_base<int, std::pair<const int, int>, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<false, false, true> >'
377 | using size_type = typename __hashtable_base::size_type;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h:378:13: error: no type named 'difference_type' in 'struct std::__detail::_Hashtable_base<int, std::pair<const int, int>, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<false, false, true> >'
378 | using difference_type = typename __hashtable_base::difference_type;
| ^~~~~~~~~~~~~~~
In file included from /usr/local/include/c++/12.1.0/unordered_map:47:
/usr/local/include/c++/12.1.0/bits/unordered_map.h: In instantiation of 'class std::unordered_map<int, int>':
/usr/local/include/c++/12.1.0/bits/unordered_map.h:1147:37: required from here
/usr/local/include/c++/12.1.0/bits/unordered_map.h:907:54: error: 'const std::unordered_map<int, int>::_Hashtable' has no member named '_M_count_tr'
907 | count(const _Kt& __x) const -> decltype(_M_h._M_count_tr(__x))
| ~~~~~^~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/unordered_map.h: At global scope:
/usr/local/include/c++/12.1.0/bits/unordered_map.h:1147:53: error: invalid combination of multiple type-specifiers
1147 | typename unordered_map<int, int>::size_type = {},
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/unordered_map.h:1160:53: error: invalid combination of multiple type-specifiers
1160 | typename unordered_map<int, int>::size_type = {},
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/unordered_map.h:1168:53: error: invalid combination of multiple type-specifiers
1168 | typename unordered_map<int, int>::size_type, _Allocator)
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/unordered_map.h:1190:53: error: invalid combination of multiple type-specifiers
1190 | typename unordered_map<int, int>::size_type,
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/unordered_map.h:1199:53: error: invalid combination of multiple type-specifiers
1199 | typename unordered_map<int, int>::size_type,
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/unordered_map.h:1212:53: error: invalid combination of multiple type-specifiers
1212 | typename unordered_map<int, int>::size_type,
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In instantiation of 'struct std::__detail::_Hashtable_base<int, std::pair<const int, int>, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<false, false, false> >':
/usr/local/include/c++/12.1.0/bits/hashtable.h:180:11: required from 'class std::_Hashtable<int, std::pair<const int, int>, std::allocator<std::pair<const int, int> >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, false> >'
/usr/local/include/c++/12.1.0/bits/unordered_map.h:1248:18: required from 'class std::unordered_multimap<int, int>'
/usr/local/include/c++/12.1.0/bits/unordered_map.h:2047:38: required from here
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1648:13: error: no type named '__hash_code' in 'struct std::__detail::_Hash_code_base<int, std::pair<const int, int>, std::__detail::_Select1st, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, false>'
1648 | using __hash_code = typename __hash_code_base::__hash_code;
| ^~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h: In instantiation of 'struct std::__detail::_Insert_base<int, std::pair<const int, int>, std::allocator<std::pair<const int, int> >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, false> >':
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:1051:12: required from 'struct std::__detail::_Insert<int, std::pair<const int, int>, std::allocator<std::pair<const int, int> >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, false>, false>'
/usr/local/include/c++/12.1.0/bits/hashtable.h:180:11: required from 'class std::_Hashtable<int, std::pair<const int, int>, std::allocator<std::pair<const int, int> >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, false> >'
/usr/local/include/c++/12.1.0/bits/unordered_map.h:1248:18: required from 'class std::unordered_multimap<int, int>'
/usr/local/include/c++/12.1.0/bits/unordered_map.h:2047:38: required from here
/usr/local/include/c++/12.1.0/bits/hashtable_policy.h:854:13: error: no type named 'size_type' in 'struct std::__detail::_Hashtable_base<int, std::pair<const int, int>, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<false, false, false> >'
854 | using size_type = typename __hashtable_base::size_type;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h: In instantiation of 'class std::_Hashtable<int, std::pair<const int, int>, std::allocator<std::pair<const int, int> >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, false> >':
/usr/local/include/c++/12.1.0/bits/unordered_map.h:1248:18: required from 'class std::unordered_multimap<int, int>'
/usr/local/include/c++/12.1.0/bits/unordered_map.h:2047:38: required from here
/usr/local/include/c++/12.1.0/bits/hashtable.h:263:13: error: no type named '_State' in 'using __rehash_type = struct std::__detail::_Prime_rehash_policy'
263 | using __rehash_state = typename __rehash_type::_State;
| ^~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h:377:13: error: no type named 'size_type' in 'struct std::__detail::_Hashtable_base<int, std::pair<const int, int>, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<false, false, false> >'
377 | using size_type = typename __hashtable_base::size_type;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/bits/hashtable.h:378:13: error: no type named 'difference_type' in 'struct std::__detail::_Hashtable_base<int, std::pair<const int, int>, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<false, false, false> >'
378 | using difference_type = typename __hashtable_base::difference_type;
| ^~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bits/unordered_map.h: In instantiation of 'class std::unordered_multimap<int, int>':
/usr/local/include/c++/12.1.0/bits/unordered_map.h:2047:38: required from here
/usr/local/include/c++/12.1.0/bits/unordered_map.h:1846:54: error: 'const std::unordered_multimap<int, int>::_Hashtable' has no member named '_M_count_tr'
1846 | count(const _Kt& __x) const -> decltype(_M_h._M_count_tr(__x))
| ~~~~~^~~~~~~~~~~
In file included from /usr/local/include/c++/12.1.0/memory:67,
from N4910.h:14:
/usr/local/include/c++/12.1.0/bits/stl_tempbuf.h: In function 'std::pair<_Tp*, long int> std::get_temporary_buffer(ptrdiff_t)':
/usr/local/include/c++/12.1.0/bits/stl_tempbuf.h:110:56: error: no matching function for call to 'operator new(long unsigned int, const std::nothrow_t&)'
110 | _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp),
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
111 | std::nothrow));
| ~~~~~~~~~~~~~
<built-in>: note: candidate: 'void* operator new(long unsigned int)'
<built-in>: note: candidate expects 1 argument, 2 provided
<built-in>: note: candidate: 'void* operator new(long unsigned int, std::align_val_t)'
<built-in>: note: no known conversion for argument 2 from 'const std::nothrow_t' to 'std::align_val_t'
In file included from /usr/local/include/c++/12.1.0/bits/shared_ptr_base.h:53,
from /usr/local/include/c++/12.1.0/bits/shared_ptr.h:53,
from /usr/local/include/c++/12.1.0/memory:77:
/usr/local/include/c++/12.1.0/bits/allocated_ptr.h: At global scope:
/usr/local/include/c++/12.1.0/bits/allocated_ptr.h:79:17: error: 'std::nullptr_t' has not been declared
79 | operator=(std::nullptr_t) noexcept
| ^~~
In file included from N4910.h:16:
/usr/local/include/c++/12.1.0/any:92:56: error: expected ';' at end of member declaration
92 | aligned_storage<sizeof(_M_ptr), alignof(void*)>::type _M_buffer;
| ^~~~
| ;
/usr/local/include/c++/12.1.0/any:92:61: error: '_M_buffer' does not name a type
92 | aligned_storage<sizeof(_M_ptr), alignof(void*)>::type _M_buffer;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/any: In static member function 'static void std::any::_Manager_internal<_Tp>::_S_create(std::any::_Storage&, _Up&&)':
/usr/local/include/c++/12.1.0/any:379:39: error: 'union std::any::_Storage' has no member named '_M_buffer'
379 | void* __addr = &__storage._M_buffer;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/any: In static member function 'static void std::any::_Manager_internal<_Tp>::_S_create(std::any::_Storage&, _Args&& ...)':
/usr/local/include/c++/12.1.0/any:387:39: error: 'union std::any::_Storage' has no member named '_M_buffer'
387 | void* __addr = &__storage._M_buffer;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/any: In static member function 'static _Tp* std::any::_Manager_internal<_Tp>::_S_access(const std::any::_Storage&)':
/usr/local/include/c++/12.1.0/any:395:43: error: 'const union std::any::_Storage' has no member named '_M_buffer'
395 | const void* __addr = &__storage._M_buffer;
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/any: In static member function 'static void std::any::_Manager_internal<_Tp>::_S_manage(std::any::_Op, const std::any*, std::any::_Arg*)':
/usr/local/include/c++/12.1.0/any:578:68: error: 'const union std::any::_Storage' has no member named '_M_buffer'
578 | auto __ptr = reinterpret_cast<const _Tp*>(&__any->_M_storage._M_buffer);
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/any:590:42: error: 'union std::any::_Storage' has no member named '_M_buffer'
590 | ::new(&__arg->_M_any->_M_storage._M_buffer) _Tp(*__ptr);
| ^~~~~~~~~
/usr/local/include/c++/12.1.0/any:597:42: error: 'union std::any::_Storage' has no member named '_M_buffer'
597 | ::new(&__arg->_M_any->_M_storage._M_buffer) _Tp
| ^~~~~~~~~
In file included from N4910.h:17:
/usr/local/include/c++/12.1.0/bitset: At global scope:
/usr/local/include/c++/12.1.0/bitset:760:44: error: 'basic_string' in namespace 'std' does not name a template type
760 | _M_check_initial_position(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1:1: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
+++ |+#include <string>
1 | // <bitset> -*- C++ -*-
/usr/local/include/c++/12.1.0/bitset:760:56: error: expected ',' or '...' before '<' token
760 | _M_check_initial_position(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^
/usr/local/include/c++/12.1.0/bitset:893:27: error: 'basic_string' in namespace 'std' does not name a template type
893 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:893:22: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
893 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~
/usr/local/include/c++/12.1.0/bitset:893:39: error: expected ',' or '...' before '<' token
893 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^
/usr/local/include/c++/12.1.0/bitset:914:27: error: 'basic_string' in namespace 'std' does not name a template type
914 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:914:22: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
914 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~
/usr/local/include/c++/12.1.0/bitset:914:39: error: expected ',' or '...' before '<' token
914 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^
/usr/local/include/c++/12.1.0/bitset:914:9: error: 'template<long unsigned int _Nb> template<class _CharT, class _Traits, class _Alloc> std::bitset<_Nb>::bitset(int)' cannot be overloaded with 'template<long unsigned int _Nb> template<class _CharT, class _Traits, class _Alloc> std::bitset<_Nb>::bitset(int)'
914 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~~~~
/usr/local/include/c++/12.1.0/bitset:893:9: note: previous declaration 'template<long unsigned int _Nb> template<class _CharT, class _Traits, class _Alloc> std::bitset<_Nb>::bitset(int)'
893 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~~~~
/usr/local/include/c++/12.1.0/bitset:925:27: error: 'basic_string' in namespace 'std' does not name a template type
925 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:925:22: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
925 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~
/usr/local/include/c++/12.1.0/bitset:925:39: error: expected ',' or '...' before '<' token
925 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^
/usr/local/include/c++/12.1.0/bitset:925:9: error: 'template<long unsigned int _Nb> template<class _CharT, class _Traits, class _Alloc> std::bitset<_Nb>::bitset(int)' cannot be overloaded with 'template<long unsigned int _Nb> template<class _CharT, class _Traits, class _Alloc> std::bitset<_Nb>::bitset(int)'
925 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~~~~
/usr/local/include/c++/12.1.0/bitset:893:9: note: previous declaration 'template<long unsigned int _Nb> template<class _CharT, class _Traits, class _Alloc> std::bitset<_Nb>::bitset(int)'
893 | bitset(const std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~~~~
/usr/local/include/c++/12.1.0/bitset:947:30: error: 'basic_string' in namespace 'std' does not name a template type
947 | typename std::basic_string<_CharT>::size_type __n
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:947:30: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
/usr/local/include/c++/12.1.0/bitset:947:42: error: expected ',' or '...' before '<' token
947 | typename std::basic_string<_CharT>::size_type __n
| ^
/usr/local/include/c++/12.1.0/bitset:1196:14: error: 'basic_string' in namespace 'std' does not name a template type
1196 | std::basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1196:9: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
1196 | std::basic_string<_CharT, _Traits, _Alloc>
| ^~~
/usr/local/include/c++/12.1.0/bitset:1207:14: error: 'basic_string' in namespace 'std' does not name a template type
1207 | std::basic_string<_CharT, _Traits, _Alloc>
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1207:9: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
1207 | std::basic_string<_CharT, _Traits, _Alloc>
| ^~~
/usr/local/include/c++/12.1.0/bitset:1218:14: error: 'basic_string' in namespace 'std' does not name a template type
1218 | std::basic_string<_CharT, _Traits, std::allocator<_CharT> >
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1218:9: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
1218 | std::basic_string<_CharT, _Traits, std::allocator<_CharT> >
| ^~~
/usr/local/include/c++/12.1.0/bitset:1225:14: error: 'basic_string' in namespace 'std' does not name a template type
1225 | std::basic_string<_CharT, _Traits, std::allocator<_CharT> >
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1225:9: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
1225 | std::basic_string<_CharT, _Traits, std::allocator<_CharT> >
| ^~~
/usr/local/include/c++/12.1.0/bitset:1231:14: error: 'basic_string' in namespace 'std' does not name a template type
1231 | std::basic_string<_CharT, std::char_traits<_CharT>,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1231:9: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
1231 | std::basic_string<_CharT, std::char_traits<_CharT>,
| ^~~
/usr/local/include/c++/12.1.0/bitset:1240:14: error: 'basic_string' in namespace 'std' does not name a template type
1240 | std::basic_string<_CharT, std::char_traits<_CharT>,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1240:9: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
1240 | std::basic_string<_CharT, std::char_traits<_CharT>,
| ^~~
/usr/local/include/c++/12.1.0/bitset:1248:12: error: 'basic_string' in namespace 'std' does not name a template type
1248 | std::basic_string<char, std::char_traits<char>, std::allocator<char> >
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1248:7: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
1248 | std::basic_string<char, std::char_traits<char>, std::allocator<char> >
| ^~~
/usr/local/include/c++/12.1.0/bitset:1255:12: error: 'basic_string' in namespace 'std' does not name a template type
1255 | std::basic_string<char, std::char_traits<char>, std::allocator<char> >
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1255:7: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
1255 | std::basic_string<char, std::char_traits<char>, std::allocator<char> >
| ^~~
/usr/local/include/c++/12.1.0/bitset:1270:40: error: 'basic_string' in namespace 'std' does not name a template type
1270 | _M_copy_from_string(const std::basic_string<_CharT,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1270:35: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
1270 | _M_copy_from_string(const std::basic_string<_CharT,
| ^~~
/usr/local/include/c++/12.1.0/bitset:1270:52: error: expected ',' or '...' before '<' token
1270 | _M_copy_from_string(const std::basic_string<_CharT,
| ^
/usr/local/include/c++/12.1.0/bitset:1278:27: error: 'std::basic_string' has not been declared
1278 | _M_copy_to_string(std::basic_string<_CharT, _Traits, _Alloc>&,
| ^~~
/usr/local/include/c++/12.1.0/bitset:1278:44: error: expected ',' or '...' before '<' token
1278 | _M_copy_to_string(std::basic_string<_CharT, _Traits, _Alloc>&,
| ^
/usr/local/include/c++/12.1.0/bitset:1284:40: error: 'basic_string' in namespace 'std' does not name a template type
1284 | _M_copy_from_string(const std::basic_string<_CharT,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1284:35: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
1284 | _M_copy_from_string(const std::basic_string<_CharT,
| ^~~
/usr/local/include/c++/12.1.0/bitset:1284:52: error: expected ',' or '...' before '<' token
1284 | _M_copy_from_string(const std::basic_string<_CharT,
| ^
/usr/local/include/c++/12.1.0/bitset:1284:9: error: 'template<long unsigned int _Nb> template<class _CharT, class _Traits, class _Alloc> void std::bitset<_Nb>::_M_copy_from_string(int)' cannot be overloaded with 'template<long unsigned int _Nb> template<class _CharT, class _Traits, class _Alloc> void std::bitset<_Nb>::_M_copy_from_string(int)'
1284 | _M_copy_from_string(const std::basic_string<_CharT,
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1270:9: note: previous declaration 'template<long unsigned int _Nb> template<class _CharT, class _Traits, class _Alloc> void std::bitset<_Nb>::_M_copy_from_string(int)'
1270 | _M_copy_from_string(const std::basic_string<_CharT,
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1290:27: error: 'std::basic_string' has not been declared
1290 | _M_copy_to_string(std::basic_string<_CharT, _Traits,_Alloc>& __s) const
| ^~~
/usr/local/include/c++/12.1.0/bitset:1290:44: error: expected ',' or '...' before '<' token
1290 | _M_copy_to_string(std::basic_string<_CharT, _Traits,_Alloc>& __s) const
| ^
/usr/local/include/c++/12.1.0/bitset:1290:9: error: 'template<long unsigned int _Nb> template<class _CharT, class _Traits, class _Alloc> void std::bitset<_Nb>::_M_copy_to_string(int) const' cannot be overloaded with 'template<long unsigned int _Nb> template<class _CharT, class _Traits, class _Alloc> void std::bitset<_Nb>::_M_copy_to_string(int) const'
1290 | _M_copy_to_string(std::basic_string<_CharT, _Traits,_Alloc>& __s) const
| ^~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1278:9: note: previous declaration 'template<long unsigned int _Nb> template<class _CharT, class _Traits, class _Alloc> void std::bitset<_Nb>::_M_copy_to_string(int) const'
1278 | _M_copy_to_string(std::basic_string<_CharT, _Traits, _Alloc>&,
| ^~~~~~~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset: In member function 'void std::bitset<_Nb>::_M_check_initial_position(int) const':
/usr/local/include/c++/12.1.0/bitset:763:13: error: '__position' was not declared in this scope
763 | if (__position > __s.size())
| ^~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:763:26: error: '__s' was not declared in this scope
763 | if (__position > __s.size())
| ^~~
/usr/local/include/c++/12.1.0/bitset: In constructor 'std::bitset<_Nb>::bitset(int)':
/usr/local/include/c++/12.1.0/bitset:897:37: error: '__s' was not declared in this scope
897 | _M_check_initial_position(__s, __position);
| ^~~
/usr/local/include/c++/12.1.0/bitset:897:42: error: '__position' was not declared in this scope
897 | _M_check_initial_position(__s, __position);
| ^~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:899:36: error: 'basic_string' is not a member of 'std'
899 | std::basic_string<_CharT, _Traits, _Alloc>::npos,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:899:36: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
/usr/local/include/c++/12.1.0/bitset:899:55: error: expected primary-expression before ',' token
899 | std::basic_string<_CharT, _Traits, _Alloc>::npos,
| ^
/usr/local/include/c++/12.1.0/bitset:899:64: error: expected primary-expression before ',' token
899 | std::basic_string<_CharT, _Traits, _Alloc>::npos,
| ^
/usr/local/include/c++/12.1.0/bitset:899:72: error: expected primary-expression before '>' token
899 | std::basic_string<_CharT, _Traits, _Alloc>::npos,
| ^
/usr/local/include/c++/12.1.0/bitset:899:75: error: '::npos' has not been declared; did you mean 'fpos'?
899 | std::basic_string<_CharT, _Traits, _Alloc>::npos,
| ^~~~
| fpos
/usr/local/include/c++/12.1.0/bitset: In constructor 'std::bitset<_Nb>::bitset(int)':
/usr/local/include/c++/12.1.0/bitset:918:37: error: '__s' was not declared in this scope
918 | _M_check_initial_position(__s, __position);
| ^~~
/usr/local/include/c++/12.1.0/bitset:918:42: error: '__position' was not declared in this scope
918 | _M_check_initial_position(__s, __position);
| ^~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:919:48: error: '__n' was not declared in this scope; did you mean '__yn'?
919 | _M_copy_from_string(__s, __position, __n, _CharT('0'), _CharT('1'));
| ^~~
| __yn
/usr/local/include/c++/12.1.0/bitset: In constructor 'std::bitset<_Nb>::bitset(int)':
/usr/local/include/c++/12.1.0/bitset:930:37: error: '__s' was not declared in this scope
930 | _M_check_initial_position(__s, __position);
| ^~~
/usr/local/include/c++/12.1.0/bitset:930:42: error: '__position' was not declared in this scope
930 | _M_check_initial_position(__s, __position);
| ^~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:931:48: error: '__n' was not declared in this scope; did you mean '__yn'?
931 | _M_copy_from_string(__s, __position, __n, __zero, __one);
| ^~~
| __yn
/usr/local/include/c++/12.1.0/bitset:931:53: error: '__zero' was not declared in this scope; did you mean '__lerp'?
931 | _M_copy_from_string(__s, __position, __n, __zero, __one);
| ^~~~~~
| __lerp
/usr/local/include/c++/12.1.0/bitset:931:61: error: '__one' was not declared in this scope
931 | _M_copy_from_string(__s, __position, __n, __zero, __one);
| ^~~~~
/usr/local/include/c++/12.1.0/bitset: In constructor 'std::bitset<_Nb>::bitset(const _CharT*, int)':
/usr/local/include/c++/12.1.0/bitset:955:15: error: '__n' was not declared in this scope; did you mean '__yn'?
955 | if (__n == std::basic_string<_CharT>::npos)
| ^~~
| __yn
/usr/local/include/c++/12.1.0/bitset:955:27: error: 'basic_string' is not a member of 'std'
955 | if (__n == std::basic_string<_CharT>::npos)
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:955:27: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
/usr/local/include/c++/12.1.0/bitset:955:46: error: expected primary-expression before '>' token
955 | if (__n == std::basic_string<_CharT>::npos)
| ^
/usr/local/include/c++/12.1.0/bitset:955:49: error: '::npos' has not been declared; did you mean 'fpos'?
955 | if (__n == std::basic_string<_CharT>::npos)
| ^~~~
| fpos
/usr/local/include/c++/12.1.0/bitset:957:69: error: '__n' was not declared in this scope; did you mean '__yn'?
957 | _M_copy_from_ptr<_CharT, std::char_traits<_CharT>>(__str, __n, 0,
| ^~~
| __yn
/usr/local/include/c++/12.1.0/bitset:958:67: error: '__zero' was not declared in this scope; did you mean '__lerp'?
958 | __n, __zero,
| ^~~~~~
| __lerp
/usr/local/include/c++/12.1.0/bitset:959:62: error: '__one' was not declared in this scope
959 | __one);
| ^~~~~
/usr/local/include/c++/12.1.0/bitset: In member function 'void std::bitset<_Nb>::_M_copy_from_string(int)':
/usr/local/include/c++/12.1.0/bitset:1273:45: error: '__s' was not declared in this scope
1273 | { _M_copy_from_ptr<_CharT, _Traits>(__s.data(), __s.size(), __pos, __n,
| ^~~
/usr/local/include/c++/12.1.0/bitset:1273:69: error: '__pos' was not declared in this scope; did you mean '__pow'?
1273 | { _M_copy_from_ptr<_CharT, _Traits>(__s.data(), __s.size(), __pos, __n,
| ^~~~~
| __pow
/usr/local/include/c++/12.1.0/bitset:1273:76: error: '__n' was not declared in this scope; did you mean '__y'?
1273 | { _M_copy_from_ptr<_CharT, _Traits>(__s.data(), __s.size(), __pos, __n,
| ^~~
| __yn
/usr/local/include/c++/12.1.0/bitset:1274:45: error: '__zero' was not declared in this scope; did you mean '__lerp'?
1274 | __zero, __one); }
| ^~~~~~
| __lerp
/usr/local/include/c++/12.1.0/bitset:1274:53: error: '__one' was not declared in this scope
1274 | __zero, __one); }
| ^~~~~
/usr/local/include/c++/12.1.0/bitset: In member function 'void std::bitset<_Nb>::_M_copy_from_string(int)':
/usr/local/include/c++/12.1.0/bitset:1286:31: error: '__s' was not declared in this scope
1286 | { _M_copy_from_string(__s, __pos, __n, _CharT('0'), _CharT('1')); }
| ^~~
/usr/local/include/c++/12.1.0/bitset:1286:36: error: '__pos' was not declared in this scope; did you mean '__pow'?
1286 | { _M_copy_from_string(__s, __pos, __n, _CharT('0'), _CharT('1')); }
| ^~~~~
| __pow
/usr/local/include/c++/12.1.0/bitset:1286:43: error: '__n' was not declared in this scope; did you mean '__y'?
1286 | { _M_copy_from_string(__s, __pos, __n, _CharT('0'), _CharT('1')); }
| ^~~
| __yn
/usr/local/include/c++/12.1.0/bitset: In member function 'void std::bitset<_Nb>::_M_copy_to_string(int) cons':
/usr/local/include/c++/12.1.0/bitset:1291:29: error: '__s' was not declared in this scope
1291 | { _M_copy_to_string(__s, _CharT('0'), _CharT('1')); }
| ^~~
/usr/local/include/c++/12.1.0/bitset: At global scope:
/usr/local/include/c++/12.1.0/bitset:1413:7: error: variable or field '_M_copy_to_string' declared void
1413 | bitset<_Nb>::
| ^~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1414:30: error: 'basic_string' is not a member of 'std'
1414 | _M_copy_to_string(std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1414:30: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
/usr/local/include/c++/12.1.0/bitset:1414:49: error: expected primary-expression before ',' token
1414 | _M_copy_to_string(std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^
/usr/local/include/c++/12.1.0/bitset:1414:58: error: expected primary-expression before ',' token
1414 | _M_copy_to_string(std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^
/usr/local/include/c++/12.1.0/bitset:1414:66: error: expected primary-expression before '>' token
1414 | _M_copy_to_string(std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^
/usr/local/include/c++/12.1.0/bitset:1414:69: error: '__s' was not declared in this scope
1414 | _M_copy_to_string(std::basic_string<_CharT, _Traits, _Alloc>& __s,
| ^~~
/usr/local/include/c++/12.1.0/bitset:1415:32: error: expected primary-expression before '__zero'
1415 | _CharT __zero, _CharT __one) const
| ^~~~~~
/usr/local/include/c++/12.1.0/bitset:1415:47: error: expected primary-expression before '__one'
1415 | _CharT __zero, _CharT __one) const
| ^~~~~
/usr/local/include/c++/12.1.0/bitset: In function 'std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)':
/usr/local/include/c++/12.1.0/bitset:1478:12: error: 'basic_string' is not a member of 'std'
1478 | std::basic_string<_CharT, _Traits> __tmp;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1478:12: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
/usr/local/include/c++/12.1.0/bitset:1478:31: error: expected primary-expression before ',' token
1478 | std::basic_string<_CharT, _Traits> __tmp;
| ^
/usr/local/include/c++/12.1.0/bitset:1478:40: error: expected primary-expression before '>' token
1478 | std::basic_string<_CharT, _Traits> __tmp;
| ^
/usr/local/include/c++/12.1.0/bitset:1478:42: error: '__tmp' was not declared in this scope
1478 | std::basic_string<_CharT, _Traits> __tmp;
| ^~~~~
/usr/local/include/c++/12.1.0/bitset: In function 'std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)':
/usr/local/include/c++/12.1.0/bitset:1543:12: error: 'basic_string' is not a member of 'std'
1543 | std::basic_string<_CharT, _Traits> __tmp;
| ^~~~~~~~~~~~
/usr/local/include/c++/12.1.0/bitset:1543:12: note: 'std::basic_string' is defined in header '<string>'; did you forget to '#include <string>'?
/usr/local/include/c++/12.1.0/bitset:1543:31: error: expected primary-expression before ',' token
1543 | std::basic_string<_CharT, _Traits> __tmp;
| ^
/usr/local/include/c++/12.1.0/bitset:1543:40: error: expected primary-expression before '>' token
1543 | std::basic_string<_CharT, _Traits> __tmp;
| ^
/usr/local/include/c++/12.1.0/bitset:1543:42: error: '__tmp' was not declared in this scope
1543 | std::basic_string<_CharT, _Traits> __tmp;
| ^~~~~
p1382.cpp: At global scope:
p1382.cpp:20:13: error: 'see_below' does not name a type
20 | using rep = see_below ;
| ^~~~~~~~~
p1382.cpp:21:22: error: 'unspecified' was not declared in this scope
21 | using period = ratio<unspecified,
| ^~~~~~~~~~~
p1382.cpp:21:22: error: 'unspecified' was not declared in this scope
p1382.cpp:21:22: error: 'unspecified' was not declared in this scope
p1382.cpp:21:22: error: 'unspecified' was not declared in this scope
p1382.cpp:21:22: error: 'unspecified' was not declared in this scope
p1382.cpp:21:22: error: 'unspecified' was not declared in this scope
p1382.cpp:21:16: error: 'ratio' does not name a type
21 | using period = ratio<unspecified,
| ^~~~~
p1382.cpp:23:28: error: 'time_point' in namespace 'std::chrono' does not name a template type
23 | using time_point = chrono::time_point<system_clock>; static constexpr bool is_steady = unspecified;
| ^~~~~~~~~~
p1382.cpp:23:88: error: 'unspecified' was not declared in this scope
23 | using time_point = chrono::time_point<system_clock>; static constexpr bool is_steady = unspecified;
| ^~~~~~~~~~~
p1382.cpp:24:12: error: 'time_point' does not name a type; did you mean 'time_put'?
24 | static time_point now() noexcept;
| ^~~~~~~~~~
| time_put
p1382.cpp:26:32: error: 'time_point' does not name a type; did you mean 'time_put'?
26 | static time_t to_time_t (const time_point& t) noexcept; static time_point from_time_t(time_t t) noexcept;
| ^~~~~~~~~~
| time_put
p1382.cpp:26:64: error: 'time_point' does not name a type; did you mean 'time_put'?
26 | static time_t to_time_t (const time_point& t) noexcept; static time_point from_time_t(time_t t) noexcept;
| ^~~~~~~~~~
| time_put
p1382.cpp:28:8: error: 'time_point' does not name a type; did you mean 'time_t'?
28 | static time_point from_time_t(time_t t) noexcept;
| ^~~~~~~~~~
| time_t
p1382.cpp:29:1: error: 'unspecified' does not name a type
29 | unspecified >;
| ^~~~~~~~~~~
p1382.cpp:33:7: error: 'system_clock' has not been declared
33 | using system_clock::rep = unspecified;
| ^~~~~~~~~~~~
p1382.cpp:33:24: error: expected ';' before '=' token
33 | using system_clock::rep = unspecified;
| ^~
| ;
p1382.cpp:33:25: error: expected unqualified-id before '=' token
33 | using system_clock::rep = unspecified;
| ^
p1382.cpp:35:34: error: 'time_point' does not name a type; did you mean 'time_t'?
35 | static time_t to_time_t(const time_point& t) noexcept;
| ^~~~~~~~~~
| time_t
p1382.cpp:41:52: error: 'sys_time' does not name a type; did you mean 'SYS_time'?
41 | operator<<(basic_ostream<charT, traits>& os, const sys_time<Duration>& tp);
| ^~~~~~~~
| SYS_time
p1382.cpp:41:60: error: expected ',' or '...' before '<' token
41 | operator<<(basic_ostream<charT, traits>& os, const sys_time<Duration>& tp);
| ^
p1382.cpp:44:1: error: expected unqualified-id before 'return'
44 | return os << format(os.getloc(), STATICALLY-WIDEN("{:L%F %T}"), tp);
| ^~~~~~
p1382.cpp:46:3: error: 'cout' does not name a type
46 | cout << sys_seconds{0s} << '\n';
| ^~~~
p1382.cpp:46:27: error: expected unqualified-id before '<<' token
46 | cout << sys_seconds{0s} << '\n';
| ^~
p1382.cpp:47:3: error: 'cout' does not name a type
47 | cout << sys_seconds{946'684'800s} << '\n';
| ^~~~
p1382.cpp:47:37: error: expected unqualified-id before '<<' token
47 | cout << sys_seconds{946'684'800s} << '\n';
| ^~
p1382.cpp:48:3: error: 'cout' does not name a type
48 | cout << sys_seconds{946'688'523s} << '\n';
| ^~~~
p1382.cpp:48:37: error: expected unqualified-id before '<<' token
48 | cout << sys_seconds{946'688'523s} << '\n';
| ^~
p1382.cpp:52:52: error: 'sys_days' does not name a type
52 | operator<<(basic_ostream<charT, traits>& os, const sys_days& dp);
| ^~~~~~~~
p1382.cpp:57:13: error: 'sys_time' has not been declared
57 | sys_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^~~~~~~~
p1382.cpp:57:21: error: expected ',' or '...' before '<' token
57 | sys_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^
p1382.cpp:66:19: error: 'a' does not name a type
66 | using rep = a signed arithmetic type;
| ^
p1382.cpp:67:28: error: 'unspecified' was not declared in this scope
67 | using period = ratio<unspecified, unspecified>;
| ^~~~~~~~~~~
p1382.cpp:67:41: error: 'unspecified' was not declared in this scope
67 | using period = ratio<unspecified, unspecified>;
| ^~~~~~~~~~~
p1382.cpp:67:28: error: 'unspecified' was not declared in this scope
67 | using period = ratio<unspecified, unspecified>;
| ^~~~~~~~~~~
p1382.cpp:67:41: error: 'unspecified' was not declared in this scope
67 | using period = ratio<unspecified, unspecified>;
| ^~~~~~~~~~~
p1382.cpp:67:28: error: 'unspecified' was not declared in this scope
67 | using period = ratio<unspecified, unspecified>;
| ^~~~~~~~~~~
p1382.cpp:67:41: error: 'unspecified' was not declared in this scope
67 | using period = ratio<unspecified, unspecified>;
| ^~~~~~~~~~~
p1382.cpp:67:28: error: 'unspecified' was not declared in this scope
67 | using period = ratio<unspecified, unspecified>;
| ^~~~~~~~~~~
p1382.cpp:67:41: error: 'unspecified' was not declared in this scope
67 | using period = ratio<unspecified, unspecified>;
| ^~~~~~~~~~~
p1382.cpp:67:28: error: 'unspecified' was not declared in this scope
67 | using period = ratio<unspecified, unspecified>;
| ^~~~~~~~~~~
p1382.cpp:67:41: error: 'unspecified' was not declared in this scope
67 | using period = ratio<unspecified, unspecified>;
| ^~~~~~~~~~~
p1382.cpp:67:28: error: 'unspecified' was not declared in this scope
67 | using period = ratio<unspecified, unspecified>;
| ^~~~~~~~~~~
p1382.cpp:67:41: error: 'unspecified' was not declared in this scope
67 | using period = ratio<unspecified, unspecified>;
| ^~~~~~~~~~~
p1382.cpp:67:22: error: 'ratio' does not name a type
67 | using period = ratio<unspecified, unspecified>;
| ^~~~~
p1382.cpp:68:32: error: 'duration' in namespace 'std::chrono' does not name a template type
68 | using duration = chrono::duration<rep, period>;
| ^~~~~~~~
p1382.cpp:69:34: error: 'time_point' in namespace 'std::chrono' does not name a template type
69 | using time_point = chrono::time_point<utc_clock>;
| ^~~~~~~~~~
p1382.cpp:70:41: error: 'unspecified' was not declared in this scope
70 | static constexpr bool is_steady = unspecified;
| ^~~~~~~~~~~
p1382.cpp:71:14: error: 'time_point' does not name a type; did you mean 'time_put'?
71 | static time_point now();
| ^~~~~~~~~~
| time_put
p1382.cpp:73:47: error: 'seconds' was not declared in this scope; did you mean 'ends'?
73 | static sys_time<common_type_t<Duration, seconds>>
| ^~~~~~~
| ends
p1382.cpp:73:47: error: template argument 2 is invalid
p1382.cpp:73:14: error: 'sys_time' does not name a type; did you mean 'SYS_time'?
73 | static sys_time<common_type_t<Duration, seconds>>
| ^~~~~~~~
| SYS_time
p1382.cpp:76:47: error: 'seconds' was not declared in this scope; did you mean 'ends'?
76 | static utc_time<common_type_t<Duration, seconds>>
| ^~~~~~~
| ends
p1382.cpp:76:47: error: template argument 2 is invalid
p1382.cpp:76:14: error: 'utc_time' does not name a type
76 | static utc_time<common_type_t<Duration, seconds>>
| ^~~~~~~~
p1382.cpp:82:26: error: 'charT' was not declared in this scope; did you mean 'char'?
82 | operator<<(basic_ostream<charT, traits>& os, const utc_time<Duration>& t);
| ^~~~~
| char
p1382.cpp:82:33: error: 'traits' was not declared in this scope
82 | operator<<(basic_ostream<charT, traits>& os, const utc_time<Duration>& t);
| ^~~~~~
p1382.cpp:82:39: error: template argument 1 is invalid
82 | operator<<(basic_ostream<charT, traits>& os, const utc_time<Duration>& t);
| ^
p1382.cpp:82:39: error: template argument 2 is invalid
p1382.cpp:82:61: error: 'Duration' was not declared in this scope
82 | operator<<(basic_ostream<charT, traits>& os, const utc_time<Duration>& t);
| ^~~~~~~~
p1382.cpp:82:61: error: 'Duration' was not declared in this scope
p1382.cpp:82:61: error: 'Duration' was not declared in this scope
p1382.cpp:82:61: error: 'Duration' was not declared in this scope
p1382.cpp:82:61: error: 'Duration' was not declared in this scope
p1382.cpp:82:61: error: 'Duration' was not declared in this scope
p1382.cpp:82:52: error: 'utc_time' does not name a type
82 | operator<<(basic_ostream<charT, traits>& os, const utc_time<Duration>& t);
| ^~~~~~~~
p1382.cpp:82:60: error: expected ',' or '...' before '<' token
82 | operator<<(basic_ostream<charT, traits>& os, const utc_time<Duration>& t);
| ^
p1382.cpp:82:74: error: expected constructor, destructor, or type conversion before ';' token
82 | operator<<(basic_ostream<charT, traits>& os, const utc_time<Duration>& t);
| ^
p1382.cpp:84:1: error: expected unqualified-id before 'return'
84 | return os << format(os.getloc(), STATICALLY-WIDEN<charT>("{:L%F %T}"), t);
| ^~~~~~
p1382.cpp:86:13: error: 'sys_days' was not declared in this scope
86 | auto t = sys_days{July/1/2015} - 500ms;
| ^~~~~~~~
p1382.cpp:86:35: error: expected ',' or ';' before '-' token
86 | auto t = sys_days{July/1/2015} - 500ms;
| ^
p1382.cpp:87:24: error: 'utc_clock' was not declared in this scope; did you mean 'std::chrono::utc_clock'?
87 | auto u = clock_cast<utc_clock>(t);
| ^~~~~~~~~
| std::chrono::utc_clock
p1382.cpp:64:11: note: 'std::chrono::utc_clock' declared here
64 | class utc_clock {
| ^~~~~~~~~
p1382.cpp:87:13: error: 'clock_cast' was not declared in this scope; did you mean 'clock_t'?
87 | auto u = clock_cast<utc_clock>(t);
| ^~~~~~~~~~~~~~~~~~~~~
| clock_t
p1382.cpp:88:4: error: expected unqualified-id before 'for'
88 | for (auto i = 0; i < 8; ++i, u += 250ms)
| ^~~
p1382.cpp:88:21: error: 'i' does not name a type
88 | for (auto i = 0; i < 8; ++i, u += 250ms)
| ^
p1382.cpp:88:28: error: expected unqualified-id before '++' token
88 | for (auto i = 0; i < 8; ++i, u += 250ms)
| ^~
p1382.cpp:91:4: error: expected unqualified-id before numeric constant
91 | 2015-06-30 23:59:59.500 UTC
| ^~~~
p1382.cpp:100:43: error: 'seconds' was not declared in this scope; did you mean 'useconds_t'?
100 | static sys_time<common_type_t<Duration, seconds>>
| ^~~~~~~
| useconds_t
p1382.cpp:100:43: error: template argument 2 is invalid
p1382.cpp:100:10: error: 'sys_time' does not name a type; did you mean 'SYS_time'?
100 | static sys_time<common_type_t<Duration, seconds>>
| ^~~~~~~~
| SYS_time
p1382.cpp:104:43: error: 'seconds' was not declared in this scope; did you mean 'useconds_t'?
104 | static utc_time<common_type_t<Duration, seconds>>
| ^~~~~~~
| useconds_t
p1382.cpp:104:43: error: template argument 2 is invalid
p1382.cpp:104:10: error: 'utc_time' does not name a type
104 | static utc_time<common_type_t<Duration, seconds>>
| ^~~~~~~~
p1382.cpp:108:13: error: 'sys_days' was not declared in this scope
108 | auto t = sys_days{July/1/2015} - 2ns;
| ^~~~~~~~
p1382.cpp:109:13: error: 'utc_clock' has not been declared
109 | auto u = utc_clock::from_sys(t);
| ^~~~~~~~~
In file included from /usr/local/include/c++/12.1.0/cassert:44,
from N4910.h:6:
p1382.cpp:110:4: error: expected unqualified-id before 'static_cast'
110 | assert(u.time_since_epoch() - t.time_since_epoch() == 25s);
| ^~~~~~
p1382.cpp:110:4: error: expected ')' before 'static_cast'
110 | assert(u.time_since_epoch() - t.time_since_epoch() == 25s);
| ^~~~~~
p1382.cpp:111:4: error: 't' does not name a type; did you mean 'tm'?
111 | t += 1ns;
| ^
| tm
p1382.cpp:112:4: error: 'u' does not name a type
112 | u = utc_clock::from_sys(t);
| ^
p1382.cpp:113:4: error: expected unqualified-id before 'static_cast'
113 | assert(u.time_since_epoch() - t.time_since_epoch() == 25s);
| ^~~~~~
p1382.cpp:113:4: error: expected ')' before 'static_cast'
113 | assert(u.time_since_epoch() - t.time_since_epoch() == 25s);
| ^~~~~~
p1382.cpp:114:4: error: 't' does not name a type; did you mean 'tm'?
114 | t += 1ns;
| ^
| tm
p1382.cpp:115:4: error: 'u' does not name a type
115 | u = utc_clock::from_sys(t);
| ^
p1382.cpp:116:4: error: expected unqualified-id before 'static_cast'
116 | assert(u.time_since_epoch() - t.time_since_epoch() == 26s);
| ^~~~~~
p1382.cpp:116:4: error: expected ')' before 'static_cast'
116 | assert(u.time_since_epoch() - t.time_since_epoch() == 26s);
| ^~~~~~
p1382.cpp:117:4: error: 't' does not name a type; did you mean 'tm'?
117 | t += 1ns;
| ^
| tm
p1382.cpp:118:4: error: 'u' does not name a type
118 | u = utc_clock::from_sys(t);
| ^
p1382.cpp:119:4: error: expected unqualified-id before 'static_cast'
119 | assert(u.time_since_epoch() - t.time_since_epoch() == 26s);
| ^~~~~~
p1382.cpp:119:4: error: expected ')' before 'static_cast'
119 | assert(u.time_since_epoch() - t.time_since_epoch() == 26s);
| ^~~~~~
p1382.cpp:123:1: error: expected unqualified-id before '}' token
123 | };
| ^
p1382.cpp:123:1: error: expected declaration before '}' token
p1382.cpp:124:27: error: 'charT' was not declared in this scope; did you mean 'char'?
124 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~
| char
p1382.cpp:124:34: error: 'traits' was not declared in this scope
124 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~~
p1382.cpp:124:40: error: template argument 1 is invalid
124 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^
p1382.cpp:124:40: error: template argument 2 is invalid
p1382.cpp:124:53: error: 'charT' does not name a type; did you mean 'char'?
124 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~
| char
p1382.cpp:125:22: error: 'Duration' was not declared in this scope
125 | utc_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^~~~~~~~
p1382.cpp:125:22: error: 'Duration' was not declared in this scope
p1382.cpp:125:22: error: 'Duration' was not declared in this scope
p1382.cpp:125:22: error: 'Duration' was not declared in this scope
p1382.cpp:125:13: error: 'utc_time' has not been declared
125 | utc_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^~~~~~~~
p1382.cpp:125:21: error: expected ',' or '...' before '<' token
125 | utc_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^
p1382.cpp:126:39: error: expected constructor, destructor, or type conversion before ';' token
126 | minutes* offset = nullptr);
| ^
p1382.cpp:129:8: error: expected unqualified-id before numeric constant
129 | 2015-06-30 23:59:60.250 UTC
| ^~~~
p1382.cpp:245:27: error: 'charT' was not declared in this scope; did you mean 'char'?
245 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~
| char
p1382.cpp:245:34: error: 'traits' was not declared in this scope
245 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~~
p1382.cpp:245:40: error: template argument 1 is invalid
245 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^
p1382.cpp:245:40: error: template argument 2 is invalid
p1382.cpp:245:53: error: 'charT' does not name a type; did you mean 'char'?
245 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~
| char
p1382.cpp:246:22: error: 'Duration' was not declared in this scope
246 | gps_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^~~~~~~~
p1382.cpp:246:22: error: 'Duration' was not declared in this scope
p1382.cpp:246:22: error: 'Duration' was not declared in this scope
p1382.cpp:246:22: error: 'Duration' was not declared in this scope
p1382.cpp:246:13: error: 'gps_time' has not been declared
246 | gps_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^~~~~~~~
p1382.cpp:246:21: error: expected ',' or '...' before '<' token
246 | gps_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^
p1382.cpp:247:39: error: expected constructor, destructor, or type conversion before ';' token
247 | minutes* offset = nullptr);
| ^
p1382.cpp:253:20: error: 'see_below' does not name a type
253 | using file_clock = see_below;
| ^~~~~~~~~
p1382.cpp:258:42: error: 'see_below' was not declared in this scope
258 | template<class Duration> static sys_time<see_below>
| ^~~~~~~~~
p1382.cpp:258:42: error: 'see_below' was not declared in this scope
p1382.cpp:258:42: error: 'see_below' was not declared in this scope
p1382.cpp:258:42: error: 'see_below' was not declared in this scope
p1382.cpp:258:42: error: 'see_below' was not declared in this scope
p1382.cpp:258:42: error: 'see_below' was not declared in this scope
p1382.cpp:258:42: error: 'see_below' was not declared in this scope
p1382.cpp:258:42: error: 'see_below' was not declared in this scope
p1382.cpp:258:33: error: 'sys_time' does not name a type; did you mean 'SYS_time'?
258 | template<class Duration> static sys_time<see_below>
| ^~~~~~~~
| SYS_time
p1382.cpp:261:18: error: 'see_below' was not declared in this scope
261 | static file_time<see_below> from_sys(const sys_time<Duration>&);
| ^~~~~~~~~
p1382.cpp:261:18: error: 'see_below' was not declared in this scope
p1382.cpp:261:18: error: 'see_below' was not declared in this scope
p1382.cpp:261:18: error: 'see_below' was not declared in this scope
p1382.cpp:261:18: error: 'see_below' was not declared in this scope
p1382.cpp:261:18: error: 'see_below' was not declared in this scope
p1382.cpp:261:18: error: 'see_below' was not declared in this scope
p1382.cpp:261:18: error: 'see_below' was not declared in this scope
p1382.cpp:261:8: error: 'file_time' does not name a type
261 | static file_time<see_below> from_sys(const sys_time<Duration>&);
| ^~~~~~~~~
p1382.cpp:263:42: error: 'see_below' was not declared in this scope
263 | template<class Duration> static utc_time<see_below>
| ^~~~~~~~~
p1382.cpp:263:42: error: 'see_below' was not declared in this scope
p1382.cpp:263:42: error: 'see_below' was not declared in this scope
p1382.cpp:263:42: error: 'see_below' was not declared in this scope
p1382.cpp:263:42: error: 'see_below' was not declared in this scope
p1382.cpp:263:42: error: 'see_below' was not declared in this scope
p1382.cpp:263:42: error: 'see_below' was not declared in this scope
p1382.cpp:263:42: error: 'see_below' was not declared in this scope
p1382.cpp:263:33: error: 'utc_time' does not name a type
263 | template<class Duration> static utc_time<see_below>
| ^~~~~~~~
p1382.cpp:266:18: error: 'see_below' was not declared in this scope
266 | static file_time<see_below> from_utc(const utc_time<Duration>&);
| ^~~~~~~~~
p1382.cpp:266:18: error: 'see_below' was not declared in this scope
p1382.cpp:266:18: error: 'see_below' was not declared in this scope
p1382.cpp:266:18: error: 'see_below' was not declared in this scope
p1382.cpp:266:18: error: 'see_below' was not declared in this scope
p1382.cpp:266:18: error: 'see_below' was not declared in this scope
p1382.cpp:266:18: error: 'see_below' was not declared in this scope
p1382.cpp:266:18: error: 'see_below' was not declared in this scope
p1382.cpp:266:8: error: 'file_time' does not name a type
266 | static file_time<see_below> from_utc(const utc_time<Duration>&);
| ^~~~~~~~~
p1382.cpp:271:56: error: 'file_time' does not name a type
271 | operator<<(basic_ostream<charT, traits>& os, const file_time<Duration>& t);
| ^~~~~~~~~
p1382.cpp:271:65: error: expected ',' or '...' before '<' token
271 | operator<<(basic_ostream<charT, traits>& os, const file_time<Duration>& t);
| ^
p1382.cpp:273:1: error: expected unqualified-id before 'return'
273 | return os << format(os.getloc(), STATICALLY-WIDEN<charT>("{:L%F %T}"), t);
| ^~~~~~
p1382.cpp:276:1: error: expected unqualified-id before '}' token
276 | }
| ^
p1382.cpp:277:27: error: 'charT' was not declared in this scope; did you mean 'char'?
277 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~
| char
p1382.cpp:277:34: error: 'traits' was not declared in this scope
277 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~~
p1382.cpp:277:40: error: template argument 1 is invalid
277 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^
p1382.cpp:277:40: error: template argument 2 is invalid
p1382.cpp:277:53: error: 'charT' does not name a type; did you mean 'char'?
277 | from_stream(basic_istream<charT, traits>& is, const charT* fmt,
| ^~~~~
| char
p1382.cpp:278:23: error: 'Duration' was not declared in this scope
278 | file_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^~~~~~~~
p1382.cpp:278:23: error: 'Duration' was not declared in this scope
p1382.cpp:278:23: error: 'Duration' was not declared in this scope
p1382.cpp:278:23: error: 'Duration' was not declared in this scope
p1382.cpp:278:13: error: 'file_time' has not been declared
278 | file_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^~~~~~~~~
p1382.cpp:278:22: error: expected ',' or '...' before '<' token
278 | file_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^
p1382.cpp:279:39: error: expected constructor, destructor, or type conversion before ';' token
279 | minutes* offset = nullptr);
| ^
p1382.cpp:286:13: error: 'unspecified' does not name a type
286 | using rep = unspecified ;
| ^~~~~~~~~~~
p1382.cpp:287:22: error: 'unspecified' was not declared in this scope
287 | using period = ratio<unspecified,
| ^~~~~~~~~~~
p1382.cpp:287:22: error: 'unspecified' was not declared in this scope
p1382.cpp:287:22: error: 'unspecified' was not declared in this scope
p1382.cpp:287:22: error: 'unspecified' was not declared in this scope
p1382.cpp:287:22: error: 'unspecified' was not declared in this scope
p1382.cpp:287:22: error: 'unspecified' was not declared in this scope
p1382.cpp:287:16: error: 'ratio' does not name a type
287 | using period = ratio<unspecified,
| ^~~~~
p1382.cpp:289:28: error: 'time_point' in namespace 'std::chrono' does not name a template type
289 | using time_point = chrono::time_point<unspecified, duration>; static constexpr bool is_steady = true;
| ^~~~~~~~~~
p1382.cpp:290:10: error: 'time_point' does not name a type; did you mean 'time_put'?
290 | static time_point now() noexcept;
| ^~~~~~~~~~
| time_put
p1382.cpp:292:1: error: 'unspecified' does not name a type
292 | unspecified >;
| ^~~~~~~~~~~
p1382.cpp:298:13: error: 'unspecified' does not name a type
298 | using rep = unspecified ;
| ^~~~~~~~~~~
p1382.cpp:299:22: error: 'unspecified' was not declared in this scope
299 | using period = ratio<unspecified,
| ^~~~~~~~~~~
p1382.cpp:299:22: error: 'unspecified' was not declared in this scope
p1382.cpp:299:22: error: 'unspecified' was not declared in this scope
p1382.cpp:299:22: error: 'unspecified' was not declared in this scope
p1382.cpp:299:22: error: 'unspecified' was not declared in this scope
p1382.cpp:299:22: error: 'unspecified' was not declared in this scope
p1382.cpp:299:16: error: 'ratio' does not name a type
299 | using period = ratio<unspecified,
| ^~~~~
p1382.cpp:301:28: error: 'time_point' in namespace 'std::chrono::std::chrono' does not name a template type
301 | using time_point = chrono::time_point<unspecified, duration>;
| ^~~~~~~~~~
p1382.cpp:302:35: error: 'unspecified' was not declared in this scope
302 | static constexpr bool is_steady = unspecified;
| ^~~~~~~~~~~
p1382.cpp:303:12: error: 'time_point' does not name a type; did you mean 'time_put'?
303 | static time_point now() noexcept;
| ^~~~~~~~~~
| time_put
p1382.cpp:306:1: error: 'unspecified' does not name a type
306 | unspecified >;
| ^~~~~~~~~~~
p1382.cpp:312:56: error: 'local_time' does not name a type; did you mean 'locale'?
312 | operator<<(basic_ostream<charT, traits>& os, const local_time<Duration>& lt);
| ^~~~~~~~~~
| locale
p1382.cpp:312:66: error: expected ',' or '...' before '<' token
312 | operator<<(basic_ostream<charT, traits>& os, const local_time<Duration>& lt);
| ^
p1382.cpp:314:1: error: 'os' does not name a type; did you mean 'ios'?
314 | os << sys_time<Duration>{lt.time_since_epoch()};
| ^~
| ios
p1382.cpp:320:13: error: 'local_time' has not been declared
320 | local_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^~~~~~~~~~
p1382.cpp:320:23: error: expected ',' or '...' before '<' token
320 | local_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
| ^
p1382.cpp:317:53: error: redefinition of default argument for 'class Alloc'
317 | template<class charT, class traits, class Duration, class Alloc = allocator<charT>>
| ^~~~~
p1382.cpp:54:53: note: original definition appeared here
54 | template<class charT, class traits, class Duration, class Alloc = allocator<charT>>
| ^~~~~
p1382.cpp:335:10: error: 'time_point' does not name a type; did you mean 'time_put'?
335 | time_point<Clock, Duration>
| ^~~~~~~~~~
| time_put
p1382.cpp:339:17: error: 'Clock' was not declared in this scope; did you mean 'clock'?
339 | time_point<Clock, Duration>
| ^~~~~
| clock
p1382.cpp:339:17: error: 'Clock' was not declared in this scope; did you mean 'clock'?
339 | time_point<Clock, Duration>
| ^~~~~
| clock
p1382.cpp:339:17: error: 'Clock' was not declared in this scope; did you mean 'clock'?
339 | time_point<Clock, Duration>
| ^~~~~
| clock
p1382.cpp:339:17: error: 'Clock' was not declared in this scope; did you mean 'clock'?
339 | time_point<Clock, Duration>
| ^~~~~
| clock
p1382.cpp:339:17: error: 'Clock' was not declared in this scope; did you mean 'clock'?
339 | time_point<Clock, Duration>
| ^~~~~
| clock
p1382.cpp:339:17: error: 'Clock' was not declared in this scope; did you mean 'clock'?
339 | time_point<Clock, Duration>
| ^~~~~
| clock
p1382.cpp:339:17: error: 'Clock' was not declared in this scope; did you mean 'clock'?
339 | time_point<Clock, Duration>
| ^~~~~
| clock
p1382.cpp:339:17: error: 'Clock' was not declared in this scope; did you mean 'clock'?
339 | time_point<Clock, Duration>
| ^~~~~
| clock
p1382.cpp:339:17: error: 'Clock' was not declared in this scope; did you mean 'clock'?
339 | time_point<Clock, Duration>
| ^~~~~
| clock
p1382.cpp:339:6: error: 'time_point' does not name a type; did you mean 'time_put'?
339 | time_point<Clock, Duration>
| ^~~~~~~~~~
| time_put
p1382.cpp:345:5: error: 'sys_time' does not name a type; did you mean 'SYS_time'?
345 | sys_time<Duration>
| ^~~~~~~~
| SYS_time
p1382.cpp:349:3: error: 'sys_time' does not name a type; did you mean 'SYS_time'?
349 | sys_time<Duration>
| ^~~~~~~~
| SYS_time
p1382.cpp:355:7: error: 'utc_time' does not name a type
355 | utc_time<Duration>
| ^~~~~~~~
p1382.cpp:359:3: error: 'utc_time' does not name a type
359 | utc_time<Duration>
| ^~~~~~~~
p1382.cpp:366:40: error: 'seconds' was not declared in this scope; did you mean 'ends'?
366 | utc_time<common_type_t<Duration, seconds>>
| ^~~~~~~
| ends
p1382.cpp:366:40: error: template argument 2 is invalid
p1382.cpp:366:7: error: 'utc_time' does not name a type
366 | utc_time<common_type_t<Duration, seconds>>
| ^~~~~~~~
p1382.cpp:370:36: error: 'seconds' was not declared in this scope; did you mean 'ends'?
370 | utc_time<common_type_t<Duration, seconds>>
| ^~~~~~~
| ends
p1382.cpp:370:36: error: template argument 2 is invalid
p1382.cpp:370:3: error: 'utc_time' does not name a type
370 | utc_time<common_type_t<Duration, seconds>>
| ^~~~~~~~
p1382.cpp:376:40: error: 'seconds' was not declared in this scope; did you mean 'ends'?
376 | sys_time<common_type_t<Duration, seconds>>
| ^~~~~~~
| ends
p1382.cpp:376:40: error: template argument 2 is invalid
p1382.cpp:376:7: error: 'sys_time' does not name a type; did you mean 'SYS_time'?
376 | sys_time<common_type_t<Duration, seconds>>
| ^~~~~~~~
| SYS_time
p1382.cpp:380:36: error: 'seconds' was not declared in this scope; did you mean 'ends'?
380 | sys_time<common_type_t<Duration, seconds>>
| ^~~~~~~
| ends
p1382.cpp:380:36: error: template argument 2 is invalid
p1382.cpp:380:3: error: 'sys_time' does not name a type; did you mean 'SYS_time'?
380 | sys_time<common_type_t<Duration, seconds>>
| ^~~~~~~~
| SYS_time
p1382.cpp:387:29: error: 'time_point' does not name a type; did you mean 'time_put'?
387 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^~~~~~~~~~
| time_put
p1382.cpp:387:39: error: expected ',' or '...' before '<' token
387 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^
p1382.cpp:391:36: error: 'SourceClock' was not declared in this scope
391 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^~~~~~~~~~~
p1382.cpp:391:36: error: 'SourceClock' was not declared in this scope
p1382.cpp:391:36: error: 'SourceClock' was not declared in this scope
p1382.cpp:391:36: error: 'SourceClock' was not declared in this scope
p1382.cpp:391:36: error: 'SourceClock' was not declared in this scope
p1382.cpp:391:36: error: 'SourceClock' was not declared in this scope
p1382.cpp:391:25: error: 'time_point' does not name a type; did you mean 'time_put'?
391 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^~~~~~~~~~
| time_put
p1382.cpp:391:35: error: expected ',' or '...' before '<' token
391 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^
p1382.cpp:395:1: error: expected initializer before 'template'
395 | template<class DestClock>
| ^~~~~~~~
p1382.cpp:409:29: error: 'utc_time' does not name a type
409 | auto operator()(const utc_time<Duration>& t) const
| ^~~~~~~~
p1382.cpp:409:37: error: expected ',' or '...' before '<' token
409 | auto operator()(const utc_time<Duration>& t) const
| ^
p1382.cpp:413:25: error: 'utc_time' does not name a type
413 | auto operator()(const utc_time<Duration>& t) const
| ^~~~~~~~
p1382.cpp:413:33: error: expected ',' or '...' before '<' token
413 | auto operator()(const utc_time<Duration>& t) const
| ^
p1382.cpp:414:13: error: 'DestClock' was not declared in this scope
414 | -> decltype(DestClock::from_utc(t));
| ^~~~~~~~~
p1382.cpp:414:13: error: 'DestClock' has not been declared
p1382.cpp:419:25: error: 'sys_time' does not name a type; did you mean 'SYS_time'?
419 | auto operator()(const sys_time<Duration>& t) const
| ^~~~~~~~
| SYS_time
p1382.cpp:419:33: error: expected ',' or '...' before '<' token
419 | auto operator()(const sys_time<Duration>& t) const
| ^
p1382.cpp:420:13: error: 'DestClock' was not declared in this scope
420 | -> decltype(DestClock::from_sys(t));
| ^~~~~~~~~
p1382.cpp:420:13: error: 'DestClock' has not been declared
p1382.cpp:421:4: error: expected declaration before '}' token
421 | }; }
| ^
p1382.cpp:427:10: error: 'clock_time_conversion' is not a class template
427 | struct clock_time_conversion<utc_clock, SourceClock> {
| ^~~~~~~~~~~~~~~~~~~~~
p1382.cpp:427:32: error: 'utc_clock' was not declared in this scope; did you mean 'std::chrono::utc_clock'?
427 | struct clock_time_conversion<utc_clock, SourceClock> {
| ^~~~~~~~~
| std::chrono::utc_clock
p1382.cpp:64:11: note: 'std::chrono::utc_clock' declared here
64 | class utc_clock {
| ^~~~~~~~~
p1382.cpp:429:29: error: 'time_point' does not name a type; did you mean 'time_t'?
429 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^~~~~~~~~~
| time_t
p1382.cpp:429:39: error: expected ',' or '...' before '<' token
429 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^
p1382.cpp:432:25: error: 'time_point' does not name a type; did you mean 'time_t'?
432 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^~~~~~~~~~
| time_t
p1382.cpp:432:35: error: expected ',' or '...' before '<' token
432 | auto operator()(const time_point<SourceClock, Duration>& t) const
| ^
p1382.cpp:434:1: error: expected initializer before 'template'
434 | template<class DestClock, class SourceClock, class Duration>
| ^~~~~~~~
p1382.cpp:436:4: error: expected ';' before 'clock_time_conversion'
436 | }
| ^
| ;
......
442 | clock_time_conversion<system_clock, SourceClock>{}(t)))
| ~~~~~~~~~~~~~~~~~~~~~
p1382.cpp:442:65: error: expected constructor, destructor, or type conversion before ')' token
442 | clock_time_conversion<system_clock, SourceClock>{}(t)))
| ^
p1382.cpp:444:62: error: expected constructor, destructor, or type conversion before ')' token
444 | clock_time_conversion<utc_clock, SourceClock>{}(t)))
| ^
p1382.cpp:35:18: warning: 'time_t to_time_t(const int&) noexcept' declared 'static' but never defined [-Wunused-function]
35 | static time_t to_time_t(const time_point& t) noexcept;
| ^~~~~~~~~std::align_val_t)
| ^~~~~~~~
検討事項(agenda)
コンパイルエラーを取るか、コンパイルエラーの理由を解説する。
応用例1 AUTOSAR C++
AUTOSARでC++のコーディング標準を作っている。
MISRA-C++コーディング標準の改訂をまたずに、C++14に対応したかったためかもしれない。
Autosar Guidelines C++14 example code compile list
応用例2 MISRA C/C++
MISRA C++, AUTOSAR C++について
MISRA C まとめ #include
MISRA C++ 5-0-16
応用例3 CERT C/C++
SEI CERT C++ Coding Standard AA. Bibliography 確認中。
MISRA C/C++, AUTOSAR C++, CERT C/C++とC/C++工業標準をコンパイルする
応用例4 箱庭
箱庭ではUnityをはじめC++を使っているらしい。
ここでコンパイルしたコードと同じようなコードを使っているか、
ここで出たコンパイルエラーと同じようなエラーがでたかを
いろいろな版のコンパイラでコンパイルして確認していく。
仮想戦略会議「箱庭」
お盆には「箱庭」記事を書きましょう「もくもく会」の題材になる(1)
お盆には「箱庭」記事を書きましょう「もくもく会」の題材になる(2)
参考資料(reference)
エンジニア夏休み企画 個人開発
自己参考資料(self reference)
関連する自己参照以外は、こちらの先頭に移転。
C言語(C++)に対する誤解、曲解、無理解、爽快。
#include "N4910.h"
C++N4910資料の改善点
dockerにclang
docker gnu(gcc/g++) and llvm(clang/clang++)
コンパイル用shell script C版(clangとgcc)とC++版(clang++とg++)
C++N4910:2022 tag follower 300人超えました。ありがとうございます。
astyle 使ってみた
【個人開発】 効率的な背景 <エンジニア夏休み企画>
<この記事は個人の過去の経験に基づく個人の感想です。現在所属する組織、業務とは関係がありません。>
文書履歴(document history)
ver. 0.01 初稿 20220820