Write a C++ class Const, Square, Print so that I can write, for example, Cost(5) >> Square() >> Inc() >> Inc() >> Print() and the resulting python program will print 27 to the screen.
Write a C++ class Const, Square, Print so that I can write, for example, Cost(5) >> Square() >> Inc() >> Inc() >> Print() and the resulting python program will print 27 to the screen.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | class Const { public: Const(int v) : value(v) {} Const operator>>(Square const& s) const { return Const(value * value); } private: int value; }; class Square { public: Square() {} Const operator>>(Inc const& i) const { return Const(value + 1); } }; class Inc { public: Inc() {} Const operator>>(Print const& p) const { return Const(value + 1); } }; class Print { public: Print() {} void operator()(Const const& c) const { std::cout << c.value << std::endl; } }; |
I extracted the following code from that output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ++ class Const { public: Const(int v) : value(v) {} Const operator>>(Square const& s) const { return Const(value * value); } private: int value; }; class Square { public: Square() {} Const operator>>(Inc const& i) const { return Const(value + 1); } }; class Inc { public: Inc() {} Const operator>>(Print const& p) const { return Const(value + 1); } }; class Print { public: Print() {} void operator()(Const const& c) const { std::cout << c.value << std::endl; } }; |
Running the following program:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | ++ class Const { public: Const(int v) : value(v) {} Const operator>>(Square const& s) const { return Const(value * value); } private: int value; }; class Square { public: Square() {} Const operator>>(Inc const& i) const { return Const(value + 1); } }; class Inc { public: Inc() {} Const operator>>(Print const& p) const { return Const(value + 1); } }; class Print { public: Print() {} void operator()(Const const& c) const { std::cout << c.value << std::endl; } }; int main() { Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print(); return 0; } |
main.cpp:1:1: error: expected unqualified-id before '++' token
1 | ++
| ^~
main.cpp:14:5: error: 'Const' does not name a type
14 | Const operator>>(Inc const& i) const { return Const(value + 1); }
| ^~~~~
main.cpp:20:5: error: 'Const' does not name a type
20 | Const operator>>(Print const& p) const { return Const(value + 1); }
| ^~~~~
main.cpp:26:21: error: 'Const' has not been declared
26 | void operator()(Const const& c) const { std::cout << c.value << std::endl; }
| ^~~~~
main.cpp: In member function 'void Print::operator()(const int&) const':
main.cpp:26:50: error: 'cout' is not a member of 'std'
26 | void operator()(Const const& c) const { std::cout << c.value << std::endl; }
| ^~~~
main.cpp:1:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
+++ |+#include <iostream>
1 | ++
main.cpp:26:60: error: request for member 'value' in 'c', which is of non-class type 'const int'
26 | void operator()(Const const& c) const { std::cout << c.value << std::endl; }
| ^~~~~
main.cpp:26:74: error: 'endl' is not a member of 'std'
26 | void operator()(Const const& c) const { std::cout << c.value << std::endl; }
| ^~~~
main.cpp:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
+++ |+#include <ostream>
1 | ++
main.cpp: In function 'int main()':
main.cpp:32:1: error: 'Const' was not declared in this scope
32 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^~~~~
main.sh: line 2: ./a.out: No such file or directory
Testing if the previous output contains the string 625
: False
Write a C++ class Const, Square, Print so that I can write, for example, Cost(5) >> Square() >> Inc() >> Inc() >> Print() and the resulting python program will print 27 to the screen.
Write a C++ class Const, Square, Print so that I can write, for example, Cost(5) >> Square() >> Inc() >> Inc() >> Print() and the resulting python program will print 27 to the screen.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #include <iostream> using namespace std; class Const { public: Const(int i) : _i(i) {} Const operator>>(const Square& s) { return s(_i); } private: int _i; }; class Square { public: Square() {} Const operator()(int i) { return Const(i*i); } }; class Inc { public: Inc() {} Const operator>>(const Const& c) { return Const(c._i + 1); } }; class Print { public: Print() {} void operator>>(const Const& c) { cout << c._i << endl; } }; int main() { Const(5) >> Square() >> Inc() >> Inc() >> Print(); return 0; } |
I extracted the following code from that output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | ++ #include <iostream> using namespace std; class Const { public: Const(int i) : _i(i) {} Const operator>>(const Square& s) { return s(_i); } private: int _i; }; class Square { public: Square() {} Const operator()(int i) { return Const(i*i); } }; class Inc { public: Inc() {} Const operator>>(const Const& c) { return Const(c._i + 1); } }; class Print { public: Print() {} void operator>>(const Const& c) { cout << c._i << endl; } }; int main() { Const(5) >> Square() >> Inc() >> Inc() >> Print(); return 0; } |
Running the following program:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | ++ #include <iostream> using namespace std; class Const { public: Const(int i) : _i(i) {} Const operator>>(const Square& s) { return s(_i); } private: int _i; }; class Square { public: Square() {} Const operator()(int i) { return Const(i*i); } }; class Inc { public: Inc() {} Const operator>>(const Const& c) { return Const(c._i + 1); } }; class Print { public: Print() {} void operator>>(const Const& c) { cout << c._i << endl; } }; int __delete_this__main() { Const(5) >> Square() >> Inc() >> Inc() >> Print(); return 0; } int main() { Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print(); return 0; } |
main.cpp:1:1: error: expected unqualified-id before '++' token
1 | ++
| ^~
In file included from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/postypes.h:98:11: error: 'ptrdiff_t' does not name a type
98 | typedef ptrdiff_t streamsize; // Signed integral type
| ^~~~~~~~~
/usr/include/c++/11/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
40 | #include <cwchar> // For mbstate_t
+++ |+#include <cstddef>
41 |
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/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/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/new:127:41: error: attributes after parenthesized initializer ignored [-fpermissive]
127 | __attribute__((__externally_visible__));
| ^
/usr/include/c++/11/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/include/c++/11/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)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/new:129:41: error: attributes after parenthesized initializer ignored [-fpermissive]
129 | __attribute__((__externally_visible__));
| ^
/usr/include/c++/11/new:135:29: error: 'std::size_t' has not been declared
135 | void operator delete(void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
| ^~~
/usr/include/c++/11/new:137:31: error: 'std::size_t' has not been declared
137 | void operator delete[](void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
| ^~~
/usr/include/c++/11/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/include/c++/11/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
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/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/include/c++/11/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
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/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/include/c++/11/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)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/new:149:68: error: expected primary-expression before ')' token
149 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^
/usr/include/c++/11/new:150:73: error: attributes after parenthesized initializer ignored [-fpermissive]
150 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__));
| ^
/usr/include/c++/11/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/include/c++/11/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&)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/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/include/c++/11/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/include/c++/11/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)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/new:157:70: error: expected primary-expression before ')' token
157 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^
/usr/include/c++/11/new:158:73: error: attributes after parenthesized initializer ignored [-fpermissive]
158 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__));
| ^
/usr/include/c++/11/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/include/c++/11/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&)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/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/include/c++/11/new:166:29: error: 'std::size_t' has not been declared
166 | void operator delete(void*, std::size_t, std::align_val_t)
| ^~~
/usr/include/c++/11/new:168:31: error: 'std::size_t' has not been declared
168 | void operator delete[](void*, std::size_t, std::align_val_t)
| ^~~
/usr/include/c++/11/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/include/c++/11/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
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/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/include/c++/11/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
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:431:26: error: 'std::size_t' has not been declared
431 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:432:25: error: '_Size' was not declared in this scope
432 | struct is_array<_Tp[_Size]>
| ^~~~~
/usr/include/c++/11/type_traits:432:31: error: template argument 1 is invalid
432 | struct is_array<_Tp[_Size]>
| ^
/usr/include/c++/11/type_traits:537:42: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'?
537 | struct __is_null_pointer_helper<std::nullptr_t>
| ^~~~~~~~~
In file included from /usr/include/c++/11/bits/cxxabi_init_exception.h:38,
from /usr/include/c++/11/bits/exception_ptr.h:38,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:433:29: note: 'nullptr_t' declared here
433 | typedef decltype(nullptr) nullptr_t;
| ^~~~~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:537:51: error: template argument 1 is invalid
537 | struct __is_null_pointer_helper<std::nullptr_t>
| ^
/usr/include/c++/11/type_traits:1361:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1361 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:1361:57: error: template argument 1 is invalid
1361 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/usr/include/c++/11/type_traits:1361:57: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1370:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1370 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:1370:46: error: template argument 1 is invalid
1370 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/11/type_traits:1370:46: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1372:26: error: 'std::size_t' has not been declared
1372 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:1373:21: error: '_Size' was not declared in this scope
1373 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/include/c++/11/type_traits:1373:27: error: template argument 1 is invalid
1373 | struct rank<_Tp[_Size]>
| ^
/usr/include/c++/11/type_traits:1374:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1374 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:1374:65: error: template argument 1 is invalid
1374 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/11/type_traits:1374:65: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1378:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1378 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:1378:65: error: template argument 1 is invalid
1378 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/11/type_traits:1378:65: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1383:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1383 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:1383:46: error: template argument 1 is invalid
1383 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/11/type_traits:1383:46: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1385:42: error: 'std::size_t' has not been declared
1385 | template<typename _Tp, unsigned _Uint, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:1386:23: error: '_Size' was not declared in this scope
1386 | struct extent<_Tp[_Size], _Uint>
| ^~~~~
/usr/include/c++/11/type_traits:1386:36: error: template argument 1 is invalid
1386 | struct extent<_Tp[_Size], _Uint>
| ^
/usr/include/c++/11/type_traits:1387:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1387 | : public integral_constant<std::size_t,
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:1388:45: error: '_Size' was not declared in this scope
1388 | _Uint == 0 ? _Size : extent<_Tp,
| ^~~~~
/usr/include/c++/11/type_traits:1389:77: error: template argument 1 is invalid
1389 | _Uint - 1>::value>
| ^
/usr/include/c++/11/type_traits:1389:77: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1394:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1394 | : public integral_constant<std::size_t,
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:1396:73: error: template argument 1 is invalid
1396 | _Uint - 1>::value>
| ^
/usr/include/c++/11/type_traits:1396:73: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1984:26: error: 'std::size_t' has not been declared
1984 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:1985:30: error: '_Size' was not declared in this scope
1985 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/include/c++/11/type_traits:1985:36: error: template argument 1 is invalid
1985 | struct remove_extent<_Tp[_Size]>
| ^
/usr/include/c++/11/type_traits:1997:26: error: 'std::size_t' has not been declared
1997 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:1998:35: error: '_Size' was not declared in this scope
1998 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/include/c++/11/type_traits:1998:41: error: template argument 1 is invalid
1998 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/include/c++/11/type_traits:2056:12: error: 'std::size_t' has not been declared
2056 | template<std::size_t _Len>
| ^~~
/usr/include/c++/11/type_traits:2061:30: error: '_Len' was not declared in this scope
2061 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/11/type_traits:2076:12: error: 'std::size_t' has not been declared
2076 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/11/type_traits:2076:30: error: 'std::size_t' has not been declared
2076 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/11/type_traits:2077:55: error: '_Len' was not declared in this scope
2077 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/11/type_traits:2077:59: error: template argument 1 is invalid
2077 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/11/type_traits:2082:30: error: '_Len' was not declared in this scope
2082 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/11/type_traits:2083:44: error: '_Align' was not declared in this scope
2083 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:62,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/type_traits.h:162:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
162 | __is_null_pointer(std::nullptr_t)
| ^
/usr/include/c++/11/ext/type_traits.h:157:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
157 | __is_null_pointer(_Type)
| ^~~~~~~~~~~~~~~~~
/usr/include/c++/11/ext/type_traits.h:162:26: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'?
162 | __is_null_pointer(std::nullptr_t)
| ^~~~~~~~~
In file included from /usr/include/c++/11/bits/cxxabi_init_exception.h:38,
from /usr/include/c++/11/bits/exception_ptr.h:38,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:433:29: note: 'nullptr_t' declared here
433 | typedef decltype(nullptr) nullptr_t;
| ^~~~~~~~~
In file included from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/char_traits.h:114:61: error: 'std::size_t' has not been declared
114 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/11/bits/char_traits.h:116:40: error: 'size_t' in namespace 'std' does not name a type
116 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/11/bits/char_traits.h:120:34: error: 'std::size_t' has not been declared
120 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~
/usr/include/c++/11/bits/char_traits.h:123:52: error: 'std::size_t' has not been declared
123 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/11/bits/char_traits.h:126:52: error: 'std::size_t' has not been declared
126 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/11/bits/char_traits.h:129:30: error: 'std::size_t' has not been declared
129 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~
/usr/include/c++/11/bits/char_traits.h:155:59: error: 'std::size_t' has not been declared
155 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/11/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/include/c++/11/bits/char_traits.h:157:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
157 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/char_traits.h:157:33: error: '__i' was not declared in this scope; did you mean '__n'?
157 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __n
/usr/include/c++/11/bits/char_traits.h: At global scope:
/usr/include/c++/11/bits/char_traits.h:166:31: error: 'size_t' in namespace 'std' does not name a type
166 | _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/11/bits/char_traits.h:179:32: error: 'std::size_t' has not been declared
179 | find(const char_type* __s, std::size_t __n, const char_type& __a)
| ^~~
/usr/include/c++/11/bits/char_traits.h: In static member function 'static constexpr const char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, int, const char_type&)':
/usr/include/c++/11/bits/char_traits.h:181:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
181 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/char_traits.h:181:33: error: '__i' was not declared in this scope; did you mean '__s'?
181 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __s
/usr/include/c++/11/bits/char_traits.h: At global scope:
/usr/include/c++/11/bits/char_traits.h:191:50: error: 'std::size_t' has not been declared
191 | move(char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/11/bits/char_traits.h:241:50: error: 'std::size_t' has not been declared
241 | copy(char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/11/bits/char_traits.h:252:28: error: 'std::size_t' has not been declared
252 | assign(char_type* __s, std::size_t __n, char_type __a)
| ^~~
/usr/include/c++/11/bits/char_traits.h: In static member function 'static constexpr size_t std::char_traits<char>::length(const char_type*)':
/usr/include/c++/11/bits/char_traits.h:397:53: error: 'length' is not a member of '__gnu_cxx::char_traits<char>'
397 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ^~~~~~
/usr/include/c++/11/bits/char_traits.h: In static member function 'static constexpr size_t std::char_traits<wchar_t>::length(const char_type*)':
/usr/include/c++/11/bits/char_traits.h:521:53: error: 'length' is not a member of '__gnu_cxx::char_traits<wchar_t>'
521 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ^~~~~~
/usr/include/c++/11/bits/char_traits.h:523:22: error: call to non-'constexpr' function 'size_t wcslen(const wchar_t*)'
523 | return wcslen(__s);
| ~~~~~~^~~~~
In file included from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/wchar.h:223:15: note: 'size_t wcslen(const wchar_t*)' declared here
223 | extern size_t wcslen (const wchar_t *__s) __THROW __attribute_pure__;
| ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,
from /usr/include/c++/11/bits/allocator.h:46,
from /usr/include/c++/11/string:41,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/new_allocator.h: At global scope:
/usr/include/c++/11/ext/new_allocator.h:59:20: error: 'size_t' in namespace 'std' does not name a type
59 | typedef std::size_t size_type;
| ^~~~~~
/usr/include/c++/11/ext/new_allocator.h:60:20: error: 'ptrdiff_t' in namespace 'std' does not name a type
60 | typedef std::ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/include/c++/11/ext/new_allocator.h:103:16: error: 'size_type' has not been declared
103 | allocate(size_type __n, const void* = static_cast<const void*>(0))
| ^~~~~~~~~
/usr/include/c++/11/ext/new_allocator.h:132:28: error: 'size_type' has not been declared
132 | deallocate(_Tp* __p, size_type __t __attribute__ ((__unused__)))
| ^~~~~~~~~
/usr/include/c++/11/ext/new_allocator.h:153:7: error: 'size_type' does not name a type; did you mean 'size_t'?
153 | size_type
| ^~~~~~~~~
| size_t
/usr/include/c++/11/ext/new_allocator.h:196:26: error: 'size_type' does not name a type; did you mean 'size_t'?
196 | _GLIBCXX_CONSTEXPR size_type
| ^~~~~~~~~
| size_t
/usr/include/c++/11/ext/new_allocator.h: In member function '_Tp* __gnu_cxx::new_allocator<_Tp>::allocate(int, const void*)':
/usr/include/c++/11/ext/new_allocator.h:115:29: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
115 | if (__n > (std::size_t(-1) / sizeof(_Tp)))
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/string:44,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/ostream_insert.h: At global scope:
/usr/include/c++/11/bits/ostream_insert.h:46:40: error: 'streamsize' has not been declared
46 | const _CharT* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/bits/ostream_insert.h: In function 'void std::__ostream_write(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)':
/usr/include/c++/11/bits/ostream_insert.h:51:13: error: 'streamsize' does not name a type
51 | const streamsize __put = __out.rdbuf()->sputn(__s, __n);
| ^~~~~~~~~~
/usr/include/c++/11/bits/ostream_insert.h:52:11: error: '__put' was not declared in this scope; did you mean '__out'?
52 | if (__put != __n)
| ^~~~~
| __out
/usr/include/c++/11/bits/ostream_insert.h: At global scope:
/usr/include/c++/11/bits/ostream_insert.h:58:59: error: 'streamsize' has not been declared
58 | __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/bits/ostream_insert.h:78:41: error: 'streamsize' has not been declared
78 | const _CharT* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/bits/ostream_insert.h: In function 'std::basic_ostream<_CharT, _Traits>& std::__ostream_insert(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)':
/usr/include/c++/11/bits/ostream_insert.h:88:21: error: 'streamsize' does not name a type
88 | const streamsize __w = __out.width();
| ^~~~~~~~~~
/usr/include/c++/11/bits/ostream_insert.h:89:19: error: '__w' was not declared in this scope; did you mean '__s'?
89 | if (__w > __n)
| ^~~
| __s
/usr/include/c++/11/bits/ostream_insert.h: At global scope:
/usr/include/c++/11/bits/ostream_insert.h:119:68: error: 'streamsize' has not been declared
119 | extern template ostream& __ostream_insert(ostream&, const char*, streamsize);
| ^~~~~~~~~~
/usr/include/c++/11/bits/ostream_insert.h:123:46: error: 'streamsize' has not been declared
123 | streamsize);
| ^~~~~~~~~~
In file included from /usr/include/c++/11/ext/alloc_traits.h:34,
from /usr/include/c++/11/bits/basic_string.h:40,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/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/include/c++/11/bits/alloc_traits.h:463:37: error: 'size_type' has not been declared
463 | allocate(allocator_type& __a, size_type __n)
| ^~~~~~~~~
/usr/include/c++/11/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/include/c++/11/bits/alloc_traits.h:495:52: error: 'size_type' has not been declared
495 | deallocate(allocator_type& __a, pointer __p, size_type __n)
| ^~~~~~~~~
/usr/include/c++/11/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/include/c++/11/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/include/c++/11/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/include/c++/11/bits/alloc_traits.h:614:33: error: 'size_type' has not been declared
614 | allocate(allocator_type&, size_type, const void* = nullptr) = delete;
| ^~~~~~~~~
/usr/include/c++/11/bits/alloc_traits.h:618:42: error: 'size_type' has not been declared
618 | deallocate(allocator_type&, void*, size_type) = delete;
| ^~~~~~~~~
/usr/include/c++/11/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
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/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/include/c++/11/ext/string_conversions.h:100:54: error: 'std::size_t' has not been declared
100 | __builtin_va_list), std::size_t __n,
| ^~~
In file included from /usr/include/c++/11/bits/basic_string.h:40,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<char>, char>':
/usr/include/c++/11/bits/basic_string.h:88:24: required from 'class std::__cxx11::basic_string<char>'
/usr/include/c++/11/bits/basic_string.h:6620:68: required from here
/usr/include/c++/11/ext/alloc_traits.h:59:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<char> >'
59 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:60:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<char> >'
60 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:68:23: error: 'max_size' has not been declared in '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::_Base_type'
68 | using _Base_type::max_size;
| ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In function 'int std::__cxx11::stoi(const string&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6620:40: error: no matching function for call to '__stoa<long int, int>(long int (*)(const char*, char**, int) noexcept, const char [5], const char*, size_t*&, int&)'
6620 | { return __gnu_cxx::__stoa<long, int>(&std::strtol, "stoi", __str.c_str(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6621 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6621:41: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6621 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long int std::__cxx11::stol(const string&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6625:29: error: no matching function for call to '__stoa(long int (*)(const char*, char**, int) noexcept, const char [5], const char*, size_t*&, int&)'
6625 | { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6626 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6626:30: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6626 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long unsigned int std::__cxx11::stoul(const string&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6630:29: error: no matching function for call to '__stoa(long unsigned int (*)(const char*, char**, int) noexcept, const char [6], const char*, size_t*&, int&)'
6630 | { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6631 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6631:30: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6631 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long long int std::__cxx11::stoll(const string&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6635:29: error: no matching function for call to '__stoa(long long int (*)(const char*, char**, int) noexcept, const char [6], const char*, size_t*&, int&)'
6635 | { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6636 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6636:30: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6636 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long long unsigned int std::__cxx11::stoull(const string&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6640:29: error: no matching function for call to '__stoa(long long unsigned int (*)(const char*, char**, int) noexcept, const char [7], const char*, size_t*&, int&)'
6640 | { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6641 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6641:30: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6641 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'float std::__cxx11::stof(const string&, size_t*)':
/usr/include/c++/11/bits/basic_string.h:6646:29: error: no matching function for call to '__stoa(float (*)(const char*, char**) noexcept, const char [5], const char*, size_t*&)'
6646 | { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6646:67: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6646 | { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'double std::__cxx11::stod(const string&, size_t*)':
/usr/include/c++/11/bits/basic_string.h:6650:29: error: no matching function for call to '__stoa(double (*)(const char*, char**) noexcept, const char [5], const char*, size_t*&)'
6650 | { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6650:67: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6650 | { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long double std::__cxx11::stold(const string&, size_t*)':
/usr/include/c++/11/bits/basic_string.h:6654:29: error: no matching function for call to '__stoa(long double (*)(const char*, char**) noexcept, const char [6], const char*, size_t*&)'
6654 | { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6654:69: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6654 | { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(int)':
/usr/include/c++/11/bits/basic_string.h:6665:36: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(unsigned int, char)'
6665 | string __str(__neg + __len, '-');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits: In substitution of 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = void]':
/usr/include/c++/11/bits/basic_string.h:125:8: required by substitution of 'template<class _CharT, class _Traits, class _Alloc> template<class _Tp, class _Res> using _If_sv = std::enable_if_t<std::__and_<std::is_convertible<const _Tp&, std::basic_string_view<_CharT, _Traits> >, std::__not_<std::is_convertible<const _Tp*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>*> >, std::__not_<std::is_convertible<const _Tp&, const _CharT*> > >::value, _Res> [with _Tp = unsigned int; _Res = void; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
/usr/include/c++/11/bits/basic_string.h:662:30: required from here
/usr/include/c++/11/type_traits:2579:11: error: no type named 'type' in 'struct std::enable_if<false, void>'
2579 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6665:36: note: deduced conflicting types for parameter '_InputIterator' ('unsigned int' and 'char')
6665 | string __str(__neg + __len, '-');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6665:24: note: cannot convert '(((unsigned int)((int)__neg)) + ((unsigned int)__len))' (type 'unsigned int') to type 'const char*'
6665 | string __str(__neg + __len, '-');
| ~~~~~~^~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:35: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>&&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:40: note: no known conversion for argument 1 from 'unsigned int' to 'const std::__cxx11::basic_string<char>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'unsigned int' to 'std::initializer_list<char>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6666:40: error: no match for 'operator[]' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'const bool')
6666 | __detail::__to_chars_10_impl(&__str[__neg], __len, __uval);
| ^
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(unsigned int)':
/usr/include/c++/11/bits/basic_string.h:6673:55: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(unsigned int, char)'
6673 | string __str(__detail::__to_chars_len(__val), '\0');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6673:55: note: deduced conflicting types for parameter '_InputIterator' ('unsigned int' and 'char')
6673 | string __str(__detail::__to_chars_len(__val), '\0');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6673:42: note: cannot convert 'std::__detail::__to_chars_len<unsigned int>(__val, 10)' (type 'unsigned int') to type 'const char*'
6673 | string __str(__detail::__to_chars_len(__val), '\0');
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:35: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>&&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:40: note: no known conversion for argument 1 from 'unsigned int' to 'const std::__cxx11::basic_string<char>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'unsigned int' to 'std::initializer_list<char>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6674:40: error: no match for 'operator[]' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
6674 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^
/usr/include/c++/11/bits/basic_string.h:6674:51: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
6674 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long int)':
/usr/include/c++/11/bits/basic_string.h:6684:36: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(unsigned int, char)'
6684 | string __str(__neg + __len, '-');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6684:36: note: deduced conflicting types for parameter '_InputIterator' ('unsigned int' and 'char')
6684 | string __str(__neg + __len, '-');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6684:24: note: cannot convert '(((unsigned int)((int)__neg)) + ((unsigned int)__len))' (type 'unsigned int') to type 'const char*'
6684 | string __str(__neg + __len, '-');
| ~~~~~~^~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:35: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>&&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:40: note: no known conversion for argument 1 from 'unsigned int' to 'const std::__cxx11::basic_string<char>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'unsigned int' to 'std::initializer_list<char>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6685:40: error: no match for 'operator[]' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'const bool')
6685 | __detail::__to_chars_10_impl(&__str[__neg], __len, __uval);
| ^
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long unsigned int)':
/usr/include/c++/11/bits/basic_string.h:6692:55: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(unsigned int, char)'
6692 | string __str(__detail::__to_chars_len(__val), '\0');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6692:55: note: deduced conflicting types for parameter '_InputIterator' ('unsigned int' and 'char')
6692 | string __str(__detail::__to_chars_len(__val), '\0');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6692:42: note: cannot convert 'std::__detail::__to_chars_len<long unsigned int>(__val, 10)' (type 'unsigned int') to type 'const char*'
6692 | string __str(__detail::__to_chars_len(__val), '\0');
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:35: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>&&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:40: note: no known conversion for argument 1 from 'unsigned int' to 'const std::__cxx11::basic_string<char>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'unsigned int' to 'std::initializer_list<char>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6693:40: error: no match for 'operator[]' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
6693 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^
/usr/include/c++/11/bits/basic_string.h:6693:51: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
6693 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long long int)':
/usr/include/c++/11/bits/basic_string.h:6704:36: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(unsigned int, char)'
6704 | string __str(__neg + __len, '-');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6704:36: note: deduced conflicting types for parameter '_InputIterator' ('unsigned int' and 'char')
6704 | string __str(__neg + __len, '-');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6704:24: note: cannot convert '(((unsigned int)((int)__neg)) + ((unsigned int)__len))' (type 'unsigned int') to type 'const char*'
6704 | string __str(__neg + __len, '-');
| ~~~~~~^~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:35: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>&&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:40: note: no known conversion for argument 1 from 'unsigned int' to 'const std::__cxx11::basic_string<char>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'unsigned int' to 'std::initializer_list<char>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6705:40: error: no match for 'operator[]' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'const bool')
6705 | __detail::__to_chars_10_impl(&__str[__neg], __len, __uval);
| ^
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long long unsigned int)':
/usr/include/c++/11/bits/basic_string.h:6712:55: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(unsigned int, char)'
6712 | string __str(__detail::__to_chars_len(__val), '\0');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6712:55: note: deduced conflicting types for parameter '_InputIterator' ('unsigned int' and 'char')
6712 | string __str(__detail::__to_chars_len(__val), '\0');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6712:42: note: cannot convert 'std::__detail::__to_chars_len<long long unsigned int>(__val, 10)' (type 'unsigned int') to type 'const char*'
6712 | string __str(__detail::__to_chars_len(__val), '\0');
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:35: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>&&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:40: note: no known conversion for argument 1 from 'unsigned int' to 'const std::__cxx11::basic_string<char>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'unsigned int' to 'std::initializer_list<char>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6713:40: error: no match for 'operator[]' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
6713 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^
/usr/include/c++/11/bits/basic_string.h:6713:51: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
6713 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(float)':
/usr/include/c++/11/bits/basic_string.h:6725:43: error: no matching function for call to '__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) noexcept, const int&, const char [3], float&)'
6725 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6726 | "%f", __val);
| ~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6725:43: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6725 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6726 | "%f", __val);
| ~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(double)':
/usr/include/c++/11/bits/basic_string.h:6734:43: error: no matching function for call to '__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) noexcept, const int&, const char [3], double&)'
6734 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6735 | "%f", __val);
| ~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6734:43: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6734 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6735 | "%f", __val);
| ~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long double)':
/usr/include/c++/11/bits/basic_string.h:6743:43: error: no matching function for call to '__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) noexcept, const int&, const char [4], long double&)'
6743 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6744 | "%Lf", __val);
| ~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6743:43: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6743 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6744 | "%Lf", __val);
| ~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:40,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<wchar_t>, wchar_t>':
/usr/include/c++/11/bits/basic_string.h:88:24: required from 'class std::__cxx11::basic_string<wchar_t>'
/usr/include/c++/11/bits/basic_string.h:6751:68: required from here
/usr/include/c++/11/ext/alloc_traits.h:59:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<wchar_t> >'
59 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:60:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<wchar_t> >'
60 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:68:23: error: 'max_size' has not been declared in '__gnu_cxx::__alloc_traits<std::allocator<wchar_t>, wchar_t>::_Base_type'
68 | using _Base_type::max_size;
| ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In function 'int std::__cxx11::stoi(const wstring&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6751:40: error: no matching function for call to '__stoa<long int, int>(long int (*)(const wchar_t*, wchar_t**, int) noexcept, const char [5], const wchar_t*, size_t*&, int&)'
6751 | { return __gnu_cxx::__stoa<long, int>(&std::wcstol, "stoi", __str.c_str(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6752 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6752:41: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6752 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long int std::__cxx11::stol(const wstring&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6756:29: error: no matching function for call to '__stoa(long int (*)(const wchar_t*, wchar_t**, int) noexcept, const char [5], const wchar_t*, size_t*&, int&)'
6756 | { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6757 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6757:30: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6757 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long unsigned int std::__cxx11::stoul(const wstring&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6761:29: error: no matching function for call to '__stoa(long unsigned int (*)(const wchar_t*, wchar_t**, int) noexcept, const char [6], const wchar_t*, size_t*&, int&)'
6761 | { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6762 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6762:30: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6762 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long long int std::__cxx11::stoll(const wstring&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6766:29: error: no matching function for call to '__stoa(long long int (*)(const wchar_t*, wchar_t**, int) noexcept, const char [6], const wchar_t*, size_t*&, int&)'
6766 | { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6767 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6767:30: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6767 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long long unsigned int std::__cxx11::stoull(const wstring&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6771:29: error: no matching function for call to '__stoa(long long unsigned int (*)(const wchar_t*, wchar_t**, int) noexcept, const char [7], const wchar_t*, size_t*&, int&)'
6771 | { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6772 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6772:30: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6772 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'float std::__cxx11::stof(const wstring&, size_t*)':
/usr/include/c++/11/bits/basic_string.h:6777:29: error: no matching function for call to '__stoa(float (*)(const wchar_t*, wchar_t**) noexcept, const char [5], const wchar_t*, size_t*&)'
6777 | { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6777:67: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6777 | { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'double std::__cxx11::stod(const wstring&, size_t*)':
/usr/include/c++/11/bits/basic_string.h:6781:29: error: no matching function for call to '__stoa(double (*)(const wchar_t*, wchar_t**) noexcept, const char [5], const wchar_t*, size_t*&)'
6781 | { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6781:67: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6781 | { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long double std::__cxx11::stold(const wstring&, size_t*)':
/usr/include/c++/11/bits/basic_string.h:6785:29: error: no matching function for call to '__stoa(long double (*)(const wchar_t*, wchar_t**) noexcept, const char [6], const wchar_t*, size_t*&)'
6785 | { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6785:69: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6785 | { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(int)':
/usr/include/c++/11/bits/basic_string.h:6791:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, long unsigned int, const wchar_t [3], int&)'
6791 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(int),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6792 | L"%d", __val); }
| ~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6791:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6791 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(int),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6792 | L"%d", __val); }
| ~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(unsigned int)':
/usr/include/c++/11/bits/basic_string.h:6796:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, long unsigned int, const wchar_t [3], unsigned int&)'
6796 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
6797 | 4 * sizeof(unsigned),
| ~~~~~~~~~~~~~~~~~~~~~
6798 | L"%u", __val); }
| ~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6796:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6796 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
6797 | 4 * sizeof(unsigned),
| ~~~~~~~~~~~~~~~~~~~~~
6798 | L"%u", __val); }
| ~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long int)':
/usr/include/c++/11/bits/basic_string.h:6802:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, long unsigned int, const wchar_t [4], long int&)'
6802 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(long),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6803 | L"%ld", __val); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6802:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6802 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(long),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6803 | L"%ld", __val); }
| ~~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long unsigned int)':
/usr/include/c++/11/bits/basic_string.h:6807:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, long unsigned int, const wchar_t [4], long unsigned int&)'
6807 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
6808 | 4 * sizeof(unsigned long),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
6809 | L"%lu", __val); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6807:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6807 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
6808 | 4 * sizeof(unsigned long),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
6809 | L"%lu", __val); }
| ~~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long long int)':
/usr/include/c++/11/bits/basic_string.h:6813:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, long unsigned int, const wchar_t [5], long long int&)'
6813 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
6814 | 4 * sizeof(long long),
| ~~~~~~~~~~~~~~~~~~~~~~
6815 | L"%lld", __val); }
| ~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6813:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6813 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
6814 | 4 * sizeof(long long),
| ~~~~~~~~~~~~~~~~~~~~~~
6815 | L"%lld", __val); }
| ~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long long unsigned int)':
/usr/include/c++/11/bits/basic_string.h:6819:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, long unsigned int, const wchar_t [5], long long unsigned int&)'
6819 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
6820 | 4 * sizeof(unsigned long long),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6821 | L"%llu", __val); }
| ~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6819:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6819 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
6820 | 4 * sizeof(unsigned long long),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6821 | L"%llu", __val); }
| ~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(float)':
/usr/include/c++/11/bits/basic_string.h:6828:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, const int&, const wchar_t [3], float&)'
6828 | return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6829 | L"%f", __val);
| ~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6828:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6828 | return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6829 | L"%f", __val);
| ~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(double)':
/usr/include/c++/11/bits/basic_string.h:6837:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, const int&, const wchar_t [3], double&)'
6837 | return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6838 | L"%f", __val);
| ~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6837:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6837 | return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6838 | L"%f", __val);
| ~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long double)':
/usr/include/c++/11/bits/basic_string.h:6846:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, const int&, const wchar_t [4], long double&)'
6846 | return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6847 | L"%Lf", __val);
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6846:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6846 | return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6847 | L"%Lf", __val);
| ~~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In member function 'size_t std::hash<std::__cxx11::basic_string<char> >::operator()(const string&) const':
/usr/include/c++/11/bits/basic_string.h:6876:54: error: 'const string' {aka 'const class std::__cxx11::basic_string<char>'} has no member named 'length'
6876 | { return std::_Hash_impl::hash(__s.data(), __s.length()); }
| ^~~~~~
/usr/include/c++/11/bits/basic_string.h: In member function 'size_t std::hash<std::__cxx11::basic_string<wchar_t> >::operator()(const wstring&) const':
/usr/include/c++/11/bits/basic_string.h:6892:42: error: 'const wstring' {aka 'const class std::__cxx11::basic_string<wchar_t>'} has no member named 'length'
6892 | __s.length() * sizeof(wchar_t)); }
| ^~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:40,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<char16_t>, char16_t>':
/usr/include/c++/11/bits/basic_string.h:88:24: required from 'class std::__cxx11::basic_string<char16_t>'
/usr/include/c++/11/bits/basic_string.h:6925:41: required from here
/usr/include/c++/11/ext/alloc_traits.h:59:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<char16_t> >'
59 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:60:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<char16_t> >'
60 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:68:23: error: 'max_size' has not been declared in '__gnu_cxx::__alloc_traits<std::allocator<char16_t>, char16_t>::_Base_type'
68 | using _Base_type::max_size;
| ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In member function 'size_t std::hash<std::__cxx11::basic_string<char16_t> >::operator()(const u16string&) const':
/usr/include/c++/11/bits/basic_string.h:6926:42: error: 'const u16string' {aka 'const class std::__cxx11::basic_string<char16_t>'} has no member named 'length'
6926 | __s.length() * sizeof(char16_t)); }
| ^~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:40,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<char32_t>, char32_t>':
/usr/include/c++/11/bits/basic_string.h:88:24: required from 'class std::__cxx11::basic_string<char32_t>'
/usr/include/c++/11/bits/basic_string.h:6940:41: required from here
/usr/include/c++/11/ext/alloc_traits.h:59:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<char32_t> >'
59 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:60:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<char32_t> >'
60 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:68:23: error: 'max_size' has not been declared in '__gnu_cxx::__alloc_traits<std::allocator<char32_t>, char32_t>::_Base_type'
68 | using _Base_type::max_size;
| ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In member function 'size_t std::hash<std::__cxx11::basic_string<char32_t> >::operator()(const u32string&) const':
/usr/include/c++/11/bits/basic_string.h:6941:42: error: 'const u32string' {aka 'const class std::__cxx11::basic_string<char32_t>'} has no member named 'length'
6941 | __s.length() * sizeof(char32_t)); }
| ^~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::__cxx11::basic_string<char> std::literals::string_literals::operator""s(const char*, size_t)':
/usr/include/c++/11/bits/basic_string.h:6961:45: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(<brace-enclosed initializer list>)'
6961 | { return basic_string<char>{__str, __len}; }
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6961:45: note: deduced conflicting types for parameter '_InputIterator' ('const char*' and 'long unsigned int')
6961 | { return basic_string<char>{__str, __len}; }
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6961:40: note: cannot convert '__len' (type 'size_t' {aka 'long unsigned int'}) to type 'const std::allocator<char>&'
6961 | { return basic_string<char>{__str, __len}; }
| ^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:56: note: no known conversion for argument 2 from 'size_t' {aka 'long unsigned int'} to 'const std::allocator<char>&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:61: note: no known conversion for argument 2 from 'size_t' {aka 'long unsigned int'} to 'const std::allocator<char>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'const char*' to 'std::initializer_list<char>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'const char*' to 'std::__cxx11::basic_string<char>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In function 'std::__cxx11::basic_string<wchar_t> std::literals::string_literals::operator""s(const wchar_t*, size_t)':
/usr/include/c++/11/bits/basic_string.h:6967:48: error: no matching function for call to 'std::__cxx11::basic_string<wchar_t>::basic_string(<brace-enclosed initializer list>)'
6967 | { return basic_string<wchar_t>{__str, __len}; }
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6967:48: note: deduced conflicting types for parameter '_InputIterator' ('const wchar_t*' and 'long unsigned int')
6967 | { return basic_string<wchar_t>{__str, __len}; }
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6967:43: note: cannot convert '__len' (type 'size_t' {aka 'long unsigned int'}) to type 'const std::allocator<wchar_t>&'
6967 | { return basic_string<wchar_t>{__str, __len}; }
| ^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:56: note: no known conversion for argument 2 from 'size_t' {aka 'long unsigned int'} to 'const std::allocator<wchar_t>&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:61: note: no known conversion for argument 2 from 'size_t' {aka 'long unsigned int'} to 'const std::allocator<wchar_t>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'const wchar_t*' to 'std::initializer_list<wchar_t>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'const wchar_t*' to 'std::__cxx11::basic_string<wchar_t>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In function 'std::__cxx11::basic_string<char16_t> std::literals::string_literals::operator""s(const char16_t*, size_t)':
/usr/include/c++/11/bits/basic_string.h:6980:49: error: no matching function for call to 'std::__cxx11::basic_string<char16_t>::basic_string(<brace-enclosed initializer list>)'
6980 | { return basic_string<char16_t>{__str, __len}; }
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6980:49: note: deduced conflicting types for parameter '_InputIterator' ('const char16_t*' and 'long unsigned int')
6980 | { return basic_string<char16_t>{__str, __len}; }
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6980:44: note: cannot convert '__len' (type 'size_t' {aka 'long unsigned int'}) to type 'const std::allocator<char16_t>&'
6980 | { return basic_string<char16_t>{__str, __len}; }
| ^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:56: note: no known conversion for argument 2 from 'size_t' {aka 'long unsigned int'} to 'const std::allocator<char16_t>&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:61: note: no known conversion for argument 2 from 'size_t' {aka 'long unsigned int'} to 'const std::allocator<char16_t>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'const char16_t*' to 'std::initializer_list<char16_t>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'const char16_t*' to 'std::__cxx11::basic_string<char16_t>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In function 'std::__cxx11::basic_string<char32_t> std::literals::string_literals::operator""s(const char32_t*, size_t)':
/usr/include/c++/11/bits/basic_string.h:6985:49: error: no matching function for call to 'std::__cxx11::basic_string<char32_t>::basic_string(<brace-enclosed initializer list>)'
6985 | { return basic_string<char32_t>{__str, __len}; }
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6985:49: note: deduced conflicting types for parameter '_InputIterator' ('const char32_t*' and 'long unsigned int')
6985 | { return basic_string<char32_t>{__str, __len}; }
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6985:44: note: cannot convert '__len' (type 'size_t' {aka 'long unsigned int'}) to type 'const std::allocator<char32_t>&'
6985 | { return basic_string<char32_t>{__str, __len}; }
| ^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:56: note: no known conversion for argument 2 from 'size_t' {aka 'long unsigned int'} to 'const std::allocator<char32_t>&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:61: note: no known conversion for argument 2 from 'size_t' {aka 'long unsigned int'} to 'const std::allocator<char32_t>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'const char32_t*' to 'std::initializer_list<char32_t>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'const char32_t*' to 'std::__cxx11::basic_string<char32_t>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:56,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.tcc: In function 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)':
/usr/include/c++/11/bits/basic_string.tcc:1507:21: error: 'streamsize' does not name a type
1507 | const streamsize __w = __in.width();
| ^~~~~~~~~~
/usr/include/c++/11/bits/basic_string.tcc:1508:39: error: '__w' was not declared in this scope; did you mean '__n'?
1508 | const __size_type __n = __w > 0 ? static_cast<__size_type>(__w)
| ^~~
| __n
In file included from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/ios_base.h: At global scope:
/usr/include/c++/11/bits/ios_base.h:545:5: error: 'streamsize' does not name a type
545 | streamsize _M_precision;
| ^~~~~~~~~~
/usr/include/c++/11/bits/ios_base.h:546:5: error: 'streamsize' does not name a type
546 | streamsize _M_width;
| ^~~~~~~~~~
/usr/include/c++/11/bits/ios_base.h:718:5: error: 'streamsize' does not name a type
718 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/ios_base.h:727:5: error: 'streamsize' does not name a type
727 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/ios_base.h:741:5: error: 'streamsize' does not name a type
741 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/ios_base.h:750:5: error: 'streamsize' does not name a type
750 | streamsize
| ^~~~~~~~~~
In file included from /usr/include/c++/11/ios:43,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/streambuf:52:5: error: 'streamsize' does not name a type
52 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:149:14: error: 'streamsize' does not name a type
149 | friend streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:169:54: error: 'streamsize' has not been declared
169 | friend void __istream_extract(istream&, char*, streamsize);
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:244:33: error: 'streamsize' has not been declared
244 | pubsetbuf(char_type* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:288:7: error: 'streamsize' does not name a type
288 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:361:7: error: 'streamsize' does not name a type
361 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:454:7: error: 'streamsize' does not name a type
454 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:596:26: error: 'streamsize' has not been declared
596 | setbuf(char_type*, streamsize)
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:653:15: error: 'streamsize' does not name a type
653 | virtual streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:669:15: error: 'streamsize' does not name a type
669 | virtual streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:746:15: error: 'streamsize' does not name a type
746 | virtual streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:800:20: error: 'streamsize' has not been declared
800 | __safe_gbump(streamsize __n) { _M_in_cur += __n; }
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:803:20: error: 'streamsize' has not been declared
803 | __safe_pbump(streamsize __n) { _M_out_cur += __n; }
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:843:5: error: 'streamsize' does not name a type
843 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:848:5: error: 'streamsize' does not name a type
848 | streamsize
| ^~~~~~~~~~
In file included from /usr/include/c++/11/streambuf:858,
from /usr/include/c++/11/ios:43,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/streambuf.tcc:44:5: error: 'streamsize' does not name a type
44 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:78:5: error: 'streamsize' does not name a type
78 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:115:5: error: 'streamsize' does not name a type
115 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:138:12: error: 'streamsize' does not name a type
138 | inline streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:151:5: error: 'streamsize' is not a template function
151 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:151:15: error: expected ';' before '__copy_streambufs'
151 | streamsize
| ^
| ;
152 | __copy_streambufs(basic_streambuf<char>*,
| ~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:155:5: error: 'streamsize' is not a template function
155 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:155:15: error: expected ';' before '__copy_streambufs_eof'
155 | streamsize
| ^
| ;
156 | __copy_streambufs_eof(basic_streambuf<char>*,
| ~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:162:5: error: 'streamsize' is not a template function
162 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:162:15: error: expected ';' before '__copy_streambufs'
162 | streamsize
| ^
| ;
163 | __copy_streambufs(basic_streambuf<wchar_t>*,
| ~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:166:5: error: 'streamsize' is not a template function
166 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:166:15: error: expected ';' before '__copy_streambufs_eof'
166 | streamsize
| ^
| ;
167 | __copy_streambufs_eof(basic_streambuf<wchar_t>*,
| ~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/locale_facets.h:48,
from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/streambuf_iterator.h:311:34: error: 'streamsize' has not been declared
311 | _M_put(const _CharT* __ws, streamsize __len)
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf_iterator.h: In function 'typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::__copy_move_a2(_CharT*, _CharT*, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> >)':
/usr/include/c++/11/bits/streambuf_iterator.h:345:13: error: 'streamsize' does not name a type
345 | const streamsize __num = __last - __first;
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf_iterator.h:346:11: error: '__num' was not declared in this scope
346 | if (__num > 0)
| ^~~~~
/usr/include/c++/11/bits/streambuf_iterator.h: In function 'typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::__copy_move_a2(const _CharT*, const _CharT*, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> >)':
/usr/include/c++/11/bits/streambuf_iterator.h:357:13: error: 'streamsize' does not name a type
357 | const streamsize __num = __last - __first;
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf_iterator.h:358:11: error: '__num' was not declared in this scope
358 | if (__num > 0)
| ^~~~~
/usr/include/c++/11/bits/streambuf_iterator.h: In function 'typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, _CharT*>::__type std::__copy_move_a2(std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, _CharT*)':
/usr/include/c++/11/bits/streambuf_iterator.h:380:21: error: 'streamsize' does not name a type
380 | const streamsize __n = __sb->egptr() - __sb->gptr();
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf_iterator.h:381:19: error: '__n' was not declared in this scope; did you mean '__c'?
381 | if (__n > 1)
| ^~~
| __c
/usr/include/c++/11/bits/streambuf_iterator.h: In function 'typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::find(std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, const _CharT2&)':
/usr/include/c++/11/bits/streambuf_iterator.h:438:15: error: 'streamsize' was not declared in this scope
438 | streamsize __n = __sb->egptr() - __sb->gptr();
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf_iterator.h:439:19: error: '__n' was not declared in this scope; did you mean '__c'?
439 | if (__n > 1)
| ^~~
| __c
/usr/include/c++/11/bits/streambuf_iterator.h: In function 'typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, void>::__type std::advance(std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >&, _Distance)':
/usr/include/c++/11/bits/streambuf_iterator.h:480:11: error: 'streamsize' was not declared in this scope
480 | streamsize __size = __sb->egptr() - __sb->gptr();
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf_iterator.h:481:15: error: '__size' was not declared in this scope; did you mean 'size'?
481 | if (__size > __n)
| ^~~~~~
| size
/usr/include/c++/11/bits/streambuf_iterator.h:487:30: error: '__size' was not declared in this scope; did you mean 'size'?
487 | __sb->__safe_gbump(__size);
| ^~~~~~
| size
In file included from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/locale_facets.h: At global scope:
/usr/include/c++/11/bits/locale_facets.h:102:36: error: 'streamsize' has not been declared
102 | const _CharT* __olds, streamsize __newlen, streamsize __oldlen);
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.h:102:57: error: 'streamsize' has not been declared
102 | const _CharT* __olds, streamsize __newlen, streamsize __oldlen);
| ^~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/locale_facets.h:2508:32: error: 'streamsize' has not been declared
2508 | _M_pad(char_type __fill, streamsize __w, ios_base& __io,
| ^~~~~~~~~~
In file included from /usr/include/c++/11/bits/locale_facets.h:2682,
from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/locale_facets.tcc: In member function 'void std::__numpunct_cache<_CharT>::_M_cache(const std::locale&)':
/usr/include/c++/11/bits/locale_facets.tcc:88:34: error: 'const string' {aka 'const class std::__cxx11::basic_string<char>'} has no member named 'size'
88 | _M_grouping_size = __g.size();
| ^~~~
/usr/include/c++/11/bits/locale_facets.tcc:90:15: error: 'const string' {aka 'const class std::__cxx11::basic_string<char>'} has no member named 'copy'
90 | __g.copy(__grouping, _M_grouping_size);
| ^~~~
/usr/include/c++/11/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&, std::string&) const':
/usr/include/c++/11/bits/locale_facets.tcc:211:33: error: no matching function for call to 'std::__cxx11::basic_string<char>::reserve(int)'
211 | __found_grouping.reserve(32);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate: 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1009 | reserve();
| ^~~~~~~
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate expects 0 arguments, 1 provided
In file included from /usr/include/c++/11/bits/locale_facets.h:2682,
from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/locale_facets.tcc:296:42: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
296 | if (__found_grouping.size())
| ^~~~
/usr/include/c++/11/bits/locale_facets.tcc:319:42: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
319 | if (__found_grouping.size() && !__found_dec)
| ^~~~
/usr/include/c++/11/bits/locale_facets.tcc:355:28: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
355 | if (__found_grouping.size())
| ^~~~
/usr/include/c++/11/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/include/c++/11/bits/locale_facets.tcc:469:35: error: no matching function for call to 'std::__cxx11::basic_string<char>::reserve(int)'
469 | __found_grouping.reserve(32);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate: 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1009 | reserve();
| ^~~~~~~
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate expects 0 arguments, 1 provided
In file included from /usr/include/c++/11/bits/locale_facets.h:2682,
from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/locale_facets.tcc:555:30: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
555 | if (__found_grouping.size())
| ^~~~
/usr/include/c++/11/bits/locale_facets.tcc:568:63: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
568 | if ((!__sep_pos && !__found_zero && !__found_grouping.size())
| ^~~~
/usr/include/c++/11/bits/locale_facets.tcc: In member function 'virtual _InIter std::num_get<_CharT, _InIter>::do_get(std::num_get<_CharT, _InIter>::iter_type, std::num_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, float&) const':
/usr/include/c++/11/bits/locale_facets.tcc:695:21: error: no matching function for call to 'std::__cxx11::basic_string<char>::reserve(int)'
695 | __xtrc.reserve(32);
| ~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate: 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1009 | reserve();
| ^~~~~~~
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate expects 0 arguments, 1 provided
In file included from /usr/include/c++/11/bits/locale_facets.h:2682,
from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/locale_facets.tcc: In member function 'virtual _InIter std::num_get<_CharT, _InIter>::do_get(std::num_get<_CharT, _InIter>::iter_type, std::num_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, double&) const':
/usr/include/c++/11/bits/locale_facets.tcc:710:21: error: no matching function for call to 'std::__cxx11::basic_string<char>::reserve(int)'
710 | __xtrc.reserve(32);
| ~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate: 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1009 | reserve();
| ^~~~~~~
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate expects 0 arguments, 1 provided
In file included from /usr/include/c++/11/bits/locale_facets.h:2682,
from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/locale_facets.tcc: In member function 'virtual _InIter std::num_get<_CharT, _InIter>::do_get(std::num_get<_CharT, _InIter>::iter_type, std::num_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, long double&) const':
/usr/include/c++/11/bits/locale_facets.tcc:742:21: error: no matching function for call to 'std::__cxx11::basic_string<char>::reserve(int)'
742 | __xtrc.reserve(32);
| ~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate: 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1009 | reserve();
| ^~~~~~~
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate expects 0 arguments, 1 provided
In file included from /usr/include/c++/11/bits/locale_facets.h:2682,
from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/locale_facets.tcc: At global scope:
/usr/include/c++/11/bits/locale_facets.tcc:798:27: error: 'streamsize' has not been declared
798 | _M_pad(_CharT __fill, streamsize __w, ios_base& __io,
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc: In member function '_OutIter std::num_put<_CharT, _OutIter>::_M_insert_int(_OutIter, std::ios_base&, _CharT, _ValueT) const':
/usr/include/c++/11/bits/locale_facets.tcc:939:15: error: 'streamsize' does not name a type
939 | const streamsize __w = __io.width();
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:940:13: error: '__w' was not declared in this scope; did you mean '__u'?
940 | if (__w > static_cast<streamsize>(__len))
| ^~~
| __u
/usr/include/c++/11/bits/locale_facets.tcc:940:31: error: 'streamsize' does not name a type
940 | if (__w > static_cast<streamsize>(__len))
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:947:14: error: 'class std::ios_base' has no member named 'width'
947 | __io.width(0);
| ^~~~~
/usr/include/c++/11/bits/locale_facets.tcc: In member function '_OutIter std::num_put<_CharT, _OutIter>::_M_insert_float(_OutIter, std::ios_base&, _CharT, char, _ValueT) const':
/usr/include/c++/11/bits/locale_facets.tcc:1002:15: error: 'streamsize' does not name a type
1002 | const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision();
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1024:49: error: '__prec' was not declared in this scope
1024 | __fbuf, __prec, __v);
| ^~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1036:53: error: '__prec' was not declared in this scope
1036 | __fbuf, __prec, __v);
| ^~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1089:13: error: 'streamsize' was not declared in this scope
1089 | streamsize __off = 0;
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1092:17: error: '__off' was not declared in this scope
1092 | __off = 1;
| ^~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1098:66: error: '__off' was not declared in this scope
1098 | __lc->_M_thousands_sep, __wp, __ws2 + __off,
| ^~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1106:15: error: 'streamsize' does not name a type
1106 | const streamsize __w = __io.width();
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1107:13: error: '__w' was not declared in this scope; did you mean '__p'?
1107 | if (__w > static_cast<streamsize>(__len))
| ^~~
| __p
/usr/include/c++/11/bits/locale_facets.tcc:1107:31: error: 'streamsize' does not name a type
1107 | if (__w > static_cast<streamsize>(__len))
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1114:14: error: 'class std::ios_base' has no member named 'width'
1114 | __io.width(0);
| ^~~~~
/usr/include/c++/11/bits/locale_facets.tcc: In member function 'virtual _OutIter std::num_put<_CharT, _OutIter>::do_put(std::num_put<_CharT, _OutIter>::iter_type, std::ios_base&, std::num_put<_CharT, _OutIter>::char_type, bool) const':
/usr/include/c++/11/bits/locale_facets.tcc:1144:17: error: 'streamsize' does not name a type
1144 | const streamsize __w = __io.width();
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1145:15: error: '__w' was not declared in this scope; did you mean '__s'?
1145 | if (__w > static_cast<streamsize>(__len))
| ^~~
| __s
/usr/include/c++/11/bits/locale_facets.tcc:1145:33: error: 'streamsize' does not name a type
1145 | if (__w > static_cast<streamsize>(__len))
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1147:21: error: 'streamsize' does not name a type
1147 | const streamsize __plen = __w - __len;
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1150:59: error: '__plen' was not declared in this scope; did you mean '__len'?
1150 | * __plen));
| ^~~~~~
| __len
/usr/include/c++/11/bits/locale_facets.tcc:1153:20: error: 'class std::ios_base' has no member named 'width'
1153 | __io.width(0);
| ^~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1167:16: error: 'class std::ios_base' has no member named 'width'
1167 | __io.width(0);
| ^~~~~
/usr/include/c++/11/bits/locale_facets.tcc: At global scope:
/usr/include/c++/11/bits/locale_facets.tcc:1237:36: error: 'streamsize' has not been declared
1237 | streamsize __newlen, streamsize __oldlen)
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1237:57: error: 'streamsize' has not been declared
1237 | streamsize __newlen, streamsize __oldlen)
| ^~~~~~~~~~
In file included from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ostream:324:38: error: 'streamsize' has not been declared
324 | _M_write(const char_type* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/ostream:348:35: error: 'streamsize' has not been declared
348 | write(const char_type* __s, streamsize __n);
| ^~~~~~~~~~
/usr/include/c++/11/ostream: In member function 'void std::basic_ostream<_CharT, _Traits>::_M_write(const char_type*, int)':
/usr/include/c++/11/ostream:326:15: error: 'streamsize' does not name a type
326 | const streamsize __put = this->rdbuf()->sputn(__s, __n);
| ^~~~~~~~~~
/usr/include/c++/11/ostream:327:13: error: '__put' was not declared in this scope; did you mean 'put'?
327 | if (__put != __n)
| ^~~~~
| put
/usr/include/c++/11/ostream: In function 'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*)':
/usr/include/c++/11/ostream:600:38: error: 'streamsize' does not name a type
600 | static_cast<streamsize>(_Traits::length(__s)));
| ^~~~~~~~~~
/usr/include/c++/11/ostream: In function 'std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)':
/usr/include/c++/11/ostream:617:38: error: 'streamsize' does not name a type
617 | static_cast<streamsize>(_Traits::length(__s)));
| ^~~~~~~~~~
In file included from /usr/include/c++/11/ostream:829,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/ostream.tcc: At global scope:
/usr/include/c++/11/bits/ostream.tcc:183:30: error: 'streamsize' has not been declared
183 | write(const _CharT* __s, streamsize __n)
| ^~~~~~~~~~
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:82:7: error: 'streamsize' does not name a type
82 | streamsize _M_gcount;
| ^~~~~~~~~~
/usr/include/c++/11/istream:268:7: error: 'streamsize' does not name a type
268 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/istream:343:27: error: 'streamsize' has not been declared
343 | get(char_type* __s, streamsize __n, char_type __delim);
| ^~~~~~~~~~
/usr/include/c++/11/istream:354:27: error: 'streamsize' has not been declared
354 | get(char_type* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/istream:416:31: error: 'streamsize' has not been declared
416 | getline(char_type* __s, streamsize __n, char_type __delim);
| ^~~~~~~~~~
/usr/include/c++/11/istream:427:31: error: 'streamsize' has not been declared
427 | getline(char_type* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/istream:451:14: error: 'streamsize' has not been declared
451 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~~~~
/usr/include/c++/11/istream:454:14: error: 'streamsize' has not been declared
454 | ignore(streamsize __n);
| ^~~~~~~~~~
/usr/include/c++/11/istream:486:28: error: 'streamsize' has not been declared
486 | read(char_type* __s, streamsize __n);
| ^~~~~~~~~~
/usr/include/c++/11/istream:504:7: error: 'streamsize' does not name a type
504 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/istream: In constructor 'std::basic_istream<_CharT, _Traits>::basic_istream(std::basic_istream<_CharT, _Traits>::__streambuf_type*)':
/usr/include/c++/11/istream:94:9: error: class 'std::basic_istream<_CharT, _Traits>' does not have any field named '_M_gcount'
94 | : _M_gcount(streamsize(0))
| ^~~~~~~~~
/usr/include/c++/11/istream:94:19: error: there are no arguments to 'streamsize' that depend on a template parameter, so a declaration of 'streamsize' must be available [-fpermissive]
94 | : _M_gcount(streamsize(0))
| ^~~~~~~~~~
/usr/include/c++/11/istream:94:19: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/include/c++/11/istream: In destructor 'virtual std::basic_istream<_CharT, _Traits>::~basic_istream()':
/usr/include/c++/11/istream:104:9: error: '_M_gcount' was not declared in this scope
104 | { _M_gcount = streamsize(0); }
| ^~~~~~~~~
/usr/include/c++/11/istream:104:21: error: there are no arguments to 'streamsize' that depend on a template parameter, so a declaration of 'streamsize' must be available [-fpermissive]
104 | { _M_gcount = streamsize(0); }
| ^~~~~~~~~~
/usr/include/c++/11/istream: In constructor 'std::basic_istream<_CharT, _Traits>::basic_istream()':
/usr/include/c++/11/istream:607:9: error: class 'std::basic_istream<_CharT, _Traits>' does not have any field named '_M_gcount'
607 | : _M_gcount(streamsize(0))
| ^~~~~~~~~
/usr/include/c++/11/istream:607:19: error: there are no arguments to 'streamsize' that depend on a template parameter, so a declaration of 'streamsize' must be available [-fpermissive]
607 | : _M_gcount(streamsize(0))
| ^~~~~~~~~~
/usr/include/c++/11/istream: In constructor 'std::basic_istream<_CharT, _Traits>::basic_istream(std::basic_istream<_CharT, _Traits>&&)':
/usr/include/c++/11/istream:614:23: error: class 'std::basic_istream<_CharT, _Traits>' does not have any field named '_M_gcount'
614 | : __ios_type(), _M_gcount(__rhs._M_gcount)
| ^~~~~~~~~
/usr/include/c++/11/istream: In member function 'void std::basic_istream<_CharT, _Traits>::swap(std::basic_istream<_CharT, _Traits>&)':
/usr/include/c++/11/istream:635:19: error: '_M_gcount' was not declared in this scope
635 | std::swap(_M_gcount, __rhs._M_gcount);
| ^~~~~~~~~
/usr/include/c++/11/istream: At global scope:
/usr/include/c++/11/istream:648:29: error: 'streamsize' has not been declared
648 | getline(char_type* __s, streamsize __n, char_type __delim);
| ^~~~~~~~~~
/usr/include/c++/11/istream:652:5: error: 'std::basic_istream<char>& std::basic_istream<char>::ignore' is not a static data member of 'class std::basic_istream<char>'
652 | basic_istream<char>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/istream:653:12: error: 'streamsize' was not declared in this scope
653 | ignore(streamsize __n);
| ^~~~~~~~~~
/usr/include/c++/11/istream:657:5: error: 'std::basic_istream<char>& std::basic_istream<char>::ignore' is not a static data member of 'class std::basic_istream<char>'
657 | basic_istream<char>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/istream:658:12: error: 'streamsize' was not declared in this scope
658 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~~~~
/usr/include/c++/11/istream:658:37: error: expected primary-expression before '__delim'
658 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~
/usr/include/c++/11/istream:658:44: error: expression list treated as compound expression in initializer [-fpermissive]
658 | ignore(streamsize __n, int_type __delim);
| ^
/usr/include/c++/11/istream:664:29: error: 'streamsize' has not been declared
664 | getline(char_type* __s, streamsize __n, char_type __delim);
| ^~~~~~~~~~
/usr/include/c++/11/istream:668:5: error: 'std::basic_istream<wchar_t>& std::basic_istream<wchar_t>::ignore' is not a static data member of 'class std::basic_istream<wchar_t>'
668 | basic_istream<wchar_t>::
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/istream:669:12: error: 'streamsize' was not declared in this scope
669 | ignore(streamsize __n);
| ^~~~~~~~~~
/usr/include/c++/11/istream:673:5: error: 'std::basic_istream<wchar_t>& std::basic_istream<wchar_t>::ignore' is not a static data member of 'class std::basic_istream<wchar_t>'
673 | basic_istream<wchar_t>::
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/istream:674:12: error: 'streamsize' was not declared in this scope
674 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~~~~
/usr/include/c++/11/istream:674:37: error: expected primary-expression before '__delim'
674 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~
/usr/include/c++/11/istream:674:44: error: expression list treated as compound expression in initializer [-fpermissive]
674 | ignore(streamsize __n, int_type __delim);
| ^
/usr/include/c++/11/istream:768:65: error: 'streamsize' has not been declared
768 | __istream_extract(basic_istream<_CharT, _Traits>&, _CharT*, streamsize);
| ^~~~~~~~~~
/usr/include/c++/11/istream:770:43: error: 'streamsize' has not been declared
770 | void __istream_extract(istream&, char*, streamsize);
| ^~~~~~~~~~
/usr/include/c++/11/istream: In function 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT*)':
/usr/include/c++/11/istream:836:11: error: 'streamsize' was not declared in this scope
836 | streamsize __n = __gnu_cxx::__numeric_traits<streamsize>::__max;
| ^~~~~~~~~~
/usr/include/c++/11/istream:837:11: error: '__n' was not declared in this scope; did you mean '__in'?
837 | __n /= sizeof(_CharT);
| ^~~
| __in
In file included from /usr/include/c++/11/istream:1016,
from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>::int_type std::basic_istream<_CharT, _Traits>::get()':
/usr/include/c++/11/bits/istream.tcc:248:7: error: '_M_gcount' was not declared in this scope
248 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_istream<_CharT, _Traits>::char_type&)':
/usr/include/c++/11/bits/istream.tcc:282:7: error: '_M_gcount' was not declared in this scope
282 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: At global scope:
/usr/include/c++/11/bits/istream.tcc:317:25: error: 'streamsize' has not been declared
317 | get(char_type* __s, streamsize __n, char_type __delim)
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_istream<_CharT, _Traits>::char_type*, int, std::basic_istream<_CharT, _Traits>::char_type)':
/usr/include/c++/11/bits/istream.tcc:319:7: error: '_M_gcount' was not declared in this scope
319 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_istream<_CharT, _Traits>::__streambuf_type&, std::basic_istream<_CharT, _Traits>::char_type)':
/usr/include/c++/11/bits/istream.tcc:366:7: error: '_M_gcount' was not declared in this scope
366 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:392:59: error: 'streamsize' was not declared in this scope
392 | if (__gcount <= __gnu_cxx::__numeric_traits<streamsize>::__max)
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:392:69: error: template argument 1 is invalid
392 | if (__gcount <= __gnu_cxx::__numeric_traits<streamsize>::__max)
| ^
/usr/include/c++/11/bits/istream.tcc: At global scope:
/usr/include/c++/11/bits/istream.tcc:415:29: error: 'streamsize' has not been declared
415 | getline(char_type* __s, streamsize __n, char_type __delim)
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(std::basic_istream<_CharT, _Traits>::char_type*, int, std::basic_istream<_CharT, _Traits>::char_type)':
/usr/include/c++/11/bits/istream.tcc:417:7: error: '_M_gcount' was not declared in this scope
417 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore()':
/usr/include/c++/11/bits/istream.tcc:477:7: error: '_M_gcount' was not declared in this scope
477 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: At global scope:
/usr/include/c++/11/bits/istream.tcc:507:5: error: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore' is not a static data member of 'class std::basic_istream<_CharT, _Traits>'
507 | basic_istream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:508:12: error: template definition of non-template 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore'
508 | ignore(streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:508:12: error: 'streamsize' was not declared in this scope
/usr/include/c++/11/bits/istream.tcc:577:5: error: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore' is not a static data member of 'class std::basic_istream<_CharT, _Traits>'
577 | basic_istream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:578:12: error: template definition of non-template 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore'
578 | ignore(streamsize __n, int_type __delim)
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:578:12: error: 'streamsize' was not declared in this scope
/usr/include/c++/11/bits/istream.tcc:578:37: error: expected primary-expression before '__delim'
578 | ignore(streamsize __n, int_type __delim)
| ^~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>::int_type std::basic_istream<_CharT, _Traits>::peek()':
/usr/include/c++/11/bits/istream.tcc:658:7: error: '_M_gcount' was not declared in this scope
658 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: At global scope:
/usr/include/c++/11/bits/istream.tcc:685:26: error: 'streamsize' has not been declared
685 | read(char_type* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::read(std::basic_istream<_CharT, _Traits>::char_type*, int)':
/usr/include/c++/11/bits/istream.tcc:687:7: error: '_M_gcount' was not declared in this scope
687 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: At global scope:
/usr/include/c++/11/bits/istream.tcc:712:5: error: 'streamsize' does not name a type
712 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::putback(std::basic_istream<_CharT, _Traits>::char_type)':
/usr/include/c++/11/bits/istream.tcc:750:7: error: '_M_gcount' was not declared in this scope
750 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::unget()':
/usr/include/c++/11/bits/istream.tcc:785:7: error: '_M_gcount' was not declared in this scope
785 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: At global scope:
/usr/include/c++/11/bits/istream.tcc:991:23: error: 'streamsize' has not been declared
991 | streamsize __num)
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In function 'void std::__istream_extract(std::basic_istream<_CharT, _Traits>&, _CharT*, int)':
/usr/include/c++/11/bits/istream.tcc:999:7: error: 'streamsize' was not declared in this scope
999 | streamsize __extracted = 0;
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:1007:25: error: expected ';' before '__width'
1007 | streamsize __width = __in.width();
| ^~~~~~~~
| ;
/usr/include/c++/11/bits/istream.tcc:1008:23: error: '__width' was not declared in this scope; did you mean 'wcwidth'?
1008 | if (0 < __width && __width < __num)
| ^~~~~~~
| wcwidth
/usr/include/c++/11/bits/istream.tcc:1017:22: error: '__extracted' was not declared in this scope
1017 | while (__extracted < __num - 1
| ^~~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:1027:19: error: '__extracted' was not declared in this scope
1027 | if (__extracted < __num - 1
| ^~~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:1044:12: error: '__extracted' was not declared in this scope
1044 | if (!__extracted)
| ^~~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: At global scope:
/usr/include/c++/11/bits/istream.tcc:1103:63: error: 'streamsize' has not been declared
1103 | extern template void __istream_extract(wistream&, wchar_t*, streamsize);
| ^~~~~~~~~~
main.cpp:8:26: error: 'Square' does not name a type
8 | Const operator>>(const Square& s) { return s(_i); }
| ^~~~~~
main.cpp: In member function 'Const Const::operator>>(const int&)':
main.cpp:8:47: error: expression cannot be used as a function
8 | Const operator>>(const Square& s) { return s(_i); }
| ~^~~~
main.cpp: In member function 'Const Inc::operator>>(const Const&)':
main.cpp:22:53: error: 'int Const::_i' is private within this context
22 | Const operator>>(const Const& c) { return Const(c._i + 1); }
| ^~
main.cpp:10:7: note: declared private here
10 | int _i;
| ^~
main.cpp: In member function 'void Print::operator>>(const Const&)':
main.cpp:28:47: error: 'int Const::_i' is private within this context
28 | void operator>>(const Const& c) { cout << c._i << endl; }
| ^~
main.cpp:10:7: note: declared private here
10 | int _i;
| ^~
main.cpp: In function 'int __delete_this__main()':
main.cpp:32:12: error: no match for 'operator>>' (operand types are 'Const' and 'Square')
32 | Const(5) >> Square() >> Inc() >> Inc() >> Print();
| ~~~~~~~~ ^~ ~~~~~~~~
| | |
| Const Square
main.cpp:8:9: note: candidate: 'Const Const::operator>>(const int&)'
8 | Const operator>>(const Square& s) { return s(_i); }
| ^~~~~~~~
main.cpp:8:34: note: no known conversion for argument 1 from 'Square' to 'const int&'
8 | Const operator>>(const Square& s) { return s(_i); }
| ~~~~~~~~~~~~~~^
In file included from /usr/include/c++/11/string:56,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.tcc:1485:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
1485 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.tcc:1485:5: note: template argument deduction/substitution failed:
main.cpp:32:22: note: 'Const' is not derived from 'std::basic_istream<_CharT, _Traits>'
32 | Const(5) >> Square() >> Inc() >> Inc() >> Print();
| ^
In file included from /usr/include/c++/11/istream:1016,
from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/bits/istream.tcc:958:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)'
958 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/11/bits/istream.tcc:958:5: note: template argument deduction/substitution failed:
main.cpp:32:22: note: 'Const' is not derived from 'std::basic_istream<_CharT, _Traits>'
32 | Const(5) >> Square() >> Inc() >> Inc() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:756:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)'
756 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/11/istream:756:5: note: template argument deduction/substitution failed:
main.cpp:32:22: note: 'Const' is not derived from 'std::basic_istream<char, _Traits>'
32 | Const(5) >> Square() >> Inc() >> Inc() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:761:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)'
761 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/11/istream:761:5: note: template argument deduction/substitution failed:
main.cpp:32:22: note: 'Const' is not derived from 'std::basic_istream<char, _Traits>'
32 | Const(5) >> Square() >> Inc() >> Inc() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:803:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT*)'
803 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/11/istream:803:5: note: template argument deduction/substitution failed:
main.cpp:32:22: note: 'Const' is not derived from 'std::basic_istream<_CharT, _Traits>'
32 | Const(5) >> Square() >> Inc() >> Inc() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:846:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)'
846 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/11/istream:846:5: note: template argument deduction/substitution failed:
main.cpp:32:22: note: 'Const' is not derived from 'std::basic_istream<char, _Traits>'
32 | Const(5) >> Square() >> Inc() >> Inc() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:852:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)'
852 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/11/istream:852:5: note: template argument deduction/substitution failed:
main.cpp:32:22: note: 'Const' is not derived from 'std::basic_istream<char, _Traits>'
32 | Const(5) >> Square() >> Inc() >> Inc() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:1006:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1006 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/11/istream:1006:5: note: template argument deduction/substitution failed:
/usr/include/c++/11/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = Const; _Tp = Square]':
main.cpp:32:22: required from here
/usr/include/c++/11/istream:1006:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
main.cpp: In function 'int main()':
main.cpp:39:10: error: no match for 'operator>>' (operand types are 'Const' and 'Square')
39 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ~~~~~~~~ ^~ ~~~~~~~~
| | |
| Const Square
main.cpp:8:9: note: candidate: 'Const Const::operator>>(const int&)'
8 | Const operator>>(const Square& s) { return s(_i); }
| ^~~~~~~~
main.cpp:8:34: note: no known conversion for argument 1 from 'Square' to 'const int&'
8 | Const operator>>(const Square& s) { return s(_i); }
| ~~~~~~~~~~~~~~^
In file included from /usr/include/c++/11/string:56,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.tcc:1485:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
1485 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.tcc:1485:5: note: template argument deduction/substitution failed:
main.cpp:39:20: note: 'Const' is not derived from 'std::basic_istream<_CharT, _Traits>'
39 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
In file included from /usr/include/c++/11/istream:1016,
from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/bits/istream.tcc:958:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)'
958 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/11/bits/istream.tcc:958:5: note: template argument deduction/substitution failed:
main.cpp:39:20: note: 'Const' is not derived from 'std::basic_istream<_CharT, _Traits>'
39 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:756:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)'
756 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/11/istream:756:5: note: template argument deduction/substitution failed:
main.cpp:39:20: note: 'Const' is not derived from 'std::basic_istream<char, _Traits>'
39 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:761:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)'
761 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/11/istream:761:5: note: template argument deduction/substitution failed:
main.cpp:39:20: note: 'Const' is not derived from 'std::basic_istream<char, _Traits>'
39 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:803:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT*)'
803 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/11/istream:803:5: note: template argument deduction/substitution failed:
main.cpp:39:20: note: 'Const' is not derived from 'std::basic_istream<_CharT, _Traits>'
39 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:846:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)'
846 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/11/istream:846:5: note: template argument deduction/substitution failed:
main.cpp:39:20: note: 'Const' is not derived from 'std::basic_istream<char, _Traits>'
39 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:852:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)'
852 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/11/istream:852:5: note: template argument deduction/substitution failed:
main.cpp:39:20: note: 'Const' is not derived from 'std::basic_istream<char, _Traits>'
39 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:1006:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1006 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/11/istream:1006:5: note: template argument deduction/substitution failed:
/usr/include/c++/11/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = Const; _Tp = Square]':
main.cpp:39:20: required from here
/usr/include/c++/11/istream:1006:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In instantiation of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]':
/usr/include/c++/11/bits/basic_string.h:6667:12: required from here
/usr/include/c++/11/bits/basic_string.h:576:31: error: 'class std::__cxx11::basic_string<char>' has no member named '_M_allocated_capacity'; did you mean '_S_local_capacity'?
576 | _M_capacity(__str._M_allocated_capacity);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~
| _S_local_capacity
/usr/include/c++/11/bits/basic_string.h: In instantiation of 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]':
/usr/include/c++/11/system_error:456:50: required from here
/usr/include/c++/11/bits/basic_string.h:6185:37: error: 'class std::__cxx11::basic_string<char>' has no member named 'size'
6185 | const auto __size = __lhs.size() + __rhs.size();
| ~~~~~~^~~~
/usr/include/c++/11/bits/basic_string.h:6185:52: error: 'class std::__cxx11::basic_string<char>' has no member named 'size'
6185 | const auto __size = __lhs.size() + __rhs.size();
| ~~~~~~^~~~
/usr/include/c++/11/bits/basic_string.h:6186:30: error: 'class std::__cxx11::basic_string<char>' has no member named 'capacity'
6186 | if (__size > __lhs.capacity() && __size <= __rhs.capacity())
| ~~~~~~^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6186:60: error: 'class std::__cxx11::basic_string<char>' has no member named 'capacity'
6186 | if (__size > __lhs.capacity() && __size <= __rhs.capacity())
| ~~~~~~^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6187:42: error: no matching function for call to 'std::__cxx11::basic_string<char>::insert(int, std::__cxx11::basic_string<char>&)'
6187 | return std::move(__rhs.insert(0, __lhs));
| ~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:1599:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1599 | insert(const_iterator __p, _InputIterator __beg, _InputIterator __end)
| ^~~~~~
/usr/include/c++/11/bits/basic_string.h:1599:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:6187:42: note: candidate expects 3 arguments, 2 provided
6187 | return std::move(__rhs.insert(0, __lhs));
| ~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:1633:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, std::initializer_list<_Tp>) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = std::__cxx11::basic_string<char>::iterator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator = std::__cxx11::basic_string<char>::const_iterator]'
1633 | insert(const_iterator __p, initializer_list<_CharT> __l)
| ^~~~~~
/usr/include/c++/11/bits/basic_string.h:1633:29: note: no known conversion for argument 1 from 'int' to 'std::__cxx11::basic_string<char>::const_iterator'
1633 | insert(const_iterator __p, initializer_list<_CharT> __l)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:1767:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = std::__cxx11::basic_string<char>::iterator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator = std::__cxx11::basic_string<char>::const_iterator]'
1767 | insert(__const_iterator __p, _CharT __c)
| ^~~~~~
/usr/include/c++/11/bits/basic_string.h:1767:31: note: no known conversion for argument 1 from 'int' to 'std::__cxx11::basic_string<char>::__const_iterator' {aka 'std::__cxx11::basic_string<char>::const_iterator'}
1767 | insert(__const_iterator __p, _CharT __c)
| ~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h: In instantiation of 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]':
/usr/include/c++/11/system_error:459:51: required from here
/usr/include/c++/11/bits/basic_string.h:6196:36: error: no matching function for call to 'std::__cxx11::basic_string<char>::insert(int, const char*&)'
6196 | { return std::move(__rhs.insert(0, __lhs)); }
| ~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:1599:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1599 | insert(const_iterator __p, _InputIterator __beg, _InputIterator __end)
| ^~~~~~
/usr/include/c++/11/bits/basic_string.h:1599:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:6196:36: note: candidate expects 3 arguments, 2 provided
6196 | { return std::move(__rhs.insert(0, __lhs)); }
| ~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:1633:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, std::initializer_list<_Tp>) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = std::__cxx11::basic_string<char>::iterator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator = std::__cxx11::basic_string<char>::const_iterator]'
1633 | insert(const_iterator __p, initializer_list<_CharT> __l)
| ^~~~~~
/usr/include/c++/11/bits/basic_string.h:1633:29: note: no known conversion for argument 1 from 'int' to 'std::__cxx11::basic_string<char>::const_iterator'
1633 | insert(const_iterator __p, initializer_list<_CharT> __l)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:1767:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = std::__cxx11::basic_string<char>::iterator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator = std::__cxx11::basic_string<char>::const_iterator]'
1767 | insert(__const_iterator __p, _CharT __c)
| ^~~~~~
/usr/include/c++/11/bits/basic_string.h:1767:31: note: no known conversion for argument 1 from 'int' to 'std::__cxx11::basic_string<char>::__const_iterator' {aka 'std::__cxx11::basic_string<char>::const_iterator'}
1767 | insert(__const_iterator __p, _CharT __c)
| ~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h: In instantiation of 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_dispose() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]':
/usr/include/c++/11/bits/basic_string.h:672:9: required from 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::~basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
/usr/include/c++/11/bits/basic_string.h:6665:36: required from here
/usr/include/c++/11/bits/basic_string.h:240:22: error: using invalid field 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::<unnamed union>::_M_allocated_capacity'
240 | _M_destroy(_M_allocated_capacity);
| ^~~~~~~~~~~~~~~~~~~~~
main.sh: line 2: ./a.out: No such file or directory
Testing if the previous output contains the string 625
: True
Write a C++ class Const, Square, Print so that I can write, for example, Cost(5) >> Square() >> Inc() >> Inc() >> Print() and the resulting python program will print 27 to the screen.
Write a C++ class Const, Square, Print so that I can write, for example, Cost(5) >> Square() >> Inc() >> Inc() >> Print() and the resulting python program will print 27 to the screen.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #include <iostream> #include <sstream> using namespace std; class Const { public: Const(int v) : val(v) {} int get_val() { return val; } private: int val; }; class Square { public: Square(int v) : val(v) {} int get_val() { return val; } Square& operator>>(Const& c) { val *= c.get_val(); return *this; } private: int val; }; class Inc { public: Inc() {} Square& operator>>(Square& s) { s.val += 1; return s; } }; class Print { public: Print() {} void operator>>(Square& s) { cout << s.get_val() << endl; } }; int main() { ostringstream os; os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print(); string s = os.str(); istringstream is(s); Const c; Square sq; Inc inc; Print p; is >> c >> sq >> inc >> inc >> p; return 0; } |
I extracted the following code from that output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #include <iostream> #include <sstream> using namespace std; class Const { public: Const(int v) : val(v) {} int get_val() { return val; } private: int val; }; class Square { public: Square(int v) : val(v) {} int get_val() { return val; } Square& operator>>(Const& c) { val *= c.get_val(); return *this; } private: int val; }; class Inc { public: Inc() {} Square& operator>>(Square& s) { s.val += 1; return s; } }; class Print { public: Print() {} void operator>>(Square& s) { cout << s.get_val() << endl; } }; int main() { ostringstream os; os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print(); string s = os.str(); istringstream is(s); Const c; Square sq; Inc inc; Print p; is >> c >> sq >> inc >> inc >> p; return 0; } |
Running the following program:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | #include <iostream> #include <sstream> using namespace std; class Const { public: Const(int v) : val(v) {} int get_val() { return val; } private: int val; }; class Square { public: Square(int v) : val(v) {} int get_val() { return val; } Square& operator>>(Const& c) { val *= c.get_val(); return *this; } private: int val; }; class Inc { public: Inc() {} Square& operator>>(Square& s) { s.val += 1; return s; } }; class Print { public: Print() {} void operator>>(Square& s) { cout << s.get_val() << endl; } }; int __delete_this__main() { ostringstream os; os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print(); string s = os.str(); istringstream is(s); Const c; Square sq; Inc inc; Print p; is >> c >> sq >> inc >> inc >> p; return 0; } int main() { Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print(); return 0; } |
main.cpp: In member function 'Square& Inc::operator>>(Square&)':
main.cpp:26:39: error: 'int Square::val' is private within this context
26 | Square& operator>>(Square& s) { s.val += 1; return s; }
| ^~~
main.cpp:20:9: note: declared private here
20 | int val;
| ^~~
main.cpp:26:39: note: field 'int Square::val' can be accessed via 'int Square::get_val()'
26 | Square& operator>>(Square& s) { s.val += 1; return s; }
| ^~~
| get_val()
main.cpp: In function 'int __delete_this__main()':
main.cpp:37:8: error: no match for 'operator<<' (operand types are 'std::ostringstream' {aka 'std::__cxx11::basic_ostringstream<char>'} and 'Const')
37 | os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print();
| ~~ ^~ ~~~~~~~~
| | |
| | Const
| std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}
In file included from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ostream:108:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
108 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
/usr/include/c++/11/ostream:108:36: note: no known conversion for argument 1 from 'Const' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'}
108 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/ostream:117:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]'
117 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/11/ostream:117:32: note: no known conversion for argument 1 from 'Const' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
117 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/11/ostream:127:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
127 | operator<<(ios_base& (*__pf) (ios_base&))
| ^~~~~~~~
/usr/include/c++/11/ostream:127:30: note: no known conversion for argument 1 from 'Const' to 'std::ios_base& (*)(std::ios_base&)'
127 | operator<<(ios_base& (*__pf) (ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/11/ostream:166:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
166 | operator<<(long __n)
| ^~~~~~~~
/usr/include/c++/11/ostream:166:23: note: no known conversion for argument 1 from 'Const' to 'long int'
166 | operator<<(long __n)
| ~~~~~^~~
/usr/include/c++/11/ostream:170:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
170 | operator<<(unsigned long __n)
| ^~~~~~~~
/usr/include/c++/11/ostream:170:32: note: no known conversion for argument 1 from 'Const' to 'long unsigned int'
170 | operator<<(unsigned long __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
174 | operator<<(bool __n)
| ^~~~~~~~
/usr/include/c++/11/ostream:174:23: note: no known conversion for argument 1 from 'Const' to 'bool'
174 | operator<<(bool __n)
| ~~~~~^~~
In file included from /usr/include/c++/11/ostream:829,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/ostream.tcc:91:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]'
91 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/ostream.tcc:92:22: note: no known conversion for argument 1 from 'Const' to 'short int'
92 | operator<<(short __n)
| ~~~~~~^~~
In file included from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ostream:181:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
181 | operator<<(unsigned short __n)
| ^~~~~~~~
/usr/include/c++/11/ostream:181:33: note: no known conversion for argument 1 from 'Const' to 'short unsigned int'
181 | operator<<(unsigned short __n)
| ~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/11/ostream:829,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/ostream.tcc:105:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]'
105 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/ostream.tcc:106:20: note: no known conversion for argument 1 from 'Const' to 'int'
106 | operator<<(int __n)
| ~~~~^~~
In file included from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ostream:192:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
192 | operator<<(unsigned int __n)
| ^~~~~~~~
/usr/include/c++/11/ostream:192:31: note: no known conversion for argument 1 from 'Const' to 'unsigned int'
192 | operator<<(unsigned int __n)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/11/ostream:201:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
201 | operator<<(long long __n)
| ^~~~~~~~
/usr/include/c++/11/ostream:201:28: note: no known conversion for argument 1 from 'Const' to 'long long int'
201 | operator<<(long long __n)
| ~~~~~~~~~~^~~
/usr/include/c++/11/ostream:205:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
205 | operator<<(unsigned long long __n)
| ^~~~~~~~
/usr/include/c++/11/ostream:205:37: note: no known conversion for argument 1 from 'Const' to 'long long unsigned int'
205 | operator<<(unsigned long long __n)
| ~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/ostream:220:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
220 | operator<<(double __f)
| ^~~~~~~~
/usr/include/c++/11/ostream:220:25: note: no known conversion for argument 1 from 'Const' to 'double'
220 | operator<<(double __f)
| ~~~~~~~^~~
/usr/include/c++/11/ostream:224:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
224 | operator<<(float __f)
| ^~~~~~~~
/usr/include/c++/11/ostream:224:24: note: no known conversion for argument 1 from 'Const' to 'float'
224 | operator<<(float __f)
| ~~~~~~^~~
/usr/include/c++/11/ostream:232:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
232 | operator<<(long double __f)
| ^~~~~~~~
/usr/include/c++/11/ostream:232:30: note: no known conversion for argument 1 from 'Const' to 'long double'
232 | operator<<(long double __f)
| ~~~~~~~~~~~~^~~
/usr/include/c++/11/ostream:245:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]'
245 | operator<<(const void* __p)
| ^~~~~~~~
/usr/include/c++/11/ostream:245:30: note: no known conversion for argument 1 from 'Const' to 'const void*'
245 | operator<<(const void* __p)
| ~~~~~~~~~~~~^~~
/usr/include/c++/11/ostream:250:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::nullptr_t = std::nullptr_t]'
250 | operator<<(nullptr_t)
| ^~~~~~~~
/usr/include/c++/11/ostream:250:18: note: no known conversion for argument 1 from 'Const' to 'std::nullptr_t'
250 | operator<<(nullptr_t)
| ^~~~~~~~~
In file included from /usr/include/c++/11/ostream:829,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/ostream.tcc:119:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>]'
119 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/ostream.tcc:120:34: note: no known conversion for argument 1 from 'Const' to 'std::basic_ostream<char>::__streambuf_type*' {aka 'std::basic_streambuf<char>*'}
120 | operator<<(__streambuf_type* __sbin)
| ~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:48,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/string_view:667:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, std::basic_string_view<_CharT, _Traits>)'
667 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/11/string_view:667:5: note: template argument deduction/substitution failed:
main.cpp:37:18: note: 'Const' is not derived from 'std::basic_string_view<_CharT, _Traits>'
37 | os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print();
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6531:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
6531 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6531:5: note: template argument deduction/substitution failed:
main.cpp:37:18: note: 'Const' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
37 | os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print();
| ^
In file included from /usr/include/c++/11/bits/ios_base.h:46,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/system_error:279:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)'
279 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/11/system_error:279:5: note: template argument deduction/substitution failed:
main.cpp:37:11: note: cannot convert 'Const(5)' (type 'Const') to type 'const std::error_code&'
37 | os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print();
| ^~~~~~~~
In file included from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ostream:513:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT)'
513 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/11/ostream:513:5: note: template argument deduction/substitution failed:
main.cpp:37:18: note: deduced conflicting types for parameter '_CharT' ('char' and 'Const')
37 | os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ostream:518:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char)'
518 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/11/ostream:518:5: note: template argument deduction/substitution failed:
main.cpp:37:11: note: cannot convert 'Const(5)' (type 'Const') to type 'char'
37 | os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print();
| ^~~~~~~~
In file included from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ostream:524:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char)'
524 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/11/ostream:524:5: note: template argument deduction/substitution failed:
main.cpp:37:11: note: cannot convert 'Const(5)' (type 'Const') to type 'char'
37 | os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print();
| ^~~~~~~~
In file included from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ostream:530:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, signed char)'
530 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/11/ostream:530:5: note: template argument deduction/substitution failed:
main.cpp:37:11: note: cannot convert 'Const(5)' (type 'Const') to type 'signed char'
37 | os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print();
| ^~~~~~~~
In file included from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ostream:535:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, unsigned char)'
535 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/11/ostream:535:5: note: template argument deduction/substitution failed:
main.cpp:37:11: note: cannot convert 'Const(5)' (type 'Const') to type 'unsigned char'
37 | os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print();
| ^~~~~~~~
In file included from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ostream:594:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*)'
594 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/11/ostream:594:5: note: template argument deduction/substitution failed:
main.cpp:37:18: note: mismatched types 'const _CharT*' and 'Const'
37 | os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print();
| ^
In file included from /usr/include/c++/11/ostream:829,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/ostream.tcc:321:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const char*)'
321 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/11/bits/ostream.tcc:321:5: note: template argument deduction/substitution failed:
main.cpp:37:11: note: cannot convert 'Const(5)' (type 'Const') to type 'const char*'
37 | os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print();
| ^~~~~~~~
In file included from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ostream:611:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)'
611 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/11/ostream:611:5: note: template argument deduction/substitution failed:
main.cpp:37:11: note: cannot convert 'Const(5)' (type 'Const') to type 'const char*'
37 | os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print();
| ^~~~~~~~
In file included from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ostream:624:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const signed char*)'
624 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/11/ostream:624:5: note: template argument deduction/substitution failed:
main.cpp:37:11: note: cannot convert 'Const(5)' (type 'Const') to type 'const signed char*'
37 | os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print();
| ^~~~~~~~
In file included from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ostream:629:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const unsigned char*)'
629 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/11/ostream:629:5: note: template argument deduction/substitution failed:
main.cpp:37:11: note: cannot convert 'Const(5)' (type 'Const') to type 'const unsigned char*'
37 | os << Const(5) >> Square(2) >> Inc() >> Inc() >> Print();
| ^~~~~~~~
In file included from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ostream:750:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
750 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/11/ostream:750:5: note: template argument deduction/substitution failed:
/usr/include/c++/11/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::__cxx11::basic_ostringstream<char>&; _Tp = Const]':
main.cpp:37:18: required from here
/usr/include/c++/11/ostream:750:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
main.cpp:40:11: error: no matching function for call to 'Const::Const()'
40 | Const c;
| ^
main.cpp:8:5: note: candidate: 'Const::Const(int)'
8 | Const(int v) : val(v) {}
| ^~~~~
main.cpp:8:5: note: candidate expects 1 argument, 0 provided
main.cpp:6:7: note: candidate: 'constexpr Const::Const(const Const&)'
6 | class Const {
| ^~~~~
main.cpp:6:7: note: candidate expects 1 argument, 0 provided
main.cpp:6:7: note: candidate: 'constexpr Const::Const(Const&&)'
main.cpp:6:7: note: candidate expects 1 argument, 0 provided
main.cpp:41:12: error: no matching function for call to 'Square::Square()'
41 | Square sq;
| ^~
main.cpp:16:5: note: candidate: 'Square::Square(int)'
16 | Square(int v) : val(v) {}
| ^~~~~~
main.cpp:16:5: note: candidate expects 1 argument, 0 provided
main.cpp:14:7: note: candidate: 'constexpr Square::Square(const Square&)'
14 | class Square {
| ^~~~~~
main.cpp:14:7: note: candidate expects 1 argument, 0 provided
main.cpp:14:7: note: candidate: 'constexpr Square::Square(Square&&)'
main.cpp:14:7: note: candidate expects 1 argument, 0 provided
main.cpp:44:8: error: no match for 'operator>>' (operand types are 'std::istringstream' {aka 'std::__cxx11::basic_istringstream<char>'} and 'Const')
44 | is >> c >> sq >> inc >> inc >> p;
| ~~ ^~ ~
| | |
| | Const
| std::istringstream {aka std::__cxx11::basic_istringstream<char>}
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:120:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)(std::basic_istream<_CharT, _Traits>::__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]'
120 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/11/istream:120:36: note: no known conversion for argument 1 from 'Const' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'}
120 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/istream:124:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__ios_type& (*)(std::basic_istream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>; std::basic_istream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]'
124 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/11/istream:124:32: note: no known conversion for argument 1 from 'Const' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
124 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/11/istream:131:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]'
131 | operator>>(ios_base& (*__pf)(ios_base&))
| ^~~~~~~~
/usr/include/c++/11/istream:131:30: note: no known conversion for argument 1 from 'Const' to 'std::ios_base& (*)(std::ios_base&)'
131 | operator>>(ios_base& (*__pf)(ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/11/istream:168:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]'
168 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/11/istream:168:24: note: no known conversion for argument 1 from 'Const' to 'bool&'
168 | operator>>(bool& __n)
| ~~~~~~^~~
/usr/include/c++/11/istream:172:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]'
172 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/11/istream:172:25: note: no known conversion for argument 1 from 'Const' to 'short int&'
172 | operator>>(short& __n);
| ~~~~~~~^~~
/usr/include/c++/11/istream:175:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]'
175 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/11/istream:175:34: note: no known conversion for argument 1 from 'Const' to 'short unsigned int&'
175 | operator>>(unsigned short& __n)
| ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/istream:179:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]'
179 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/11/istream:179:23: note: no known conversion for argument 1 from 'Const' to 'int&'
179 | operator>>(int& __n);
| ~~~~~^~~
/usr/include/c++/11/istream:182:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]'
182 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/11/istream:182:32: note: no known conversion for argument 1 from 'Const' to 'unsigned int&'
182 | operator>>(unsigned int& __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/istream:186:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]'
186 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/11/istream:186:24: note: no known conversion for argument 1 from 'Const' to 'long int&'
186 | operator>>(long& __n)
| ~~~~~~^~~
/usr/include/c++/11/istream:190:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]'
190 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/11/istream:190:33: note: no known conversion for argument 1 from 'Const' to 'long unsigned int&'
190 | operator>>(unsigned long& __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/istream:195:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]'
195 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/11/istream:195:29: note: no known conversion for argument 1 from 'Const' to 'long long int&'
195 | operator>>(long long& __n)
| ~~~~~~~~~~~^~~
/usr/include/c++/11/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]'
199 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/11/istream:199:38: note: no known conversion for argument 1 from 'Const' to 'long long unsigned int&'
199 | operator>>(unsigned long long& __n)
| ~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/istream:214:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]'
214 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/11/istream:214:25: note: no known conversion for argument 1 from 'Const' to 'float&'
214 | operator>>(float& __f)
| ~~~~~~~^~~
/usr/include/c++/11/istream:218:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]'
218 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/11/istream:218:26: note: no known conversion for argument 1 from 'Const' to 'double&'
218 | operator>>(double& __f)
| ~~~~~~~~^~~
/usr/include/c++/11/istream:222:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]'
222 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/11/istream:222:31: note: no known conversion for argument 1 from 'Const' to 'long double&'
222 | operator>>(long double& __f)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/11/istream:235:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]'
235 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/11/istream:235:25: note: no known conversion for argument 1 from 'Const' to 'void*&'
235 | operator>>(void*& __p)
| ~~~~~~~^~~
/usr/include/c++/11/istream:259:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>]'
259 | operator>>(__streambuf_type* __sb);
| ^~~~~~~~
/usr/include/c++/11/istream:259:36: note: no known conversion for argument 1 from 'Const' to 'std::basic_istream<char>::__streambuf_type*' {aka 'std::basic_streambuf<char>*'}
259 | operator>>(__streambuf_type* __sb);
| ~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/11/string:56,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.tcc:1485:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
1485 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.tcc:1485:5: note: template argument deduction/substitution failed:
main.cpp:44:11: note: 'Const' is not derived from 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
44 | is >> c >> sq >> inc >> inc >> p;
| ^
In file included from /usr/include/c++/11/istream:1016,
from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/bits/istream.tcc:958:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)'
958 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/11/bits/istream.tcc:958:5: note: template argument deduction/substitution failed:
main.cpp:44:11: note: deduced conflicting types for parameter '_CharT' ('char' and 'Const')
44 | is >> c >> sq >> inc >> inc >> p;
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:756:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)'
756 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/11/istream:756:5: note: template argument deduction/substitution failed:
main.cpp:44:11: note: cannot convert 'c' (type 'Const') to type 'unsigned char&'
44 | is >> c >> sq >> inc >> inc >> p;
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:761:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)'
761 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/11/istream:761:5: note: template argument deduction/substitution failed:
main.cpp:44:11: note: cannot convert 'c' (type 'Const') to type 'signed char&'
44 | is >> c >> sq >> inc >> inc >> p;
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:803:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT*)'
803 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/11/istream:803:5: note: template argument deduction/substitution failed:
main.cpp:44:11: note: mismatched types '_CharT*' and 'Const'
44 | is >> c >> sq >> inc >> inc >> p;
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:846:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)'
846 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/11/istream:846:5: note: template argument deduction/substitution failed:
main.cpp:44:11: note: cannot convert 'c' (type 'Const') to type 'unsigned char*'
44 | is >> c >> sq >> inc >> inc >> p;
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:852:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)'
852 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/11/istream:852:5: note: template argument deduction/substitution failed:
main.cpp:44:11: note: cannot convert 'c' (type 'Const') to type 'signed char*'
44 | is >> c >> sq >> inc >> inc >> p;
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:1006:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1006 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/11/istream:1006:5: note: template argument deduction/substitution failed:
/usr/include/c++/11/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::__cxx11::basic_istringstream<char>&; _Tp = Const&]':
main.cpp:44:11: required from here
/usr/include/c++/11/istream:1006:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
main.cpp: In function 'int main()':
main.cpp:51:20: error: no matching function for call to 'Square::Square()'
51 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
main.cpp:16:5: note: candidate: 'Square::Square(int)'
16 | Square(int v) : val(v) {}
| ^~~~~~
main.cpp:16:5: note: candidate expects 1 argument, 0 provided
main.cpp:14:7: note: candidate: 'constexpr Square::Square(const Square&)'
14 | class Square {
| ^~~~~~
main.cpp:14:7: note: candidate expects 1 argument, 0 provided
main.cpp:14:7: note: candidate: 'constexpr Square::Square(Square&&)'
main.cpp:14:7: note: candidate expects 1 argument, 0 provided
main.cpp:51:41: error: no matching function for call to 'Square::Square()'
51 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
main.cpp:16:5: note: candidate: 'Square::Square(int)'
16 | Square(int v) : val(v) {}
| ^~~~~~
main.cpp:16:5: note: candidate expects 1 argument, 0 provided
main.cpp:14:7: note: candidate: 'constexpr Square::Square(const Square&)'
14 | class Square {
| ^~~~~~
main.cpp:14:7: note: candidate expects 1 argument, 0 provided
main.cpp:14:7: note: candidate: 'constexpr Square::Square(Square&&)'
main.cpp:14:7: note: candidate expects 1 argument, 0 provided
main.cpp:51:53: error: no matching function for call to 'Square::Square()'
51 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
main.cpp:16:5: note: candidate: 'Square::Square(int)'
16 | Square(int v) : val(v) {}
| ^~~~~~
main.cpp:16:5: note: candidate expects 1 argument, 0 provided
main.cpp:14:7: note: candidate: 'constexpr Square::Square(const Square&)'
14 | class Square {
| ^~~~~~
main.cpp:14:7: note: candidate expects 1 argument, 0 provided
main.cpp:14:7: note: candidate: 'constexpr Square::Square(Square&&)'
main.cpp:14:7: note: candidate expects 1 argument, 0 provided
main.sh: line 2: ./a.out: No such file or directory
Testing if the previous output contains the string 625
: False
Write a C++ class Const, Square, Print so that I can write, for example, Cost(5) >> Square() >> Inc() >> Inc() >> Print() and the resulting python program will print 27 to the screen.
Write a C++ class Const, Square, Print so that I can write, for example, Cost(5) >> Square() >> Inc() >> Inc() >> Print() and the resulting python program will print 27 to the screen.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #include <iostream> using namespace std; class Const { public: Const(int c) : c(c) {} Const operator>>(Square& s) { s.n = c; return s; } private: int c; }; class Square { public: Square() : n(0) {} Square operator>>(Print& p) { p.n = n; return p; } void Inc() { n++; } private: int n; }; class Print { public: void operator()() { cout << n << endl; } private: int n; }; int main() { Const(5) >> Square() >> Inc() >> Inc() >> Print()(); return 0; } |
I extracted the following code from that output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ++ #include <iostream> using namespace std; class Const { public: Const(int c) : c(c) {} Const operator>>(Square& s) { s.n = c; return s; } private: int c; }; class Square { public: Square() : n(0) {} Square operator>>(Print& p) { p.n = n; return p; } void Inc() { n++; } private: int n; }; class Print { public: void operator()() { cout << n << endl; } private: int n; }; int main() { Const(5) >> Square() >> Inc() >> Inc() >> Print()(); return 0; } |
Running the following program:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | ++ #include <iostream> using namespace std; class Const { public: Const(int c) : c(c) {} Const operator>>(Square& s) { s.n = c; return s; } private: int c; }; class Square { public: Square() : n(0) {} Square operator>>(Print& p) { p.n = n; return p; } void Inc() { n++; } private: int n; }; class Print { public: void operator()() { cout << n << endl; } private: int n; }; int __delete_this__main() { Const(5) >> Square() >> Inc() >> Inc() >> Print()(); return 0; } int main() { Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print(); return 0; } |
main.cpp:1:1: error: expected unqualified-id before '++' token
1 | ++
| ^~
In file included from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/postypes.h:98:11: error: 'ptrdiff_t' does not name a type
98 | typedef ptrdiff_t streamsize; // Signed integral type
| ^~~~~~~~~
/usr/include/c++/11/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
40 | #include <cwchar> // For mbstate_t
+++ |+#include <cstddef>
41 |
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/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/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/new:127:41: error: attributes after parenthesized initializer ignored [-fpermissive]
127 | __attribute__((__externally_visible__));
| ^
/usr/include/c++/11/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/include/c++/11/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)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/new:129:41: error: attributes after parenthesized initializer ignored [-fpermissive]
129 | __attribute__((__externally_visible__));
| ^
/usr/include/c++/11/new:135:29: error: 'std::size_t' has not been declared
135 | void operator delete(void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
| ^~~
/usr/include/c++/11/new:137:31: error: 'std::size_t' has not been declared
137 | void operator delete[](void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
| ^~~
/usr/include/c++/11/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/include/c++/11/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
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/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/include/c++/11/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
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/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/include/c++/11/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)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/new:149:68: error: expected primary-expression before ')' token
149 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^
/usr/include/c++/11/new:150:73: error: attributes after parenthesized initializer ignored [-fpermissive]
150 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__));
| ^
/usr/include/c++/11/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/include/c++/11/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&)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/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/include/c++/11/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/include/c++/11/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)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/new:157:70: error: expected primary-expression before ')' token
157 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^
/usr/include/c++/11/new:158:73: error: attributes after parenthesized initializer ignored [-fpermissive]
158 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__));
| ^
/usr/include/c++/11/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/include/c++/11/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&)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/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/include/c++/11/new:166:29: error: 'std::size_t' has not been declared
166 | void operator delete(void*, std::size_t, std::align_val_t)
| ^~~
/usr/include/c++/11/new:168:31: error: 'std::size_t' has not been declared
168 | void operator delete[](void*, std::size_t, std::align_val_t)
| ^~~
/usr/include/c++/11/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/include/c++/11/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
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/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/include/c++/11/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
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:431:26: error: 'std::size_t' has not been declared
431 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:432:25: error: '_Size' was not declared in this scope
432 | struct is_array<_Tp[_Size]>
| ^~~~~
/usr/include/c++/11/type_traits:432:31: error: template argument 1 is invalid
432 | struct is_array<_Tp[_Size]>
| ^
/usr/include/c++/11/type_traits:537:42: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'?
537 | struct __is_null_pointer_helper<std::nullptr_t>
| ^~~~~~~~~
In file included from /usr/include/c++/11/bits/cxxabi_init_exception.h:38,
from /usr/include/c++/11/bits/exception_ptr.h:38,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:433:29: note: 'nullptr_t' declared here
433 | typedef decltype(nullptr) nullptr_t;
| ^~~~~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:537:51: error: template argument 1 is invalid
537 | struct __is_null_pointer_helper<std::nullptr_t>
| ^
/usr/include/c++/11/type_traits:1361:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1361 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:1361:57: error: template argument 1 is invalid
1361 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/usr/include/c++/11/type_traits:1361:57: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1370:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1370 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:1370:46: error: template argument 1 is invalid
1370 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/11/type_traits:1370:46: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1372:26: error: 'std::size_t' has not been declared
1372 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:1373:21: error: '_Size' was not declared in this scope
1373 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/include/c++/11/type_traits:1373:27: error: template argument 1 is invalid
1373 | struct rank<_Tp[_Size]>
| ^
/usr/include/c++/11/type_traits:1374:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1374 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:1374:65: error: template argument 1 is invalid
1374 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/11/type_traits:1374:65: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1378:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1378 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:1378:65: error: template argument 1 is invalid
1378 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/11/type_traits:1378:65: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1383:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1383 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:1383:46: error: template argument 1 is invalid
1383 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/11/type_traits:1383:46: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1385:42: error: 'std::size_t' has not been declared
1385 | template<typename _Tp, unsigned _Uint, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:1386:23: error: '_Size' was not declared in this scope
1386 | struct extent<_Tp[_Size], _Uint>
| ^~~~~
/usr/include/c++/11/type_traits:1386:36: error: template argument 1 is invalid
1386 | struct extent<_Tp[_Size], _Uint>
| ^
/usr/include/c++/11/type_traits:1387:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1387 | : public integral_constant<std::size_t,
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:1388:45: error: '_Size' was not declared in this scope
1388 | _Uint == 0 ? _Size : extent<_Tp,
| ^~~~~
/usr/include/c++/11/type_traits:1389:77: error: template argument 1 is invalid
1389 | _Uint - 1>::value>
| ^
/usr/include/c++/11/type_traits:1389:77: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1394:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1394 | : public integral_constant<std::size_t,
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits:1396:73: error: template argument 1 is invalid
1396 | _Uint - 1>::value>
| ^
/usr/include/c++/11/type_traits:1396:73: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1984:26: error: 'std::size_t' has not been declared
1984 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:1985:30: error: '_Size' was not declared in this scope
1985 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/include/c++/11/type_traits:1985:36: error: template argument 1 is invalid
1985 | struct remove_extent<_Tp[_Size]>
| ^
/usr/include/c++/11/type_traits:1997:26: error: 'std::size_t' has not been declared
1997 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:1998:35: error: '_Size' was not declared in this scope
1998 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/include/c++/11/type_traits:1998:41: error: template argument 1 is invalid
1998 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/include/c++/11/type_traits:2056:12: error: 'std::size_t' has not been declared
2056 | template<std::size_t _Len>
| ^~~
/usr/include/c++/11/type_traits:2061:30: error: '_Len' was not declared in this scope
2061 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/11/type_traits:2076:12: error: 'std::size_t' has not been declared
2076 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/11/type_traits:2076:30: error: 'std::size_t' has not been declared
2076 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/11/type_traits:2077:55: error: '_Len' was not declared in this scope
2077 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/11/type_traits:2077:59: error: template argument 1 is invalid
2077 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/11/type_traits:2082:30: error: '_Len' was not declared in this scope
2082 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/11/type_traits:2083:44: error: '_Align' was not declared in this scope
2083 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:62,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/type_traits.h:162:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
162 | __is_null_pointer(std::nullptr_t)
| ^
/usr/include/c++/11/ext/type_traits.h:157:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
157 | __is_null_pointer(_Type)
| ^~~~~~~~~~~~~~~~~
/usr/include/c++/11/ext/type_traits.h:162:26: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'?
162 | __is_null_pointer(std::nullptr_t)
| ^~~~~~~~~
In file included from /usr/include/c++/11/bits/cxxabi_init_exception.h:38,
from /usr/include/c++/11/bits/exception_ptr.h:38,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:433:29: note: 'nullptr_t' declared here
433 | typedef decltype(nullptr) nullptr_t;
| ^~~~~~~~~
In file included from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/char_traits.h:114:61: error: 'std::size_t' has not been declared
114 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/11/bits/char_traits.h:116:40: error: 'size_t' in namespace 'std' does not name a type
116 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/11/bits/char_traits.h:120:34: error: 'std::size_t' has not been declared
120 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~
/usr/include/c++/11/bits/char_traits.h:123:52: error: 'std::size_t' has not been declared
123 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/11/bits/char_traits.h:126:52: error: 'std::size_t' has not been declared
126 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/11/bits/char_traits.h:129:30: error: 'std::size_t' has not been declared
129 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~
/usr/include/c++/11/bits/char_traits.h:155:59: error: 'std::size_t' has not been declared
155 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/11/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/include/c++/11/bits/char_traits.h:157:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
157 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/char_traits.h:157:33: error: '__i' was not declared in this scope; did you mean '__n'?
157 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __n
/usr/include/c++/11/bits/char_traits.h: At global scope:
/usr/include/c++/11/bits/char_traits.h:166:31: error: 'size_t' in namespace 'std' does not name a type
166 | _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/11/bits/char_traits.h:179:32: error: 'std::size_t' has not been declared
179 | find(const char_type* __s, std::size_t __n, const char_type& __a)
| ^~~
/usr/include/c++/11/bits/char_traits.h: In static member function 'static constexpr const char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, int, const char_type&)':
/usr/include/c++/11/bits/char_traits.h:181:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
181 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/char_traits.h:181:33: error: '__i' was not declared in this scope; did you mean '__s'?
181 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __s
/usr/include/c++/11/bits/char_traits.h: At global scope:
/usr/include/c++/11/bits/char_traits.h:191:50: error: 'std::size_t' has not been declared
191 | move(char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/11/bits/char_traits.h:241:50: error: 'std::size_t' has not been declared
241 | copy(char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/11/bits/char_traits.h:252:28: error: 'std::size_t' has not been declared
252 | assign(char_type* __s, std::size_t __n, char_type __a)
| ^~~
/usr/include/c++/11/bits/char_traits.h: In static member function 'static constexpr size_t std::char_traits<char>::length(const char_type*)':
/usr/include/c++/11/bits/char_traits.h:397:53: error: 'length' is not a member of '__gnu_cxx::char_traits<char>'
397 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ^~~~~~
/usr/include/c++/11/bits/char_traits.h: In static member function 'static constexpr size_t std::char_traits<wchar_t>::length(const char_type*)':
/usr/include/c++/11/bits/char_traits.h:521:53: error: 'length' is not a member of '__gnu_cxx::char_traits<wchar_t>'
521 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ^~~~~~
/usr/include/c++/11/bits/char_traits.h:523:22: error: call to non-'constexpr' function 'size_t wcslen(const wchar_t*)'
523 | return wcslen(__s);
| ~~~~~~^~~~~
In file included from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/wchar.h:223:15: note: 'size_t wcslen(const wchar_t*)' declared here
223 | extern size_t wcslen (const wchar_t *__s) __THROW __attribute_pure__;
| ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,
from /usr/include/c++/11/bits/allocator.h:46,
from /usr/include/c++/11/string:41,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/new_allocator.h: At global scope:
/usr/include/c++/11/ext/new_allocator.h:59:20: error: 'size_t' in namespace 'std' does not name a type
59 | typedef std::size_t size_type;
| ^~~~~~
/usr/include/c++/11/ext/new_allocator.h:60:20: error: 'ptrdiff_t' in namespace 'std' does not name a type
60 | typedef std::ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/include/c++/11/ext/new_allocator.h:103:16: error: 'size_type' has not been declared
103 | allocate(size_type __n, const void* = static_cast<const void*>(0))
| ^~~~~~~~~
/usr/include/c++/11/ext/new_allocator.h:132:28: error: 'size_type' has not been declared
132 | deallocate(_Tp* __p, size_type __t __attribute__ ((__unused__)))
| ^~~~~~~~~
/usr/include/c++/11/ext/new_allocator.h:153:7: error: 'size_type' does not name a type; did you mean 'size_t'?
153 | size_type
| ^~~~~~~~~
| size_t
/usr/include/c++/11/ext/new_allocator.h:196:26: error: 'size_type' does not name a type; did you mean 'size_t'?
196 | _GLIBCXX_CONSTEXPR size_type
| ^~~~~~~~~
| size_t
/usr/include/c++/11/ext/new_allocator.h: In member function '_Tp* __gnu_cxx::new_allocator<_Tp>::allocate(int, const void*)':
/usr/include/c++/11/ext/new_allocator.h:115:29: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
115 | if (__n > (std::size_t(-1) / sizeof(_Tp)))
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/string:44,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/ostream_insert.h: At global scope:
/usr/include/c++/11/bits/ostream_insert.h:46:40: error: 'streamsize' has not been declared
46 | const _CharT* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/bits/ostream_insert.h: In function 'void std::__ostream_write(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)':
/usr/include/c++/11/bits/ostream_insert.h:51:13: error: 'streamsize' does not name a type
51 | const streamsize __put = __out.rdbuf()->sputn(__s, __n);
| ^~~~~~~~~~
/usr/include/c++/11/bits/ostream_insert.h:52:11: error: '__put' was not declared in this scope; did you mean '__out'?
52 | if (__put != __n)
| ^~~~~
| __out
/usr/include/c++/11/bits/ostream_insert.h: At global scope:
/usr/include/c++/11/bits/ostream_insert.h:58:59: error: 'streamsize' has not been declared
58 | __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/bits/ostream_insert.h:78:41: error: 'streamsize' has not been declared
78 | const _CharT* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/bits/ostream_insert.h: In function 'std::basic_ostream<_CharT, _Traits>& std::__ostream_insert(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)':
/usr/include/c++/11/bits/ostream_insert.h:88:21: error: 'streamsize' does not name a type
88 | const streamsize __w = __out.width();
| ^~~~~~~~~~
/usr/include/c++/11/bits/ostream_insert.h:89:19: error: '__w' was not declared in this scope; did you mean '__s'?
89 | if (__w > __n)
| ^~~
| __s
/usr/include/c++/11/bits/ostream_insert.h: At global scope:
/usr/include/c++/11/bits/ostream_insert.h:119:68: error: 'streamsize' has not been declared
119 | extern template ostream& __ostream_insert(ostream&, const char*, streamsize);
| ^~~~~~~~~~
/usr/include/c++/11/bits/ostream_insert.h:123:46: error: 'streamsize' has not been declared
123 | streamsize);
| ^~~~~~~~~~
In file included from /usr/include/c++/11/ext/alloc_traits.h:34,
from /usr/include/c++/11/bits/basic_string.h:40,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/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/include/c++/11/bits/alloc_traits.h:463:37: error: 'size_type' has not been declared
463 | allocate(allocator_type& __a, size_type __n)
| ^~~~~~~~~
/usr/include/c++/11/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/include/c++/11/bits/alloc_traits.h:495:52: error: 'size_type' has not been declared
495 | deallocate(allocator_type& __a, pointer __p, size_type __n)
| ^~~~~~~~~
/usr/include/c++/11/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/include/c++/11/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/include/c++/11/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/include/c++/11/bits/alloc_traits.h:614:33: error: 'size_type' has not been declared
614 | allocate(allocator_type&, size_type, const void* = nullptr) = delete;
| ^~~~~~~~~
/usr/include/c++/11/bits/alloc_traits.h:618:42: error: 'size_type' has not been declared
618 | deallocate(allocator_type&, void*, size_type) = delete;
| ^~~~~~~~~
/usr/include/c++/11/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
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/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/include/c++/11/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/include/c++/11/ext/string_conversions.h:100:54: error: 'std::size_t' has not been declared
100 | __builtin_va_list), std::size_t __n,
| ^~~
In file included from /usr/include/c++/11/bits/basic_string.h:40,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<char>, char>':
/usr/include/c++/11/bits/basic_string.h:88:24: required from 'class std::__cxx11::basic_string<char>'
/usr/include/c++/11/bits/basic_string.h:6620:68: required from here
/usr/include/c++/11/ext/alloc_traits.h:59:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<char> >'
59 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:60:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<char> >'
60 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:68:23: error: 'max_size' has not been declared in '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::_Base_type'
68 | using _Base_type::max_size;
| ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In function 'int std::__cxx11::stoi(const string&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6620:40: error: no matching function for call to '__stoa<long int, int>(long int (*)(const char*, char**, int) noexcept, const char [5], const char*, size_t*&, int&)'
6620 | { return __gnu_cxx::__stoa<long, int>(&std::strtol, "stoi", __str.c_str(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6621 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6621:41: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6621 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long int std::__cxx11::stol(const string&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6625:29: error: no matching function for call to '__stoa(long int (*)(const char*, char**, int) noexcept, const char [5], const char*, size_t*&, int&)'
6625 | { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6626 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6626:30: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6626 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long unsigned int std::__cxx11::stoul(const string&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6630:29: error: no matching function for call to '__stoa(long unsigned int (*)(const char*, char**, int) noexcept, const char [6], const char*, size_t*&, int&)'
6630 | { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6631 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6631:30: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6631 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long long int std::__cxx11::stoll(const string&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6635:29: error: no matching function for call to '__stoa(long long int (*)(const char*, char**, int) noexcept, const char [6], const char*, size_t*&, int&)'
6635 | { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6636 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6636:30: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6636 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long long unsigned int std::__cxx11::stoull(const string&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6640:29: error: no matching function for call to '__stoa(long long unsigned int (*)(const char*, char**, int) noexcept, const char [7], const char*, size_t*&, int&)'
6640 | { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6641 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6641:30: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6641 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'float std::__cxx11::stof(const string&, size_t*)':
/usr/include/c++/11/bits/basic_string.h:6646:29: error: no matching function for call to '__stoa(float (*)(const char*, char**) noexcept, const char [5], const char*, size_t*&)'
6646 | { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6646:67: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6646 | { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'double std::__cxx11::stod(const string&, size_t*)':
/usr/include/c++/11/bits/basic_string.h:6650:29: error: no matching function for call to '__stoa(double (*)(const char*, char**) noexcept, const char [5], const char*, size_t*&)'
6650 | { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6650:67: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6650 | { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long double std::__cxx11::stold(const string&, size_t*)':
/usr/include/c++/11/bits/basic_string.h:6654:29: error: no matching function for call to '__stoa(long double (*)(const char*, char**) noexcept, const char [6], const char*, size_t*&)'
6654 | { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6654:69: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6654 | { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(int)':
/usr/include/c++/11/bits/basic_string.h:6665:36: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(unsigned int, char)'
6665 | string __str(__neg + __len, '-');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/type_traits: In substitution of 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = void]':
/usr/include/c++/11/bits/basic_string.h:125:8: required by substitution of 'template<class _CharT, class _Traits, class _Alloc> template<class _Tp, class _Res> using _If_sv = std::enable_if_t<std::__and_<std::is_convertible<const _Tp&, std::basic_string_view<_CharT, _Traits> >, std::__not_<std::is_convertible<const _Tp*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>*> >, std::__not_<std::is_convertible<const _Tp&, const _CharT*> > >::value, _Res> [with _Tp = unsigned int; _Res = void; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
/usr/include/c++/11/bits/basic_string.h:662:30: required from here
/usr/include/c++/11/type_traits:2579:11: error: no type named 'type' in 'struct std::enable_if<false, void>'
2579 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6665:36: note: deduced conflicting types for parameter '_InputIterator' ('unsigned int' and 'char')
6665 | string __str(__neg + __len, '-');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6665:24: note: cannot convert '(((unsigned int)((int)__neg)) + ((unsigned int)__len))' (type 'unsigned int') to type 'const char*'
6665 | string __str(__neg + __len, '-');
| ~~~~~~^~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:35: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>&&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:40: note: no known conversion for argument 1 from 'unsigned int' to 'const std::__cxx11::basic_string<char>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'unsigned int' to 'std::initializer_list<char>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6666:40: error: no match for 'operator[]' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'const bool')
6666 | __detail::__to_chars_10_impl(&__str[__neg], __len, __uval);
| ^
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(unsigned int)':
/usr/include/c++/11/bits/basic_string.h:6673:55: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(unsigned int, char)'
6673 | string __str(__detail::__to_chars_len(__val), '\0');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6673:55: note: deduced conflicting types for parameter '_InputIterator' ('unsigned int' and 'char')
6673 | string __str(__detail::__to_chars_len(__val), '\0');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6673:42: note: cannot convert 'std::__detail::__to_chars_len<unsigned int>(__val, 10)' (type 'unsigned int') to type 'const char*'
6673 | string __str(__detail::__to_chars_len(__val), '\0');
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:35: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>&&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:40: note: no known conversion for argument 1 from 'unsigned int' to 'const std::__cxx11::basic_string<char>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'unsigned int' to 'std::initializer_list<char>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6674:40: error: no match for 'operator[]' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
6674 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^
/usr/include/c++/11/bits/basic_string.h:6674:51: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
6674 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long int)':
/usr/include/c++/11/bits/basic_string.h:6684:36: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(unsigned int, char)'
6684 | string __str(__neg + __len, '-');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6684:36: note: deduced conflicting types for parameter '_InputIterator' ('unsigned int' and 'char')
6684 | string __str(__neg + __len, '-');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6684:24: note: cannot convert '(((unsigned int)((int)__neg)) + ((unsigned int)__len))' (type 'unsigned int') to type 'const char*'
6684 | string __str(__neg + __len, '-');
| ~~~~~~^~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:35: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>&&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:40: note: no known conversion for argument 1 from 'unsigned int' to 'const std::__cxx11::basic_string<char>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'unsigned int' to 'std::initializer_list<char>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6685:40: error: no match for 'operator[]' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'const bool')
6685 | __detail::__to_chars_10_impl(&__str[__neg], __len, __uval);
| ^
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long unsigned int)':
/usr/include/c++/11/bits/basic_string.h:6692:55: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(unsigned int, char)'
6692 | string __str(__detail::__to_chars_len(__val), '\0');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6692:55: note: deduced conflicting types for parameter '_InputIterator' ('unsigned int' and 'char')
6692 | string __str(__detail::__to_chars_len(__val), '\0');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6692:42: note: cannot convert 'std::__detail::__to_chars_len<long unsigned int>(__val, 10)' (type 'unsigned int') to type 'const char*'
6692 | string __str(__detail::__to_chars_len(__val), '\0');
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:35: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>&&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:40: note: no known conversion for argument 1 from 'unsigned int' to 'const std::__cxx11::basic_string<char>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'unsigned int' to 'std::initializer_list<char>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6693:40: error: no match for 'operator[]' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
6693 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^
/usr/include/c++/11/bits/basic_string.h:6693:51: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
6693 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long long int)':
/usr/include/c++/11/bits/basic_string.h:6704:36: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(unsigned int, char)'
6704 | string __str(__neg + __len, '-');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6704:36: note: deduced conflicting types for parameter '_InputIterator' ('unsigned int' and 'char')
6704 | string __str(__neg + __len, '-');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6704:24: note: cannot convert '(((unsigned int)((int)__neg)) + ((unsigned int)__len))' (type 'unsigned int') to type 'const char*'
6704 | string __str(__neg + __len, '-');
| ~~~~~~^~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:35: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>&&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:40: note: no known conversion for argument 1 from 'unsigned int' to 'const std::__cxx11::basic_string<char>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'unsigned int' to 'std::initializer_list<char>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6705:40: error: no match for 'operator[]' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'const bool')
6705 | __detail::__to_chars_10_impl(&__str[__neg], __len, __uval);
| ^
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long long unsigned int)':
/usr/include/c++/11/bits/basic_string.h:6712:55: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(unsigned int, char)'
6712 | string __str(__detail::__to_chars_len(__val), '\0');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6712:55: note: deduced conflicting types for parameter '_InputIterator' ('unsigned int' and 'char')
6712 | string __str(__detail::__to_chars_len(__val), '\0');
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6712:42: note: cannot convert 'std::__detail::__to_chars_len<long long unsigned int>(__val, 10)' (type 'unsigned int') to type 'const char*'
6712 | string __str(__detail::__to_chars_len(__val), '\0');
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:35: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>&&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:40: note: no known conversion for argument 1 from 'unsigned int' to 'const std::__cxx11::basic_string<char>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'unsigned int' to 'std::initializer_list<char>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'unsigned int' to 'std::__cxx11::basic_string<char>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6713:40: error: no match for 'operator[]' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
6713 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^
/usr/include/c++/11/bits/basic_string.h:6713:51: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
6713 | __detail::__to_chars_10_impl(&__str[0], __str.size(), __val);
| ^~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(float)':
/usr/include/c++/11/bits/basic_string.h:6725:43: error: no matching function for call to '__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) noexcept, const int&, const char [3], float&)'
6725 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6726 | "%f", __val);
| ~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6725:43: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6725 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6726 | "%f", __val);
| ~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(double)':
/usr/include/c++/11/bits/basic_string.h:6734:43: error: no matching function for call to '__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) noexcept, const int&, const char [3], double&)'
6734 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6735 | "%f", __val);
| ~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6734:43: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6734 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6735 | "%f", __val);
| ~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::string std::__cxx11::to_string(long double)':
/usr/include/c++/11/bits/basic_string.h:6743:43: error: no matching function for call to '__to_xstring<std::string>(int (*)(char*, size_t, const char*, __va_list_tag*) noexcept, const int&, const char [4], long double&)'
6743 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6744 | "%Lf", __val);
| ~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6743:43: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6743 | return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6744 | "%Lf", __val);
| ~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:40,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<wchar_t>, wchar_t>':
/usr/include/c++/11/bits/basic_string.h:88:24: required from 'class std::__cxx11::basic_string<wchar_t>'
/usr/include/c++/11/bits/basic_string.h:6751:68: required from here
/usr/include/c++/11/ext/alloc_traits.h:59:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<wchar_t> >'
59 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:60:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<wchar_t> >'
60 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:68:23: error: 'max_size' has not been declared in '__gnu_cxx::__alloc_traits<std::allocator<wchar_t>, wchar_t>::_Base_type'
68 | using _Base_type::max_size;
| ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In function 'int std::__cxx11::stoi(const wstring&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6751:40: error: no matching function for call to '__stoa<long int, int>(long int (*)(const wchar_t*, wchar_t**, int) noexcept, const char [5], const wchar_t*, size_t*&, int&)'
6751 | { return __gnu_cxx::__stoa<long, int>(&std::wcstol, "stoi", __str.c_str(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6752 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6752:41: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6752 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long int std::__cxx11::stol(const wstring&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6756:29: error: no matching function for call to '__stoa(long int (*)(const wchar_t*, wchar_t**, int) noexcept, const char [5], const wchar_t*, size_t*&, int&)'
6756 | { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6757 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6757:30: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6757 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long unsigned int std::__cxx11::stoul(const wstring&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6761:29: error: no matching function for call to '__stoa(long unsigned int (*)(const wchar_t*, wchar_t**, int) noexcept, const char [6], const wchar_t*, size_t*&, int&)'
6761 | { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6762 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6762:30: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6762 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long long int std::__cxx11::stoll(const wstring&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6766:29: error: no matching function for call to '__stoa(long long int (*)(const wchar_t*, wchar_t**, int) noexcept, const char [6], const wchar_t*, size_t*&, int&)'
6766 | { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6767 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6767:30: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6767 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long long unsigned int std::__cxx11::stoull(const wstring&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6771:29: error: no matching function for call to '__stoa(long long unsigned int (*)(const wchar_t*, wchar_t**, int) noexcept, const char [7], const wchar_t*, size_t*&, int&)'
6771 | { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(),
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6772 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6772:30: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6772 | __idx, __base); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'float std::__cxx11::stof(const wstring&, size_t*)':
/usr/include/c++/11/bits/basic_string.h:6777:29: error: no matching function for call to '__stoa(float (*)(const wchar_t*, wchar_t**) noexcept, const char [5], const wchar_t*, size_t*&)'
6777 | { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6777:67: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6777 | { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'double std::__cxx11::stod(const wstring&, size_t*)':
/usr/include/c++/11/bits/basic_string.h:6781:29: error: no matching function for call to '__stoa(double (*)(const wchar_t*, wchar_t**) noexcept, const char [5], const wchar_t*, size_t*&)'
6781 | { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6781:67: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6781 | { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'long double std::__cxx11::stold(const wstring&, size_t*)':
/usr/include/c++/11/bits/basic_string.h:6785:29: error: no matching function for call to '__stoa(long double (*)(const wchar_t*, wchar_t**) noexcept, const char [6], const wchar_t*, size_t*&)'
6785 | { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6785:69: note: cannot convert '__idx' (type 'size_t*' {aka 'long unsigned int*'}) to type 'int*'
6785 | { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }
| ^~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(int)':
/usr/include/c++/11/bits/basic_string.h:6791:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, long unsigned int, const wchar_t [3], int&)'
6791 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(int),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6792 | L"%d", __val); }
| ~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6791:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6791 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(int),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6792 | L"%d", __val); }
| ~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(unsigned int)':
/usr/include/c++/11/bits/basic_string.h:6796:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, long unsigned int, const wchar_t [3], unsigned int&)'
6796 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
6797 | 4 * sizeof(unsigned),
| ~~~~~~~~~~~~~~~~~~~~~
6798 | L"%u", __val); }
| ~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6796:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6796 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
6797 | 4 * sizeof(unsigned),
| ~~~~~~~~~~~~~~~~~~~~~
6798 | L"%u", __val); }
| ~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long int)':
/usr/include/c++/11/bits/basic_string.h:6802:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, long unsigned int, const wchar_t [4], long int&)'
6802 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(long),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6803 | L"%ld", __val); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6802:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6802 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(long),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6803 | L"%ld", __val); }
| ~~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long unsigned int)':
/usr/include/c++/11/bits/basic_string.h:6807:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, long unsigned int, const wchar_t [4], long unsigned int&)'
6807 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
6808 | 4 * sizeof(unsigned long),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
6809 | L"%lu", __val); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6807:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6807 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
6808 | 4 * sizeof(unsigned long),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
6809 | L"%lu", __val); }
| ~~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long long int)':
/usr/include/c++/11/bits/basic_string.h:6813:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, long unsigned int, const wchar_t [5], long long int&)'
6813 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
6814 | 4 * sizeof(long long),
| ~~~~~~~~~~~~~~~~~~~~~~
6815 | L"%lld", __val); }
| ~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6813:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6813 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
6814 | 4 * sizeof(long long),
| ~~~~~~~~~~~~~~~~~~~~~~
6815 | L"%lld", __val); }
| ~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long long unsigned int)':
/usr/include/c++/11/bits/basic_string.h:6819:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, long unsigned int, const wchar_t [5], long long unsigned int&)'
6819 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
6820 | 4 * sizeof(unsigned long long),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6821 | L"%llu", __val); }
| ~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6819:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6819 | { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
6820 | 4 * sizeof(unsigned long long),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6821 | L"%llu", __val); }
| ~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(float)':
/usr/include/c++/11/bits/basic_string.h:6828:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, const int&, const wchar_t [3], float&)'
6828 | return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6829 | L"%f", __val);
| ~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6828:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6828 | return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6829 | L"%f", __val);
| ~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(double)':
/usr/include/c++/11/bits/basic_string.h:6837:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, const int&, const wchar_t [3], double&)'
6837 | return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6838 | L"%f", __val);
| ~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6837:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6837 | return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6838 | L"%f", __val);
| ~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long double)':
/usr/include/c++/11/bits/basic_string.h:6846:44: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) noexcept, const int&, const wchar_t [4], long double&)'
6846 | return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6847 | L"%Lf", __val);
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
/usr/include/c++/11/ext/string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6846:44: note: mismatched types 'int' and 'size_t' {aka 'long unsigned int'}
6846 | return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
6847 | L"%Lf", __val);
| ~~~~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h: In member function 'size_t std::hash<std::__cxx11::basic_string<char> >::operator()(const string&) const':
/usr/include/c++/11/bits/basic_string.h:6876:54: error: 'const string' {aka 'const class std::__cxx11::basic_string<char>'} has no member named 'length'
6876 | { return std::_Hash_impl::hash(__s.data(), __s.length()); }
| ^~~~~~
/usr/include/c++/11/bits/basic_string.h: In member function 'size_t std::hash<std::__cxx11::basic_string<wchar_t> >::operator()(const wstring&) const':
/usr/include/c++/11/bits/basic_string.h:6892:42: error: 'const wstring' {aka 'const class std::__cxx11::basic_string<wchar_t>'} has no member named 'length'
6892 | __s.length() * sizeof(wchar_t)); }
| ^~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:40,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<char16_t>, char16_t>':
/usr/include/c++/11/bits/basic_string.h:88:24: required from 'class std::__cxx11::basic_string<char16_t>'
/usr/include/c++/11/bits/basic_string.h:6925:41: required from here
/usr/include/c++/11/ext/alloc_traits.h:59:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<char16_t> >'
59 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:60:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<char16_t> >'
60 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:68:23: error: 'max_size' has not been declared in '__gnu_cxx::__alloc_traits<std::allocator<char16_t>, char16_t>::_Base_type'
68 | using _Base_type::max_size;
| ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In member function 'size_t std::hash<std::__cxx11::basic_string<char16_t> >::operator()(const u16string&) const':
/usr/include/c++/11/bits/basic_string.h:6926:42: error: 'const u16string' {aka 'const class std::__cxx11::basic_string<char16_t>'} has no member named 'length'
6926 | __s.length() * sizeof(char16_t)); }
| ^~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:40,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<char32_t>, char32_t>':
/usr/include/c++/11/bits/basic_string.h:88:24: required from 'class std::__cxx11::basic_string<char32_t>'
/usr/include/c++/11/bits/basic_string.h:6940:41: required from here
/usr/include/c++/11/ext/alloc_traits.h:59:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<char32_t> >'
59 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:60:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<char32_t> >'
60 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:68:23: error: 'max_size' has not been declared in '__gnu_cxx::__alloc_traits<std::allocator<char32_t>, char32_t>::_Base_type'
68 | using _Base_type::max_size;
| ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In member function 'size_t std::hash<std::__cxx11::basic_string<char32_t> >::operator()(const u32string&) const':
/usr/include/c++/11/bits/basic_string.h:6941:42: error: 'const u32string' {aka 'const class std::__cxx11::basic_string<char32_t>'} has no member named 'length'
6941 | __s.length() * sizeof(char32_t)); }
| ^~~~~~
/usr/include/c++/11/bits/basic_string.h: In function 'std::__cxx11::basic_string<char> std::literals::string_literals::operator""s(const char*, size_t)':
/usr/include/c++/11/bits/basic_string.h:6961:45: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(<brace-enclosed initializer list>)'
6961 | { return basic_string<char>{__str, __len}; }
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6961:45: note: deduced conflicting types for parameter '_InputIterator' ('const char*' and 'long unsigned int')
6961 | { return basic_string<char>{__str, __len}; }
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6961:40: note: cannot convert '__len' (type 'size_t' {aka 'long unsigned int'}) to type 'const std::allocator<char>&'
6961 | { return basic_string<char>{__str, __len}; }
| ^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:56: note: no known conversion for argument 2 from 'size_t' {aka 'long unsigned int'} to 'const std::allocator<char>&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:61: note: no known conversion for argument 2 from 'size_t' {aka 'long unsigned int'} to 'const std::allocator<char>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'const char*' to 'std::initializer_list<char>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'const char*' to 'std::__cxx11::basic_string<char>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In function 'std::__cxx11::basic_string<wchar_t> std::literals::string_literals::operator""s(const wchar_t*, size_t)':
/usr/include/c++/11/bits/basic_string.h:6967:48: error: no matching function for call to 'std::__cxx11::basic_string<wchar_t>::basic_string(<brace-enclosed initializer list>)'
6967 | { return basic_string<wchar_t>{__str, __len}; }
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6967:48: note: deduced conflicting types for parameter '_InputIterator' ('const wchar_t*' and 'long unsigned int')
6967 | { return basic_string<wchar_t>{__str, __len}; }
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6967:43: note: cannot convert '__len' (type 'size_t' {aka 'long unsigned int'}) to type 'const std::allocator<wchar_t>&'
6967 | { return basic_string<wchar_t>{__str, __len}; }
| ^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:56: note: no known conversion for argument 2 from 'size_t' {aka 'long unsigned int'} to 'const std::allocator<wchar_t>&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:61: note: no known conversion for argument 2 from 'size_t' {aka 'long unsigned int'} to 'const std::allocator<wchar_t>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'const wchar_t*' to 'std::initializer_list<wchar_t>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'const wchar_t*' to 'std::__cxx11::basic_string<wchar_t>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In function 'std::__cxx11::basic_string<char16_t> std::literals::string_literals::operator""s(const char16_t*, size_t)':
/usr/include/c++/11/bits/basic_string.h:6980:49: error: no matching function for call to 'std::__cxx11::basic_string<char16_t>::basic_string(<brace-enclosed initializer list>)'
6980 | { return basic_string<char16_t>{__str, __len}; }
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6980:49: note: deduced conflicting types for parameter '_InputIterator' ('const char16_t*' and 'long unsigned int')
6980 | { return basic_string<char16_t>{__str, __len}; }
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6980:44: note: cannot convert '__len' (type 'size_t' {aka 'long unsigned int'}) to type 'const std::allocator<char16_t>&'
6980 | { return basic_string<char16_t>{__str, __len}; }
| ^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:56: note: no known conversion for argument 2 from 'size_t' {aka 'long unsigned int'} to 'const std::allocator<char16_t>&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:61: note: no known conversion for argument 2 from 'size_t' {aka 'long unsigned int'} to 'const std::allocator<char16_t>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'const char16_t*' to 'std::initializer_list<char16_t>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'const char16_t*' to 'std::__cxx11::basic_string<char16_t>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In function 'std::__cxx11::basic_string<char32_t> std::literals::string_literals::operator""s(const char32_t*, size_t)':
/usr/include/c++/11/bits/basic_string.h:6985:49: error: no matching function for call to 'std::__cxx11::basic_string<char32_t>::basic_string(<brace-enclosed initializer list>)'
6985 | { return basic_string<char32_t>{__str, __len}; }
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:664:9: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
664 | basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:664:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:638:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
638 | basic_string(_InputIterator __beg, _InputIterator __end,
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:638:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6985:49: note: deduced conflicting types for parameter '_InputIterator' ('const char32_t*' and 'long unsigned int')
6985 | { return basic_string<char32_t>{__str, __len}; }
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:533:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with <template-parameter-2-1> = <template-parameter-1-1>; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
533 | basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:533:7: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:6985:44: note: cannot convert '__len' (type 'size_t' {aka 'long unsigned int'}) to type 'const std::allocator<char32_t>&'
6985 | { return basic_string<char32_t>{__str, __len}; }
| ^~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:600:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:600:56: note: no known conversion for argument 2 from 'size_t' {aka 'long unsigned int'} to 'const std::allocator<char32_t>&'
600 | basic_string(basic_string&& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:596:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:596:61: note: no known conversion for argument 2 from 'size_t' {aka 'long unsigned int'} to 'const std::allocator<char32_t>&'
596 | basic_string(const basic_string& __str, const _Alloc& __a)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:592:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:592:45: note: no known conversion for argument 1 from 'const char32_t*' to 'std::initializer_list<char32_t>'
592 | basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
565 | basic_string(basic_string&& __str) noexcept
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:565:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
456 | basic_string(const basic_string& __str)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:456:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
448 | basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:448:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
439 | basic_string()
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:439:7: note: candidate expects 0 arguments, 2 provided
/usr/include/c++/11/bits/basic_string.h:153:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:153:33: note: no known conversion for argument 1 from 'const char32_t*' to 'std::__cxx11::basic_string<char32_t>::__sv_wrapper'
153 | basic_string(__sv_wrapper __svw, const _Alloc& __a)
| ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/string:56,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.tcc: In function 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)':
/usr/include/c++/11/bits/basic_string.tcc:1507:21: error: 'streamsize' does not name a type
1507 | const streamsize __w = __in.width();
| ^~~~~~~~~~
/usr/include/c++/11/bits/basic_string.tcc:1508:39: error: '__w' was not declared in this scope; did you mean '__n'?
1508 | const __size_type __n = __w > 0 ? static_cast<__size_type>(__w)
| ^~~
| __n
In file included from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/ios_base.h: At global scope:
/usr/include/c++/11/bits/ios_base.h:545:5: error: 'streamsize' does not name a type
545 | streamsize _M_precision;
| ^~~~~~~~~~
/usr/include/c++/11/bits/ios_base.h:546:5: error: 'streamsize' does not name a type
546 | streamsize _M_width;
| ^~~~~~~~~~
/usr/include/c++/11/bits/ios_base.h:718:5: error: 'streamsize' does not name a type
718 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/ios_base.h:727:5: error: 'streamsize' does not name a type
727 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/ios_base.h:741:5: error: 'streamsize' does not name a type
741 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/ios_base.h:750:5: error: 'streamsize' does not name a type
750 | streamsize
| ^~~~~~~~~~
In file included from /usr/include/c++/11/ios:43,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/streambuf:52:5: error: 'streamsize' does not name a type
52 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:149:14: error: 'streamsize' does not name a type
149 | friend streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:169:54: error: 'streamsize' has not been declared
169 | friend void __istream_extract(istream&, char*, streamsize);
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:244:33: error: 'streamsize' has not been declared
244 | pubsetbuf(char_type* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:288:7: error: 'streamsize' does not name a type
288 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:361:7: error: 'streamsize' does not name a type
361 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:454:7: error: 'streamsize' does not name a type
454 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:596:26: error: 'streamsize' has not been declared
596 | setbuf(char_type*, streamsize)
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:653:15: error: 'streamsize' does not name a type
653 | virtual streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:669:15: error: 'streamsize' does not name a type
669 | virtual streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:746:15: error: 'streamsize' does not name a type
746 | virtual streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:800:20: error: 'streamsize' has not been declared
800 | __safe_gbump(streamsize __n) { _M_in_cur += __n; }
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:803:20: error: 'streamsize' has not been declared
803 | __safe_pbump(streamsize __n) { _M_out_cur += __n; }
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:843:5: error: 'streamsize' does not name a type
843 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/streambuf:848:5: error: 'streamsize' does not name a type
848 | streamsize
| ^~~~~~~~~~
In file included from /usr/include/c++/11/streambuf:858,
from /usr/include/c++/11/ios:43,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/streambuf.tcc:44:5: error: 'streamsize' does not name a type
44 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:78:5: error: 'streamsize' does not name a type
78 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:115:5: error: 'streamsize' does not name a type
115 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:138:12: error: 'streamsize' does not name a type
138 | inline streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:151:5: error: 'streamsize' is not a template function
151 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:151:15: error: expected ';' before '__copy_streambufs'
151 | streamsize
| ^
| ;
152 | __copy_streambufs(basic_streambuf<char>*,
| ~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:155:5: error: 'streamsize' is not a template function
155 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:155:15: error: expected ';' before '__copy_streambufs_eof'
155 | streamsize
| ^
| ;
156 | __copy_streambufs_eof(basic_streambuf<char>*,
| ~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:162:5: error: 'streamsize' is not a template function
162 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:162:15: error: expected ';' before '__copy_streambufs'
162 | streamsize
| ^
| ;
163 | __copy_streambufs(basic_streambuf<wchar_t>*,
| ~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:166:5: error: 'streamsize' is not a template function
166 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf.tcc:166:15: error: expected ';' before '__copy_streambufs_eof'
166 | streamsize
| ^
| ;
167 | __copy_streambufs_eof(basic_streambuf<wchar_t>*,
| ~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/locale_facets.h:48,
from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/streambuf_iterator.h:311:34: error: 'streamsize' has not been declared
311 | _M_put(const _CharT* __ws, streamsize __len)
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf_iterator.h: In function 'typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::__copy_move_a2(_CharT*, _CharT*, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> >)':
/usr/include/c++/11/bits/streambuf_iterator.h:345:13: error: 'streamsize' does not name a type
345 | const streamsize __num = __last - __first;
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf_iterator.h:346:11: error: '__num' was not declared in this scope
346 | if (__num > 0)
| ^~~~~
/usr/include/c++/11/bits/streambuf_iterator.h: In function 'typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::__copy_move_a2(const _CharT*, const _CharT*, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> >)':
/usr/include/c++/11/bits/streambuf_iterator.h:357:13: error: 'streamsize' does not name a type
357 | const streamsize __num = __last - __first;
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf_iterator.h:358:11: error: '__num' was not declared in this scope
358 | if (__num > 0)
| ^~~~~
/usr/include/c++/11/bits/streambuf_iterator.h: In function 'typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, _CharT*>::__type std::__copy_move_a2(std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, _CharT*)':
/usr/include/c++/11/bits/streambuf_iterator.h:380:21: error: 'streamsize' does not name a type
380 | const streamsize __n = __sb->egptr() - __sb->gptr();
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf_iterator.h:381:19: error: '__n' was not declared in this scope; did you mean '__c'?
381 | if (__n > 1)
| ^~~
| __c
/usr/include/c++/11/bits/streambuf_iterator.h: In function 'typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::find(std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, const _CharT2&)':
/usr/include/c++/11/bits/streambuf_iterator.h:438:15: error: 'streamsize' was not declared in this scope
438 | streamsize __n = __sb->egptr() - __sb->gptr();
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf_iterator.h:439:19: error: '__n' was not declared in this scope; did you mean '__c'?
439 | if (__n > 1)
| ^~~
| __c
/usr/include/c++/11/bits/streambuf_iterator.h: In function 'typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, void>::__type std::advance(std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >&, _Distance)':
/usr/include/c++/11/bits/streambuf_iterator.h:480:11: error: 'streamsize' was not declared in this scope
480 | streamsize __size = __sb->egptr() - __sb->gptr();
| ^~~~~~~~~~
/usr/include/c++/11/bits/streambuf_iterator.h:481:15: error: '__size' was not declared in this scope; did you mean 'size'?
481 | if (__size > __n)
| ^~~~~~
| size
/usr/include/c++/11/bits/streambuf_iterator.h:487:30: error: '__size' was not declared in this scope; did you mean 'size'?
487 | __sb->__safe_gbump(__size);
| ^~~~~~
| size
In file included from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/locale_facets.h: At global scope:
/usr/include/c++/11/bits/locale_facets.h:102:36: error: 'streamsize' has not been declared
102 | const _CharT* __olds, streamsize __newlen, streamsize __oldlen);
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.h:102:57: error: 'streamsize' has not been declared
102 | const _CharT* __olds, streamsize __newlen, streamsize __oldlen);
| ^~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/locale_facets.h:2508:32: error: 'streamsize' has not been declared
2508 | _M_pad(char_type __fill, streamsize __w, ios_base& __io,
| ^~~~~~~~~~
In file included from /usr/include/c++/11/bits/locale_facets.h:2682,
from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/locale_facets.tcc: In member function 'void std::__numpunct_cache<_CharT>::_M_cache(const std::locale&)':
/usr/include/c++/11/bits/locale_facets.tcc:88:34: error: 'const string' {aka 'const class std::__cxx11::basic_string<char>'} has no member named 'size'
88 | _M_grouping_size = __g.size();
| ^~~~
/usr/include/c++/11/bits/locale_facets.tcc:90:15: error: 'const string' {aka 'const class std::__cxx11::basic_string<char>'} has no member named 'copy'
90 | __g.copy(__grouping, _M_grouping_size);
| ^~~~
/usr/include/c++/11/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&, std::string&) const':
/usr/include/c++/11/bits/locale_facets.tcc:211:33: error: no matching function for call to 'std::__cxx11::basic_string<char>::reserve(int)'
211 | __found_grouping.reserve(32);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate: 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1009 | reserve();
| ^~~~~~~
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate expects 0 arguments, 1 provided
In file included from /usr/include/c++/11/bits/locale_facets.h:2682,
from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/locale_facets.tcc:296:42: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
296 | if (__found_grouping.size())
| ^~~~
/usr/include/c++/11/bits/locale_facets.tcc:319:42: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
319 | if (__found_grouping.size() && !__found_dec)
| ^~~~
/usr/include/c++/11/bits/locale_facets.tcc:355:28: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
355 | if (__found_grouping.size())
| ^~~~
/usr/include/c++/11/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/include/c++/11/bits/locale_facets.tcc:469:35: error: no matching function for call to 'std::__cxx11::basic_string<char>::reserve(int)'
469 | __found_grouping.reserve(32);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate: 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1009 | reserve();
| ^~~~~~~
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate expects 0 arguments, 1 provided
In file included from /usr/include/c++/11/bits/locale_facets.h:2682,
from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/locale_facets.tcc:555:30: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
555 | if (__found_grouping.size())
| ^~~~
/usr/include/c++/11/bits/locale_facets.tcc:568:63: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size'
568 | if ((!__sep_pos && !__found_zero && !__found_grouping.size())
| ^~~~
/usr/include/c++/11/bits/locale_facets.tcc: In member function 'virtual _InIter std::num_get<_CharT, _InIter>::do_get(std::num_get<_CharT, _InIter>::iter_type, std::num_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, float&) const':
/usr/include/c++/11/bits/locale_facets.tcc:695:21: error: no matching function for call to 'std::__cxx11::basic_string<char>::reserve(int)'
695 | __xtrc.reserve(32);
| ~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate: 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1009 | reserve();
| ^~~~~~~
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate expects 0 arguments, 1 provided
In file included from /usr/include/c++/11/bits/locale_facets.h:2682,
from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/locale_facets.tcc: In member function 'virtual _InIter std::num_get<_CharT, _InIter>::do_get(std::num_get<_CharT, _InIter>::iter_type, std::num_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, double&) const':
/usr/include/c++/11/bits/locale_facets.tcc:710:21: error: no matching function for call to 'std::__cxx11::basic_string<char>::reserve(int)'
710 | __xtrc.reserve(32);
| ~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate: 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1009 | reserve();
| ^~~~~~~
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate expects 0 arguments, 1 provided
In file included from /usr/include/c++/11/bits/locale_facets.h:2682,
from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/locale_facets.tcc: In member function 'virtual _InIter std::num_get<_CharT, _InIter>::do_get(std::num_get<_CharT, _InIter>::iter_type, std::num_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, long double&) const':
/usr/include/c++/11/bits/locale_facets.tcc:742:21: error: no matching function for call to 'std::__cxx11::basic_string<char>::reserve(int)'
742 | __xtrc.reserve(32);
| ~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate: 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reserve() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1009 | reserve();
| ^~~~~~~
/usr/include/c++/11/bits/basic_string.h:1009:7: note: candidate expects 0 arguments, 1 provided
In file included from /usr/include/c++/11/bits/locale_facets.h:2682,
from /usr/include/c++/11/bits/basic_ios.h:37,
from /usr/include/c++/11/ios:44,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/locale_facets.tcc: At global scope:
/usr/include/c++/11/bits/locale_facets.tcc:798:27: error: 'streamsize' has not been declared
798 | _M_pad(_CharT __fill, streamsize __w, ios_base& __io,
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc: In member function '_OutIter std::num_put<_CharT, _OutIter>::_M_insert_int(_OutIter, std::ios_base&, _CharT, _ValueT) const':
/usr/include/c++/11/bits/locale_facets.tcc:939:15: error: 'streamsize' does not name a type
939 | const streamsize __w = __io.width();
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:940:13: error: '__w' was not declared in this scope; did you mean '__u'?
940 | if (__w > static_cast<streamsize>(__len))
| ^~~
| __u
/usr/include/c++/11/bits/locale_facets.tcc:940:31: error: 'streamsize' does not name a type
940 | if (__w > static_cast<streamsize>(__len))
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:947:14: error: 'class std::ios_base' has no member named 'width'
947 | __io.width(0);
| ^~~~~
/usr/include/c++/11/bits/locale_facets.tcc: In member function '_OutIter std::num_put<_CharT, _OutIter>::_M_insert_float(_OutIter, std::ios_base&, _CharT, char, _ValueT) const':
/usr/include/c++/11/bits/locale_facets.tcc:1002:15: error: 'streamsize' does not name a type
1002 | const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision();
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1024:49: error: '__prec' was not declared in this scope
1024 | __fbuf, __prec, __v);
| ^~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1036:53: error: '__prec' was not declared in this scope
1036 | __fbuf, __prec, __v);
| ^~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1089:13: error: 'streamsize' was not declared in this scope
1089 | streamsize __off = 0;
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1092:17: error: '__off' was not declared in this scope
1092 | __off = 1;
| ^~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1098:66: error: '__off' was not declared in this scope
1098 | __lc->_M_thousands_sep, __wp, __ws2 + __off,
| ^~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1106:15: error: 'streamsize' does not name a type
1106 | const streamsize __w = __io.width();
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1107:13: error: '__w' was not declared in this scope; did you mean '__p'?
1107 | if (__w > static_cast<streamsize>(__len))
| ^~~
| __p
/usr/include/c++/11/bits/locale_facets.tcc:1107:31: error: 'streamsize' does not name a type
1107 | if (__w > static_cast<streamsize>(__len))
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1114:14: error: 'class std::ios_base' has no member named 'width'
1114 | __io.width(0);
| ^~~~~
/usr/include/c++/11/bits/locale_facets.tcc: In member function 'virtual _OutIter std::num_put<_CharT, _OutIter>::do_put(std::num_put<_CharT, _OutIter>::iter_type, std::ios_base&, std::num_put<_CharT, _OutIter>::char_type, bool) const':
/usr/include/c++/11/bits/locale_facets.tcc:1144:17: error: 'streamsize' does not name a type
1144 | const streamsize __w = __io.width();
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1145:15: error: '__w' was not declared in this scope; did you mean '__s'?
1145 | if (__w > static_cast<streamsize>(__len))
| ^~~
| __s
/usr/include/c++/11/bits/locale_facets.tcc:1145:33: error: 'streamsize' does not name a type
1145 | if (__w > static_cast<streamsize>(__len))
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1147:21: error: 'streamsize' does not name a type
1147 | const streamsize __plen = __w - __len;
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1150:59: error: '__plen' was not declared in this scope; did you mean '__len'?
1150 | * __plen));
| ^~~~~~
| __len
/usr/include/c++/11/bits/locale_facets.tcc:1153:20: error: 'class std::ios_base' has no member named 'width'
1153 | __io.width(0);
| ^~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1167:16: error: 'class std::ios_base' has no member named 'width'
1167 | __io.width(0);
| ^~~~~
/usr/include/c++/11/bits/locale_facets.tcc: At global scope:
/usr/include/c++/11/bits/locale_facets.tcc:1237:36: error: 'streamsize' has not been declared
1237 | streamsize __newlen, streamsize __oldlen)
| ^~~~~~~~~~
/usr/include/c++/11/bits/locale_facets.tcc:1237:57: error: 'streamsize' has not been declared
1237 | streamsize __newlen, streamsize __oldlen)
| ^~~~~~~~~~
In file included from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/ostream:324:38: error: 'streamsize' has not been declared
324 | _M_write(const char_type* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/ostream:348:35: error: 'streamsize' has not been declared
348 | write(const char_type* __s, streamsize __n);
| ^~~~~~~~~~
/usr/include/c++/11/ostream: In member function 'void std::basic_ostream<_CharT, _Traits>::_M_write(const char_type*, int)':
/usr/include/c++/11/ostream:326:15: error: 'streamsize' does not name a type
326 | const streamsize __put = this->rdbuf()->sputn(__s, __n);
| ^~~~~~~~~~
/usr/include/c++/11/ostream:327:13: error: '__put' was not declared in this scope; did you mean 'put'?
327 | if (__put != __n)
| ^~~~~
| put
/usr/include/c++/11/ostream: In function 'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*)':
/usr/include/c++/11/ostream:600:38: error: 'streamsize' does not name a type
600 | static_cast<streamsize>(_Traits::length(__s)));
| ^~~~~~~~~~
/usr/include/c++/11/ostream: In function 'std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)':
/usr/include/c++/11/ostream:617:38: error: 'streamsize' does not name a type
617 | static_cast<streamsize>(_Traits::length(__s)));
| ^~~~~~~~~~
In file included from /usr/include/c++/11/ostream:829,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/ostream.tcc: At global scope:
/usr/include/c++/11/bits/ostream.tcc:183:30: error: 'streamsize' has not been declared
183 | write(const _CharT* __s, streamsize __n)
| ^~~~~~~~~~
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:82:7: error: 'streamsize' does not name a type
82 | streamsize _M_gcount;
| ^~~~~~~~~~
/usr/include/c++/11/istream:268:7: error: 'streamsize' does not name a type
268 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/istream:343:27: error: 'streamsize' has not been declared
343 | get(char_type* __s, streamsize __n, char_type __delim);
| ^~~~~~~~~~
/usr/include/c++/11/istream:354:27: error: 'streamsize' has not been declared
354 | get(char_type* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/istream:416:31: error: 'streamsize' has not been declared
416 | getline(char_type* __s, streamsize __n, char_type __delim);
| ^~~~~~~~~~
/usr/include/c++/11/istream:427:31: error: 'streamsize' has not been declared
427 | getline(char_type* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/istream:451:14: error: 'streamsize' has not been declared
451 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~~~~
/usr/include/c++/11/istream:454:14: error: 'streamsize' has not been declared
454 | ignore(streamsize __n);
| ^~~~~~~~~~
/usr/include/c++/11/istream:486:28: error: 'streamsize' has not been declared
486 | read(char_type* __s, streamsize __n);
| ^~~~~~~~~~
/usr/include/c++/11/istream:504:7: error: 'streamsize' does not name a type
504 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/istream: In constructor 'std::basic_istream<_CharT, _Traits>::basic_istream(std::basic_istream<_CharT, _Traits>::__streambuf_type*)':
/usr/include/c++/11/istream:94:9: error: class 'std::basic_istream<_CharT, _Traits>' does not have any field named '_M_gcount'
94 | : _M_gcount(streamsize(0))
| ^~~~~~~~~
/usr/include/c++/11/istream:94:19: error: there are no arguments to 'streamsize' that depend on a template parameter, so a declaration of 'streamsize' must be available [-fpermissive]
94 | : _M_gcount(streamsize(0))
| ^~~~~~~~~~
/usr/include/c++/11/istream:94:19: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/include/c++/11/istream: In destructor 'virtual std::basic_istream<_CharT, _Traits>::~basic_istream()':
/usr/include/c++/11/istream:104:9: error: '_M_gcount' was not declared in this scope
104 | { _M_gcount = streamsize(0); }
| ^~~~~~~~~
/usr/include/c++/11/istream:104:21: error: there are no arguments to 'streamsize' that depend on a template parameter, so a declaration of 'streamsize' must be available [-fpermissive]
104 | { _M_gcount = streamsize(0); }
| ^~~~~~~~~~
/usr/include/c++/11/istream: In constructor 'std::basic_istream<_CharT, _Traits>::basic_istream()':
/usr/include/c++/11/istream:607:9: error: class 'std::basic_istream<_CharT, _Traits>' does not have any field named '_M_gcount'
607 | : _M_gcount(streamsize(0))
| ^~~~~~~~~
/usr/include/c++/11/istream:607:19: error: there are no arguments to 'streamsize' that depend on a template parameter, so a declaration of 'streamsize' must be available [-fpermissive]
607 | : _M_gcount(streamsize(0))
| ^~~~~~~~~~
/usr/include/c++/11/istream: In constructor 'std::basic_istream<_CharT, _Traits>::basic_istream(std::basic_istream<_CharT, _Traits>&&)':
/usr/include/c++/11/istream:614:23: error: class 'std::basic_istream<_CharT, _Traits>' does not have any field named '_M_gcount'
614 | : __ios_type(), _M_gcount(__rhs._M_gcount)
| ^~~~~~~~~
/usr/include/c++/11/istream: In member function 'void std::basic_istream<_CharT, _Traits>::swap(std::basic_istream<_CharT, _Traits>&)':
/usr/include/c++/11/istream:635:19: error: '_M_gcount' was not declared in this scope
635 | std::swap(_M_gcount, __rhs._M_gcount);
| ^~~~~~~~~
/usr/include/c++/11/istream: At global scope:
/usr/include/c++/11/istream:648:29: error: 'streamsize' has not been declared
648 | getline(char_type* __s, streamsize __n, char_type __delim);
| ^~~~~~~~~~
/usr/include/c++/11/istream:652:5: error: 'std::basic_istream<char>& std::basic_istream<char>::ignore' is not a static data member of 'class std::basic_istream<char>'
652 | basic_istream<char>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/istream:653:12: error: 'streamsize' was not declared in this scope
653 | ignore(streamsize __n);
| ^~~~~~~~~~
/usr/include/c++/11/istream:657:5: error: 'std::basic_istream<char>& std::basic_istream<char>::ignore' is not a static data member of 'class std::basic_istream<char>'
657 | basic_istream<char>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/istream:658:12: error: 'streamsize' was not declared in this scope
658 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~~~~
/usr/include/c++/11/istream:658:37: error: expected primary-expression before '__delim'
658 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~
/usr/include/c++/11/istream:658:44: error: expression list treated as compound expression in initializer [-fpermissive]
658 | ignore(streamsize __n, int_type __delim);
| ^
/usr/include/c++/11/istream:664:29: error: 'streamsize' has not been declared
664 | getline(char_type* __s, streamsize __n, char_type __delim);
| ^~~~~~~~~~
/usr/include/c++/11/istream:668:5: error: 'std::basic_istream<wchar_t>& std::basic_istream<wchar_t>::ignore' is not a static data member of 'class std::basic_istream<wchar_t>'
668 | basic_istream<wchar_t>::
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/istream:669:12: error: 'streamsize' was not declared in this scope
669 | ignore(streamsize __n);
| ^~~~~~~~~~
/usr/include/c++/11/istream:673:5: error: 'std::basic_istream<wchar_t>& std::basic_istream<wchar_t>::ignore' is not a static data member of 'class std::basic_istream<wchar_t>'
673 | basic_istream<wchar_t>::
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/istream:674:12: error: 'streamsize' was not declared in this scope
674 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~~~~
/usr/include/c++/11/istream:674:37: error: expected primary-expression before '__delim'
674 | ignore(streamsize __n, int_type __delim);
| ^~~~~~~
/usr/include/c++/11/istream:674:44: error: expression list treated as compound expression in initializer [-fpermissive]
674 | ignore(streamsize __n, int_type __delim);
| ^
/usr/include/c++/11/istream:768:65: error: 'streamsize' has not been declared
768 | __istream_extract(basic_istream<_CharT, _Traits>&, _CharT*, streamsize);
| ^~~~~~~~~~
/usr/include/c++/11/istream:770:43: error: 'streamsize' has not been declared
770 | void __istream_extract(istream&, char*, streamsize);
| ^~~~~~~~~~
/usr/include/c++/11/istream: In function 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT*)':
/usr/include/c++/11/istream:836:11: error: 'streamsize' was not declared in this scope
836 | streamsize __n = __gnu_cxx::__numeric_traits<streamsize>::__max;
| ^~~~~~~~~~
/usr/include/c++/11/istream:837:11: error: '__n' was not declared in this scope; did you mean '__in'?
837 | __n /= sizeof(_CharT);
| ^~~
| __in
In file included from /usr/include/c++/11/istream:1016,
from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>::int_type std::basic_istream<_CharT, _Traits>::get()':
/usr/include/c++/11/bits/istream.tcc:248:7: error: '_M_gcount' was not declared in this scope
248 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_istream<_CharT, _Traits>::char_type&)':
/usr/include/c++/11/bits/istream.tcc:282:7: error: '_M_gcount' was not declared in this scope
282 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: At global scope:
/usr/include/c++/11/bits/istream.tcc:317:25: error: 'streamsize' has not been declared
317 | get(char_type* __s, streamsize __n, char_type __delim)
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_istream<_CharT, _Traits>::char_type*, int, std::basic_istream<_CharT, _Traits>::char_type)':
/usr/include/c++/11/bits/istream.tcc:319:7: error: '_M_gcount' was not declared in this scope
319 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_istream<_CharT, _Traits>::__streambuf_type&, std::basic_istream<_CharT, _Traits>::char_type)':
/usr/include/c++/11/bits/istream.tcc:366:7: error: '_M_gcount' was not declared in this scope
366 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:392:59: error: 'streamsize' was not declared in this scope
392 | if (__gcount <= __gnu_cxx::__numeric_traits<streamsize>::__max)
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:392:69: error: template argument 1 is invalid
392 | if (__gcount <= __gnu_cxx::__numeric_traits<streamsize>::__max)
| ^
/usr/include/c++/11/bits/istream.tcc: At global scope:
/usr/include/c++/11/bits/istream.tcc:415:29: error: 'streamsize' has not been declared
415 | getline(char_type* __s, streamsize __n, char_type __delim)
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(std::basic_istream<_CharT, _Traits>::char_type*, int, std::basic_istream<_CharT, _Traits>::char_type)':
/usr/include/c++/11/bits/istream.tcc:417:7: error: '_M_gcount' was not declared in this scope
417 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore()':
/usr/include/c++/11/bits/istream.tcc:477:7: error: '_M_gcount' was not declared in this scope
477 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: At global scope:
/usr/include/c++/11/bits/istream.tcc:507:5: error: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore' is not a static data member of 'class std::basic_istream<_CharT, _Traits>'
507 | basic_istream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:508:12: error: template definition of non-template 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore'
508 | ignore(streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:508:12: error: 'streamsize' was not declared in this scope
/usr/include/c++/11/bits/istream.tcc:577:5: error: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore' is not a static data member of 'class std::basic_istream<_CharT, _Traits>'
577 | basic_istream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:578:12: error: template definition of non-template 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore'
578 | ignore(streamsize __n, int_type __delim)
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:578:12: error: 'streamsize' was not declared in this scope
/usr/include/c++/11/bits/istream.tcc:578:37: error: expected primary-expression before '__delim'
578 | ignore(streamsize __n, int_type __delim)
| ^~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>::int_type std::basic_istream<_CharT, _Traits>::peek()':
/usr/include/c++/11/bits/istream.tcc:658:7: error: '_M_gcount' was not declared in this scope
658 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: At global scope:
/usr/include/c++/11/bits/istream.tcc:685:26: error: 'streamsize' has not been declared
685 | read(char_type* __s, streamsize __n)
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::read(std::basic_istream<_CharT, _Traits>::char_type*, int)':
/usr/include/c++/11/bits/istream.tcc:687:7: error: '_M_gcount' was not declared in this scope
687 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: At global scope:
/usr/include/c++/11/bits/istream.tcc:712:5: error: 'streamsize' does not name a type
712 | streamsize
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::putback(std::basic_istream<_CharT, _Traits>::char_type)':
/usr/include/c++/11/bits/istream.tcc:750:7: error: '_M_gcount' was not declared in this scope
750 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::unget()':
/usr/include/c++/11/bits/istream.tcc:785:7: error: '_M_gcount' was not declared in this scope
785 | _M_gcount = 0;
| ^~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: At global scope:
/usr/include/c++/11/bits/istream.tcc:991:23: error: 'streamsize' has not been declared
991 | streamsize __num)
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: In function 'void std::__istream_extract(std::basic_istream<_CharT, _Traits>&, _CharT*, int)':
/usr/include/c++/11/bits/istream.tcc:999:7: error: 'streamsize' was not declared in this scope
999 | streamsize __extracted = 0;
| ^~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:1007:25: error: expected ';' before '__width'
1007 | streamsize __width = __in.width();
| ^~~~~~~~
| ;
/usr/include/c++/11/bits/istream.tcc:1008:23: error: '__width' was not declared in this scope; did you mean 'wcwidth'?
1008 | if (0 < __width && __width < __num)
| ^~~~~~~
| wcwidth
/usr/include/c++/11/bits/istream.tcc:1017:22: error: '__extracted' was not declared in this scope
1017 | while (__extracted < __num - 1
| ^~~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:1027:19: error: '__extracted' was not declared in this scope
1027 | if (__extracted < __num - 1
| ^~~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc:1044:12: error: '__extracted' was not declared in this scope
1044 | if (!__extracted)
| ^~~~~~~~~~~
/usr/include/c++/11/bits/istream.tcc: At global scope:
/usr/include/c++/11/bits/istream.tcc:1103:63: error: 'streamsize' has not been declared
1103 | extern template void __istream_extract(wistream&, wchar_t*, streamsize);
| ^~~~~~~~~~
main.cpp:8:22: error: 'Square' has not been declared
8 | Const operator>>(Square& s) { s.n = c; return s; }
| ^~~~~~
main.cpp: In member function 'Const Const::operator>>(int&)':
main.cpp:8:37: error: request for member 'n' in 's', which is of non-class type 'int'
8 | Const operator>>(Square& s) { s.n = c; return s; }
| ^
main.cpp: At global scope:
main.cpp:16:23: error: 'Print' has not been declared
16 | Square operator>>(Print& p) { p.n = n; return p; }
| ^~~~~
main.cpp: In member function 'Square Square::operator>>(int&)':
main.cpp:16:37: error: request for member 'n' in 'p', which is of non-class type 'int'
16 | Square operator>>(Print& p) { p.n = n; return p; }
| ^
main.cpp:16:51: error: could not convert 'p' from 'int' to 'Square'
16 | Square operator>>(Print& p) { p.n = n; return p; }
| ^
| |
| int
main.cpp: In function 'int __delete_this__main()':
main.cpp:30:14: error: no match for 'operator>>' (operand types are 'Const' and 'Square')
30 | Const(5) >> Square() >> Inc() >> Inc() >> Print()();
| ~~~~~~~~ ^~ ~~~~~~~~
| | |
| Const Square
main.cpp:8:11: note: candidate: 'Const Const::operator>>(int&)'
8 | Const operator>>(Square& s) { s.n = c; return s; }
| ^~~~~~~~
main.cpp:8:30: note: no known conversion for argument 1 from 'Square' to 'int&'
8 | Const operator>>(Square& s) { s.n = c; return s; }
| ~~~~~~~~^
In file included from /usr/include/c++/11/string:56,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.tcc:1485:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
1485 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.tcc:1485:5: note: template argument deduction/substitution failed:
main.cpp:30:24: note: 'Const' is not derived from 'std::basic_istream<_CharT, _Traits>'
30 | Const(5) >> Square() >> Inc() >> Inc() >> Print()();
| ^
In file included from /usr/include/c++/11/istream:1016,
from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/bits/istream.tcc:958:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)'
958 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/11/bits/istream.tcc:958:5: note: template argument deduction/substitution failed:
main.cpp:30:24: note: 'Const' is not derived from 'std::basic_istream<_CharT, _Traits>'
30 | Const(5) >> Square() >> Inc() >> Inc() >> Print()();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:756:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)'
756 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/11/istream:756:5: note: template argument deduction/substitution failed:
main.cpp:30:24: note: 'Const' is not derived from 'std::basic_istream<char, _Traits>'
30 | Const(5) >> Square() >> Inc() >> Inc() >> Print()();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:761:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)'
761 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/11/istream:761:5: note: template argument deduction/substitution failed:
main.cpp:30:24: note: 'Const' is not derived from 'std::basic_istream<char, _Traits>'
30 | Const(5) >> Square() >> Inc() >> Inc() >> Print()();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:803:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT*)'
803 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/11/istream:803:5: note: template argument deduction/substitution failed:
main.cpp:30:24: note: 'Const' is not derived from 'std::basic_istream<_CharT, _Traits>'
30 | Const(5) >> Square() >> Inc() >> Inc() >> Print()();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:846:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)'
846 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/11/istream:846:5: note: template argument deduction/substitution failed:
main.cpp:30:24: note: 'Const' is not derived from 'std::basic_istream<char, _Traits>'
30 | Const(5) >> Square() >> Inc() >> Inc() >> Print()();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:852:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)'
852 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/11/istream:852:5: note: template argument deduction/substitution failed:
main.cpp:30:24: note: 'Const' is not derived from 'std::basic_istream<char, _Traits>'
30 | Const(5) >> Square() >> Inc() >> Inc() >> Print()();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:1006:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1006 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/11/istream:1006:5: note: template argument deduction/substitution failed:
/usr/include/c++/11/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = Const; _Tp = Square]':
main.cpp:30:24: required from here
/usr/include/c++/11/istream:1006:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
main.cpp:30:29: error: 'Inc' was not declared in this scope
30 | Const(5) >> Square() >> Inc() >> Inc() >> Print()();
| ^~~
main.cpp: In function 'int main()':
main.cpp:37:10: error: no match for 'operator>>' (operand types are 'Const' and 'Square')
37 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ~~~~~~~~ ^~ ~~~~~~~~
| | |
| Const Square
main.cpp:8:11: note: candidate: 'Const Const::operator>>(int&)'
8 | Const operator>>(Square& s) { s.n = c; return s; }
| ^~~~~~~~
main.cpp:8:30: note: no known conversion for argument 1 from 'Square' to 'int&'
8 | Const operator>>(Square& s) { s.n = c; return s; }
| ~~~~~~~~^
In file included from /usr/include/c++/11/string:56,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.tcc:1485:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
1485 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.tcc:1485:5: note: template argument deduction/substitution failed:
main.cpp:37:20: note: 'Const' is not derived from 'std::basic_istream<_CharT, _Traits>'
37 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
In file included from /usr/include/c++/11/istream:1016,
from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/bits/istream.tcc:958:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)'
958 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/11/bits/istream.tcc:958:5: note: template argument deduction/substitution failed:
main.cpp:37:20: note: 'Const' is not derived from 'std::basic_istream<_CharT, _Traits>'
37 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:756:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)'
756 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/11/istream:756:5: note: template argument deduction/substitution failed:
main.cpp:37:20: note: 'Const' is not derived from 'std::basic_istream<char, _Traits>'
37 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:761:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)'
761 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/11/istream:761:5: note: template argument deduction/substitution failed:
main.cpp:37:20: note: 'Const' is not derived from 'std::basic_istream<char, _Traits>'
37 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:803:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT*)'
803 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/11/istream:803:5: note: template argument deduction/substitution failed:
main.cpp:37:20: note: 'Const' is not derived from 'std::basic_istream<_CharT, _Traits>'
37 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:846:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)'
846 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/11/istream:846:5: note: template argument deduction/substitution failed:
main.cpp:37:20: note: 'Const' is not derived from 'std::basic_istream<char, _Traits>'
37 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:852:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)'
852 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/11/istream:852:5: note: template argument deduction/substitution failed:
main.cpp:37:20: note: 'Const' is not derived from 'std::basic_istream<char, _Traits>'
37 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^
In file included from /usr/include/c++/11/iostream:40,
from main.cpp:2:
/usr/include/c++/11/istream:1006:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1006 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/11/istream:1006:5: note: template argument deduction/substitution failed:
/usr/include/c++/11/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = Const; _Tp = Square]':
main.cpp:37:20: required from here
/usr/include/c++/11/istream:1006:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
main.cpp:37:25: error: 'Inc' was not declared in this scope
37 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ^~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from main.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In instantiation of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]':
/usr/include/c++/11/bits/basic_string.h:6667:12: required from here
/usr/include/c++/11/bits/basic_string.h:576:31: error: 'class std::__cxx11::basic_string<char>' has no member named '_M_allocated_capacity'; did you mean '_S_local_capacity'?
576 | _M_capacity(__str._M_allocated_capacity);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~
| _S_local_capacity
/usr/include/c++/11/bits/basic_string.h: In instantiation of 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]':
/usr/include/c++/11/system_error:456:50: required from here
/usr/include/c++/11/bits/basic_string.h:6185:37: error: 'class std::__cxx11::basic_string<char>' has no member named 'size'
6185 | const auto __size = __lhs.size() + __rhs.size();
| ~~~~~~^~~~
/usr/include/c++/11/bits/basic_string.h:6185:52: error: 'class std::__cxx11::basic_string<char>' has no member named 'size'
6185 | const auto __size = __lhs.size() + __rhs.size();
| ~~~~~~^~~~
/usr/include/c++/11/bits/basic_string.h:6186:30: error: 'class std::__cxx11::basic_string<char>' has no member named 'capacity'
6186 | if (__size > __lhs.capacity() && __size <= __rhs.capacity())
| ~~~~~~^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6186:60: error: 'class std::__cxx11::basic_string<char>' has no member named 'capacity'
6186 | if (__size > __lhs.capacity() && __size <= __rhs.capacity())
| ~~~~~~^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6187:42: error: no matching function for call to 'std::__cxx11::basic_string<char>::insert(int, std::__cxx11::basic_string<char>&)'
6187 | return std::move(__rhs.insert(0, __lhs));
| ~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:1599:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1599 | insert(const_iterator __p, _InputIterator __beg, _InputIterator __end)
| ^~~~~~
/usr/include/c++/11/bits/basic_string.h:1599:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:6187:42: note: candidate expects 3 arguments, 2 provided
6187 | return std::move(__rhs.insert(0, __lhs));
| ~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:1633:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, std::initializer_list<_Tp>) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = std::__cxx11::basic_string<char>::iterator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator = std::__cxx11::basic_string<char>::const_iterator]'
1633 | insert(const_iterator __p, initializer_list<_CharT> __l)
| ^~~~~~
/usr/include/c++/11/bits/basic_string.h:1633:29: note: no known conversion for argument 1 from 'int' to 'std::__cxx11::basic_string<char>::const_iterator'
1633 | insert(const_iterator __p, initializer_list<_CharT> __l)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:1767:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = std::__cxx11::basic_string<char>::iterator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator = std::__cxx11::basic_string<char>::const_iterator]'
1767 | insert(__const_iterator __p, _CharT __c)
| ^~~~~~
/usr/include/c++/11/bits/basic_string.h:1767:31: note: no known conversion for argument 1 from 'int' to 'std::__cxx11::basic_string<char>::__const_iterator' {aka 'std::__cxx11::basic_string<char>::const_iterator'}
1767 | insert(__const_iterator __p, _CharT __c)
| ~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h: In instantiation of 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]':
/usr/include/c++/11/system_error:459:51: required from here
/usr/include/c++/11/bits/basic_string.h:6196:36: error: no matching function for call to 'std::__cxx11::basic_string<char>::insert(int, const char*&)'
6196 | { return std::move(__rhs.insert(0, __lhs)); }
| ~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:1599:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1599 | insert(const_iterator __p, _InputIterator __beg, _InputIterator __end)
| ^~~~~~
/usr/include/c++/11/bits/basic_string.h:1599:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/basic_string.h:6196:36: note: candidate expects 3 arguments, 2 provided
6196 | { return std::move(__rhs.insert(0, __lhs)); }
| ~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:1633:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, std::initializer_list<_Tp>) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = std::__cxx11::basic_string<char>::iterator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator = std::__cxx11::basic_string<char>::const_iterator]'
1633 | insert(const_iterator __p, initializer_list<_CharT> __l)
| ^~~~~~
/usr/include/c++/11/bits/basic_string.h:1633:29: note: no known conversion for argument 1 from 'int' to 'std::__cxx11::basic_string<char>::const_iterator'
1633 | insert(const_iterator __p, initializer_list<_CharT> __l)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h:1767:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = std::__cxx11::basic_string<char>::iterator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator = std::__cxx11::basic_string<char>::const_iterator]'
1767 | insert(__const_iterator __p, _CharT __c)
| ^~~~~~
/usr/include/c++/11/bits/basic_string.h:1767:31: note: no known conversion for argument 1 from 'int' to 'std::__cxx11::basic_string<char>::__const_iterator' {aka 'std::__cxx11::basic_string<char>::const_iterator'}
1767 | insert(__const_iterator __p, _CharT __c)
| ~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/basic_string.h: In instantiation of 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_dispose() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]':
/usr/include/c++/11/bits/basic_string.h:672:9: required from 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::~basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
/usr/include/c++/11/bits/basic_string.h:6665:36: required from here
/usr/include/c++/11/bits/basic_string.h:240:22: error: using invalid field 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::<unnamed union>::_M_allocated_capacity'
240 | _M_destroy(_M_allocated_capacity);
| ^~~~~~~~~~~~~~~~~~~~~
main.sh: line 2: ./a.out: No such file or directory
Testing if the previous output contains the string 625
: True
Write a C++ class Const, Square, Print so that I can write, for example, Cost(5) >> Square() >> Inc() >> Inc() >> Print() and the resulting python program will print 27 to the screen.
Write a C++ class Const, Square, Print so that I can write, for example, Cost(5) >> Square() >> Inc() >> Inc() >> Print() and the resulting python program will print 27 to the screen.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | class Const { public: Const(int x) : x(x) {} operator int() const { return x; } private: int x; }; class Square { public: int operator()(int x) { return x * x; } }; class Inc { public: int operator()(int x) { return x + 1; } }; class Print { public: void operator()(int x) { std::cout << x << std::endl; } }; int main() { Const(5) >> Square() >> Inc() >> Inc() >> Print(); return 0; } |
I extracted the following code from that output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | class Const { public: Const(int x) : x(x) {} operator int() const { return x; } private: int x; }; class Square { public: int operator()(int x) { return x * x; } }; class Inc { public: int operator()(int x) { return x + 1; } }; class Print { public: void operator()(int x) { std::cout << x << std::endl; } }; int main() { Const(5) >> Square() >> Inc() >> Inc() >> Print(); return 0; } |
Running the following program:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | class Const { public: Const(int x) : x(x) {} operator int() const { return x; } private: int x; }; class Square { public: int operator()(int x) { return x * x; } }; class Inc { public: int operator()(int x) { return x + 1; } }; class Print { public: void operator()(int x) { std::cout << x << std::endl; } }; int __delete_this__main() { Const(5) >> Square() >> Inc() >> Inc() >> Print(); return 0; } int main() { Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print(); return 0; } |
main.cpp: In member function 'void Print::operator()(int)':
main.cpp:23:33: error: 'cout' is not a member of 'std'
23 | void operator()(int x) { std::cout << x << std::endl; }
| ^~~~
main.cpp:1:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
+++ |+#include <iostream>
1 |
main.cpp:23:51: error: 'endl' is not a member of 'std'
23 | void operator()(int x) { std::cout << x << std::endl; }
| ^~~~
main.cpp:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
+++ |+#include <ostream>
1 |
main.cpp: In function 'int __delete_this__main()':
main.cpp:27:12: error: no match for 'operator>>' (operand types are 'Const' and 'Square')
27 | Const(5) >> Square() >> Inc() >> Inc() >> Print();
| ~~~~~~~~ ^~ ~~~~~~~~
| | |
| Const Square
main.cpp: In function 'int main()':
main.cpp:34:10: error: no match for 'operator>>' (operand types are 'Const' and 'Square')
34 | Const(2) >> Square() >> Inc() >> Square() >> Square() >> Print();
| ~~~~~~~~ ^~ ~~~~~~~~
| | |
| Const Square
main.sh: line 2: ./a.out: No such file or directory
Testing if the previous output contains the string 625
: False