foo.cc:15:17: error: stray '@' in program
yixinyiyi LV 6 @ 6 年前
^
foo.cc:15:21: error: stray '\345' in program
yixinyiyi LV 6 @ 6 年前
^
foo.cc:15:22: error: stray '\271' in program
yixinyiyi LV 6 @ 6 年前
^
foo.cc:15:23: error: stray '\264' in program
yixinyiyi LV 6 @ 6 年前
^
foo.cc:15:24: error: stray '\345' in program
yixinyiyi LV 6 @ 6 年前
^
foo.cc:15:25: error: stray '\211' in program
yixinyiyi LV 6 @ 6 年前
^
foo.cc:15:26: error: stray '\215' in program
yixinyiyi LV 6 @ 6 年前
^
foo.cc:13:1: error: expected unqualified-id before numeric constant
0
^
In file included from /usr/include/c++/7/iosfwd:39:0,
from /usr/include/c++/7/ios:38,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/stringfwd.h:70:30: error: 'allocator' does not name a type; did you mean 'alloca'?
typename _Alloc = allocator<_CharT> >
^~~~~~~~~
alloca
/usr/include/c++/7/bits/stringfwd.h:70:39: error: expected '>' before '<' token
typename _Alloc = allocator<_CharT> >
^
/usr/include/c++/7/bits/stringfwd.h:74:28: error: template argument 3 is invalid
typedef basic_string<char> string;
^
/usr/include/c++/7/bits/stringfwd.h:78:31: error: template argument 3 is invalid
typedef basic_string<wchar_t> wstring;
^
/usr/include/c++/7/bits/stringfwd.h:84:32: error: template argument 3 is invalid
typedef basic_string<char16_t> u16string;
^
/usr/include/c++/7/bits/stringfwd.h:87:32: error: template argument 3 is invalid
typedef basic_string<char32_t> u32string;
^
In file included from /usr/include/c++/7/ios:38:0,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/iosfwd:95:24: error: 'allocator' does not name a type; did you mean 'alloca'?
typename _Alloc = allocator<_CharT> >
^~~~~~~~~
alloca
/usr/include/c++/7/iosfwd:95:33: error: expected '>' before '<' token
typename _Alloc = allocator<_CharT> >
^
/usr/include/c++/7/iosfwd:99:23: error: 'allocator' does not name a type; did you mean 'alloca'?
typename _Alloc = allocator<_CharT> >
^~~~~~~~~
alloca
/usr/include/c++/7/iosfwd:99:32: error: expected '>' before '<' token
typename _Alloc = allocator<_CharT> >
^
/usr/include/c++/7/iosfwd:103:23: error: 'allocator' does not name a type; did you mean 'alloca'?
typename _Alloc = allocator<_CharT> >
^~~~~~~~~
alloca
/usr/include/c++/7/iosfwd:103:32: error: expected '>' before '<' token
typename _Alloc = allocator<_CharT> >
^
/usr/include/c++/7/iosfwd:107:23: error: 'allocator' does not name a type; did you mean 'alloca'?
typename _Alloc = allocator<_CharT> >
^~~~~~~~~
alloca
/usr/include/c++/7/iosfwd:107:32: error: expected '>' before '<' token
typename _Alloc = allocator<_CharT> >
^
/usr/include/c++/7/iosfwd:147:31: error: template argument 3 is invalid
typedef basic_stringbuf<char> stringbuf;
^
/usr/include/c++/7/iosfwd:150:35: error: template argument 3 is invalid
typedef basic_istringstream<char> istringstream;
^
/usr/include/c++/7/iosfwd:153:35: error: template argument 3 is invalid
typedef basic_ostringstream<char> ostringstream;
^
/usr/include/c++/7/iosfwd:156:34: error: template argument 3 is invalid
typedef basic_stringstream<char> stringstream;
^
/usr/include/c++/7/iosfwd:187:34: error: template argument 3 is invalid
typedef basic_stringbuf<wchar_t> wstringbuf;
^
/usr/include/c++/7/iosfwd:190:38: error: template argument 3 is invalid
typedef basic_istringstream<wchar_t> wistringstream;
^
/usr/include/c++/7/iosfwd:193:38: error: template argument 3 is invalid
typedef basic_ostringstream<wchar_t> wostringstream;
^
/usr/include/c++/7/iosfwd:196:37: error: template argument 3 is invalid
typedef basic_stringstream<wchar_t> wstringstream;
^
In file included from /usr/include/c++/7/string:41:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/allocator.h:68:11: error: 'allocator' is not a class template
class allocator<void>
^~~~~~~~~
/usr/include/c++/7/bits/allocator.h:69:5: error: explicit specialization of non-template 'std::allocator'
{
^
/usr/include/c++/7/bits/allocator.h:79:12: error: 'std::allocator' is not a template
{ typedef allocator<_Tp1> other; };
^~~~~~~~~
/usr/include/c++/7/bits/allocator.h:108:11: error: 'std::allocator' is not a template
class allocator: public __allocator_base<_Tp>
^~~~~~~~~
/usr/include/c++/7/bits/allocator.h:68:11: note: previous declaration here
class allocator<void>
^~~~~~~~~
/usr/include/c++/7/bits/allocator.h:146:22: error: 'std::allocator' is not a template
operator==(const allocator<_T1>&, const allocator<_T2>&)
^~~~~~~~~
/usr/include/c++/7/bits/allocator.h:146:45: error: 'std::allocator' is not a template
operator==(const allocator<_T1>&, const allocator<_T2>&)
^~~~~~~~~
/usr/include/c++/7/bits/allocator.h:152:22: error: 'std::allocator' is not a template
operator==(const allocator<_Tp>&, const allocator<_Tp>&)
^~~~~~~~~
/usr/include/c++/7/bits/allocator.h:152:45: error: 'std::allocator' is not a template
operator==(const allocator<_Tp>&, const allocator<_Tp>&)
^~~~~~~~~
/usr/include/c++/7/bits/allocator.h:158:22: error: 'std::allocator' is not a template
operator!=(const allocator<_T1>&, const allocator<_T2>&)
^~~~~~~~~
/usr/include/c++/7/bits/allocator.h:158:45: error: 'std::allocator' is not a template
operator!=(const allocator<_T1>&, const allocator<_T2>&)
^~~~~~~~~
/usr/include/c++/7/bits/allocator.h:164:22: error: 'std::allocator' is not a template
operator!=(const allocator<_Tp>&, const allocator<_Tp>&)
^~~~~~~~~
/usr/include/c++/7/bits/allocator.h:164:45: error: 'std::allocator' is not a template
operator!=(const allocator<_Tp>&, const allocator<_Tp>&)
^~~~~~~~~
/usr/include/c++/7/bits/allocator.h:173:25: error: 'allocator' is not a class template
extern template class allocator<char>;
^~~~~~~~~
/usr/include/c++/7/bits/allocator.h:173:25: error: explicit instantiation of non-template type 'std::allocator'
/usr/include/c++/7/bits/allocator.h:174:25: error: 'allocator' is not a class template
extern template class allocator<wchar_t>;
^~~~~~~~~
/usr/include/c++/7/bits/allocator.h:174:25: error: explicit instantiation of non-template type 'std::allocator'
In file included from /usr/include/c++/7/ext/alloc_traits.h:36:0,
from /usr/include/c++/7/bits/basic_string.h:40,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/alloc_traits.h:384:29: error: 'std::allocator' is not a template
struct allocator_traits<allocator<_Tp>>
^~~~~~~~~
/usr/include/c++/7/bits/alloc_traits.h:384:12: error: template parameters not deducible in partial specialization:
struct allocator_traits<allocator<_Tp>>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/alloc_traits.h:384:12: note: '_Tp'
/usr/include/c++/7/bits/alloc_traits.h:597:33: error: 'std::allocator' is not a template
struct __is_copy_insertable<allocator<_Tp>>
^~~~~~~~~
/usr/include/c++/7/bits/alloc_traits.h:597:12: error: template parameters not deducible in partial specialization:
struct __is_copy_insertable<allocator<_Tp>>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/alloc_traits.h:597:12: note: '_Tp'
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.h:6017:41: error: template argument 3 is invalid
operator==(const basic_string<_CharT>& __lhs,
^
/usr/include/c++/7/bits/basic_string.h:6018:34: error: template argument 3 is invalid
const basic_string<_CharT>& __rhs) _GLIBCXX_NOEXCEPT
^
In file included from /usr/include/c++/7/cmath:41:0,
from /usr/include/c++/7/math.h:36,
from foo.cc:2:
/usr/include/c++/7/bits/basic_string.h:6018:44: error: 'typename __gnu_cxx::__enable_if<std::__is_char<_Tp>::__value, bool>::__type std::operator==(const int&, const int&)' must have an argument of class or enumerated type
const basic_string<_CharT>& __rhs) _GLIBCXX_NOEXCEPT
^
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.h:6271:60: error: template argument 3 is invalid
operator>>(basic_istream<char>& __is, basic_string<char>& __str);
^
/usr/include/c++/7/bits/basic_string.h:6271:5: error: template-id 'operator>><>' for 'std::basic_istream<char>& std::operator>>(std::basic_istream<char>&, int&)' does not match any template declaration
operator>>(basic_istream<char>& __is, basic_string<char>& __str);
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6266:5: note: candidate is: 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, _Alloc>&)
operator>>(basic_istream<_CharT, _Traits>& __is,
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6346:57: error: template argument 3 is invalid
getline(basic_istream<char>& __in, basic_string<char>& __str,
^
/usr/include/c++/7/bits/basic_string.h:6346:5: error: template-id 'getline<>' for 'std::basic_istream<char>& std::getline(std::basic_istream<char>&, int&, char)' does not match any template declaration
getline(basic_istream<char>& __in, basic_string<char>& __str,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6339:5: note: candidates are: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
getline(basic_istream<_CharT, _Traits>&& __is,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6332:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
getline(basic_istream<_CharT, _Traits>&& __is,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6324:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
getline(basic_istream<_CharT, _Traits>& __is,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6307:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
getline(basic_istream<_CharT, _Traits>& __is,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6352:63: error: template argument 3 is invalid
getline(basic_istream<wchar_t>& __in, basic_string<wchar_t>& __str,
^
/usr/include/c++/7/bits/basic_string.h:6352:5: error: template-id 'getline<>' for 'std::basic_istream<wchar_t>& std::getline(std::basic_istream<wchar_t>&, int&, wchar_t)' does not match any template declaration
getline(basic_istream<wchar_t>& __in, basic_string<wchar_t>& __str,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6339:5: note: candidates are: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
getline(basic_istream<_CharT, _Traits>&& __is,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6332:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
getline(basic_istream<_CharT, _Traits>&& __is,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6324:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
getline(basic_istream<_CharT, _Traits>& __is,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6307:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
getline(basic_istream<_CharT, _Traits>& __is,
^~~~~~~
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.h: In function 'int std::__cxx11::stoi(const string&, std::size_t*, int)':
/usr/include/c++/7/bits/basic_string.h:6372:69: error: request for member 'c_str' in '__str', which is of non-class type 'const string {aka const int}'
{ return __gnu_cxx::__stoa<long, int>(&std::strtol, "stoi", __str.c_str(),
^~~~~
/usr/include/c++/7/bits/basic_string.h: In function 'long int std::__cxx11::stol(const string&, std::size_t*, int)':
/usr/include/c++/7/bits/basic_string.h:6377:58: error: request for member 'c_str' in '__str', which is of non-class type 'const string {aka const int}'
{ return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(),
^~~~~
/usr/include/c++/7/bits/basic_string.h: In function 'long unsigned int std::__cxx11::stoul(const string&, std::size_t*, int)':
/usr/include/c++/7/bits/basic_string.h:6382:60: error: request for member 'c_str' in '__str', which is of non-class type 'const string {aka const int}'
{ return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(),
^~~~~
/usr/include/c++/7/bits/basic_string.h: In function 'long long int std::__cxx11::stoll(const string&, std::size_t*, int)':
/usr/include/c++/7/bits/basic_string.h:6387:60: error: request for member 'c_str' in '__str', which is of non-class type 'const string {aka const int}'
{ return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(),
^~~~~
/usr/include/c++/7/bits/basic_string.h: In function 'long long unsigned int std::__cxx11::stoull(const string&, std::size_t*, int)':
/usr/include/c++/7/bits/basic_string.h:6392:62: error: request for member 'c_str' in '__str', which is of non-class type 'const string {aka const int}'
{ return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(),
^~~~~
/usr/include/c++/7/bits/basic_string.h: In function 'float std::__cxx11::stof(const string&, std::size_t*)':
/usr/include/c++/7/bits/basic_string.h:6398:58: error: request for member 'c_str' in '__str', which is of non-class type 'const string {aka const int}'
{ return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
^~~~~
/usr/include/c++/7/bits/basic_string.h: In function 'double std::__cxx11::stod(const string&, std::size_t*)':
/usr/include/c++/7/bits/basic_string.h:6402:58: error: request for member 'c_str' in '__str', which is of non-class type 'const string {aka const int}'
{ return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); }
^~~~~
/usr/include/c++/7/bits/basic_string.h: In function 'long double std::__cxx11::stold(const string&, std::size_t*)':
/usr/include/c++/7/bits/basic_string.h:6406:60: error: request for member 'c_str' in '__str', which is of non-class type 'const string {aka const int}'
{ return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); }
^~~~~
/usr/include/c++/7/bits/basic_string.h: In function 'int std::__cxx11::stoi(const wstring&, std::size_t*, int)':
/usr/include/c++/7/bits/basic_string.h:6477:3: error: redefinition of 'int std::__cxx11::stoi(const wstring&, std::size_t*, int)'
stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
^~~~
/usr/include/c++/7/bits/basic_string.h:6371:3: note: 'int std::__cxx11::stoi(const string&, std::size_t*, int)' previously defined here
stoi(const string& __str, size_t* __idx = 0, int __base = 10)
^~~~
/usr/include/c++/7/bits/basic_string.h:6478:69: error: request for member 'c_str' in '__str', which is of non-class type 'const wstring {aka const int}'
{ return __gnu_cxx::__stoa<long, int>(&std::wcstol, "stoi", __str.c_str(),
^~~~~
/usr/include/c++/7/bits/basic_string.h: In function 'long int std::__cxx11::stol(const wstring&, std::size_t*, int)':
/usr/include/c++/7/bits/basic_string.h:6482:3: error: redefinition of 'long int std::__cxx11::stol(const wstring&, std::size_t*, int)'
stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
^~~~
/usr/include/c++/7/bits/basic_string.h:6376:3: note: 'long int std::__cxx11::stol(const string&, std::size_t*, int)' previously defined here
stol(const string& __str, size_t* __idx = 0, int __base = 10)
^~~~
/usr/include/c++/7/bits/basic_string.h:6483:58: error: request for member 'c_str' in '__str', which is of non-class type 'const wstring {aka const int}'
{ return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(),
^~~~~
/usr/include/c++/7/bits/basic_string.h: In function 'long unsigned int std::__cxx11::stoul(const wstring&, std::size_t*, int)':
/usr/include/c++/7/bits/basic_string.h:6487:3: error: redefinition of 'long unsigned int std::__cxx11::stoul(const wstring&, std::size_t*, int)'
stoul(const wstring& __str, size_t* __idx = 0, int __base = 10)
^~~~~
/usr/include/c++/7/bits/basic_string.h:6381:3: note: 'long unsigned int std::__cxx11::stoul(const string&, std::size_t*, int)' previously defined here
stoul(const string& __str, size_t* __idx = 0, int __base = 10)
^~~~~
/usr/include/c++/7/bits/basic_string.h:6488:60: error: request for member 'c_str' in '__str', which is of non-class type 'const wstring {aka const int}'
{ return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(),
^~~~~
/usr/include/c++/7/bits/basic_string.h: In function 'long long int std::__cxx11::stoll(const wstring&, std::size_t*, int)':
/usr/include/c++/7/bits/basic_string.h:6492:3: error: redefinition of 'long long int std::__cxx11::stoll(const wstring&, std::size_t*, int)'
stoll(const wstring& __str, size_t* __idx = 0, int __base = 10)
^~~~~
/usr/include/c++/7/bits/basic_string.h:6386:3: note: 'long long int std::__cxx11::stoll(const string&, std::size_t*, int)' previously defined here
stoll(const string& __str, size_t* __idx = 0, int __base = 10)
^~~~~
/usr/include/c++/7/bits/basic_string.h:6493:60: error: request for member 'c_str' in '__str', which is of non-class type 'const wstring {aka const int}'
{ return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(),
^~~~~
/usr/include/c++/7/bits/basic_string.h: In function 'long long unsigned int std::__cxx11::stoull(const wstring&, std::size_t*, int)':
/usr/include/c++/7/bits/basic_string.h:6497:3: error: redefinition of 'long long unsigned int std::__cxx11::stoull(const wstring&, std::size_t*, int)'
stoull(const wstring& __str, size_t* __idx = 0, int __base = 10)
^~~~~~
/usr/include/c++/7/bits/basic_string.h:6391:3: note: 'long long unsigned int std::__cxx11::stoull(const string&, std::size_t*, int)' previously defined here
stoull(const string& __str, size_t* __idx = 0, int __base = 10)
^~~~~~
/usr/include/c++/7/bits/basic_string.h:6498:62: error: request for member 'c_str' in '__str', which is of non-class type 'const wstring {aka const int}'
{ return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(),
^~~~~
/usr/include/c++/7/bits/basic_string.h: In function 'float std::__cxx11::stof(const wstring&, std::size_t*)':
/usr/include/c++/7/bits/basic_string.h:6503:3: error: redefinition of 'float std::__cxx11::stof(const wstring&, std::size_t*)'
stof(const wstring& __str, size_t* __idx = 0)
^~~~
/usr/include/c++/7/bits/basic_string.h:6397:3: note: 'float std::__cxx11::stof(const string&, std::size_t*)' previously defined here
stof(const string& __str, size_t* __idx = 0)
^~~~
/usr/include/c++/7/bits/basic_string.h:6504:58: error: request for member 'c_str' in '__str', which is of non-class type 'const wstring {aka const int}'
{ return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
^~~~~
/usr/include/c++/7/bits/basic_string.h: In function 'double std::__cxx11::stod(const wstring&, std::size_t*)':
/usr/include/c++/7/bits/basic_string.h:6507:3: error: redefinition of 'double std::__cxx11::stod(const wstring&, std::size_t*)'
stod(const wstring& __str, size_t* __idx = 0)
^~~~
/usr/include/c++/7/bits/basic_string.h:6401:3: note: 'double std::__cxx11::stod(const string&, std::size_t*)' previously defined here
stod(const string& __str, size_t* __idx = 0)
^~~~
/usr/include/c++/7/bits/basic_string.h:6508:58: error: request for member 'c_str' in '__str', which is of non-class type 'const wstring {aka const int}'
{ return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); }
^~~~~
/usr/include/c++/7/bits/basic_string.h: In function 'long double std::__cxx11::stold(const wstring&, std::size_t*)':
/usr/include/c++/7/bits/basic_string.h:6511:3: error: redefinition of 'long double std::__cxx11::stold(const wstring&, std::size_t*)'
stold(const wstring& __str, size_t* __idx = 0)
^~~~~
/usr/include/c++/7/bits/basic_string.h:6405:3: note: 'long double std::__cxx11::stold(const string&, std::size_t*)' previously defined here
stold(const string& __str, size_t* __idx = 0)
^~~~~
/usr/include/c++/7/bits/basic_string.h:6512:60: error: request for member 'c_str' in '__str', which is of non-class type 'const wstring {aka const int}'
{ return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }
^~~~~
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.h: At global scope:
/usr/include/c++/7/bits/basic_string.h:6598:12: error: redefinition of 'struct std::hash<int>'
struct hash<string>
^~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6587:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/functional_hash.h:148:3: note: previous definition of 'struct std::hash<int>'
_Cxx_hashtable_define_trivial_hash(int)
^
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.h:6613:12: error: redefinition of 'struct std::hash<int>'
struct hash<wstring>
^~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6587:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/functional_hash.h:148:3: note: previous definition of 'struct std::hash<int>'
_Cxx_hashtable_define_trivial_hash(int)
^
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.h:6623:12: error: redefinition of 'struct std::__is_fast_hash<std::hash<int> >'
struct __is_fast_hash<hash<wstring>> : std::false_type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6607:12: note: previous definition of 'struct std::__is_fast_hash<std::hash<int> >'
struct __is_fast_hash<hash<string>> : std::false_type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6631:12: error: redefinition of 'struct std::hash<int>'
struct hash<u16string>
^~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6587:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/functional_hash.h:148:3: note: previous definition of 'struct std::hash<int>'
_Cxx_hashtable_define_trivial_hash(int)
^
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.h:6641:12: error: redefinition of 'struct std::__is_fast_hash<std::hash<int> >'
struct __is_fast_hash<hash<u16string>> : std::false_type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6607:12: note: previous definition of 'struct std::__is_fast_hash<std::hash<int> >'
struct __is_fast_hash<hash<string>> : std::false_type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6646:12: error: redefinition of 'struct std::hash<int>'
struct hash<u32string>
^~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6587:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/functional_hash.h:148:3: note: previous definition of 'struct std::hash<int>'
_Cxx_hashtable_define_trivial_hash(int)
^
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.h:6656:12: error: redefinition of 'struct std::__is_fast_hash<std::hash<int> >'
struct __is_fast_hash<hash<u32string>> : std::false_type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6607:12: note: previous definition of 'struct std::__is_fast_hash<std::hash<int> >'
struct __is_fast_hash<hash<string>> : std::false_type
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/string:53:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.tcc:1607:42: error: template argument 3 is invalid
extern template class basic_string<char>;
^
/usr/include/c++/7/bits/basic_string.tcc:1617:5: error: template-id 'operator>><>' for 'std::basic_istream<char>& std::operator>>(std::basic_istream<char>&, std::__cxx11::string&)' does not match any template declaration
operator>>(basic_istream<char>&, string&);
^~~~~~~~
/usr/include/c++/7/bits/basic_string.tcc:1465:5: note: candidate is: 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, _Alloc>&)
operator>>(basic_istream<_CharT, _Traits>& __in,
^~~~~~~~
/usr/include/c++/7/bits/basic_string.tcc:1620:5: error: template-id 'operator<< <>' for 'std::basic_ostream<char>& std::operator<<(std::basic_ostream<char>&, const string&)' does not match any template declaration
operator<<(basic_ostream<char>&, const string&);
^~~~~~~~
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.h:6284:5: note: candidate is: 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, _Alloc>&)
operator<<(basic_ostream<_CharT, _Traits>& __os,
^~~~~~~~
In file included from /usr/include/c++/7/string:53:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.tcc:1623:5: error: template-id 'getline<>' for 'std::basic_istream<char>& std::getline(std::basic_istream<char>&, std::__cxx11::string&, char)' does not match any template declaration
getline(basic_istream<char>&, string&, char);
^~~~~~~
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.h:6339:5: note: candidates are: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
getline(basic_istream<_CharT, _Traits>&& __is,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6332:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
getline(basic_istream<_CharT, _Traits>&& __is,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6324:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
getline(basic_istream<_CharT, _Traits>& __is,
^~~~~~~
In file included from /usr/include/c++/7/string:53:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.tcc:1537:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
getline(basic_istream<_CharT, _Traits>& __in,
^~~~~~~
/usr/include/c++/7/bits/basic_string.tcc:1626:5: error: template-id 'getline<>' for 'std::basic_istream<char>& std::getline(std::basic_istream<char>&, std::__cxx11::string&)' does not match any template declaration
getline(basic_istream<char>&, string&);
^~~~~~~
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.h:6339:5: note: candidates are: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
getline(basic_istream<_CharT, _Traits>&& __is,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6332:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
getline(basic_istream<_CharT, _Traits>&& __is,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6324:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
getline(basic_istream<_CharT, _Traits>& __is,
^~~~~~~
In file included from /usr/include/c++/7/string:53:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.tcc:1537:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
getline(basic_istream<_CharT, _Traits>& __in,
^~~~~~~
/usr/include/c++/7/bits/basic_string.tcc:1630:45: error: template argument 3 is invalid
extern template class basic_string<wchar_t>;
^
/usr/include/c++/7/bits/basic_string.tcc:1638:5: error: template-id 'operator>><>' for 'std::basic_istream<wchar_t>& std::operator>>(std::basic_istream<wchar_t>&, std::__cxx11::wstring&)' does not match any template declaration
operator>>(basic_istream<wchar_t>&, wstring&);
^~~~~~~~
/usr/include/c++/7/bits/basic_string.tcc:1465:5: note: candidate is: 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, _Alloc>&)
operator>>(basic_istream<_CharT, _Traits>& __in,
^~~~~~~~
/usr/include/c++/7/bits/basic_string.tcc:1641:5: error: template-id 'operator<< <>' for 'std::basic_ostream<wchar_t>& std::operator<<(std::basic_ostream<wchar_t>&, const wstring&)' does not match any template declaration
operator<<(basic_ostream<wchar_t>&, const wstring&);
^~~~~~~~
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.h:6284:5: note: candidate is: 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, _Alloc>&)
operator<<(basic_ostream<_CharT, _Traits>& __os,
^~~~~~~~
In file included from /usr/include/c++/7/string:53:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.tcc:1644:5: error: template-id 'getline<>' for 'std::basic_istream<wchar_t>& std::getline(std::basic_istream<wchar_t>&, std::__cxx11::wstring&, wchar_t)' does not match any template declaration
getline(basic_istream<wchar_t>&, wstring&, wchar_t);
^~~~~~~
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.h:6339:5: note: candidates are: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
getline(basic_istream<_CharT, _Traits>&& __is,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6332:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
getline(basic_istream<_CharT, _Traits>&& __is,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6324:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
getline(basic_istream<_CharT, _Traits>& __is,
^~~~~~~
In file included from /usr/include/c++/7/string:53:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.tcc:1537:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
getline(basic_istream<_CharT, _Traits>& __in,
^~~~~~~
/usr/include/c++/7/bits/basic_string.tcc:1647:5: error: template-id 'getline<>' for 'std::basic_istream<wchar_t>& std::getline(std::basic_istream<wchar_t>&, std::__cxx11::wstring&)' does not match any template declaration
getline(basic_istream<wchar_t>&, wstring&);
^~~~~~~
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.h:6339:5: note: candidates are: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
getline(basic_istream<_CharT, _Traits>&& __is,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6332:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
getline(basic_istream<_CharT, _Traits>&& __is,
^~~~~~~
/usr/include/c++/7/bits/basic_string.h:6324:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
getline(basic_istream<_CharT, _Traits>& __is,
^~~~~~~
In file included from /usr/include/c++/7/string:53:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/basic_string.tcc:1537:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
getline(basic_istream<_CharT, _Traits>& __in,
^~~~~~~
In file included from /usr/include/c++/7/bits/ios_base.h:41:0,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/locale_classes.h: In constructor 'std::locale::locale(const string&)':
/usr/include/c++/7/bits/locale_classes.h:163:49: error: request for member 'c_str' in '__s', which is of non-class type 'const string {aka const int}'
locale(const std::string& __s) : locale(__s.c_str()) { }
^~~~~
/usr/include/c++/7/bits/locale_classes.h: In constructor 'std::locale::locale(const std::locale&, const string&, std::locale::category)':
/usr/include/c++/7/bits/locale_classes.h:178:26: error: request for member 'c_str' in '__s', which is of non-class type 'const string {aka const int}'
: locale(__base, __s.c_str(), __cat) { }
^~~~~
/usr/include/c++/7/bits/locale_classes.h: At global scope:
/usr/include/c++/7/bits/locale_classes.h:649:34: error: template argument 3 is invalid
typedef basic_string<_CharT> string_type;
^
/usr/include/c++/7/bits/locale_classes.h:822:34: error: template argument 3 is invalid
typedef basic_string<_CharT> string_type;
^
/usr/include/c++/7/bits/locale_classes.h: In constructor 'std::__cxx11::collate_byname<_CharT>::collate_byname(const string&, std::size_t)':
/usr/include/c++/7/bits/locale_classes.h:840:28: error: request for member 'c_str' in '__s', which is of non-class type 'const string {aka const int}'
: collate_byname(__s.c_str(), __refs) { }
^~~~~
In file included from /usr/include/c++/7/bits/locale_classes.h:851:0,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/locale_classes.tcc: In member function 'virtual int std::__cxx11::collate<_CharT>::do_compare(const _CharT*, const _CharT*, const _CharT*, const _CharT*) const':
/usr/include/c++/7/bits/locale_classes.tcc:166:43: error: expression list treated as compound expression in initializer [-fpermissive]
const string_type __one(__lo1, __hi1);
^
/usr/include/c++/7/bits/locale_classes.tcc:167:43: error: expression list treated as compound expression in initializer [-fpermissive]
const string_type __two(__lo2, __hi2);
^
/usr/include/c++/7/bits/locale_classes.tcc:169:33: error: request for member 'c_str' in '__one', which is of non-class type 'const string_type {aka const int}'
const _CharT* __p = __one.c_str();
^~~~~
/usr/include/c++/7/bits/locale_classes.tcc:170:36: error: request for member 'data' in '__one', which is of non-class type 'const string_type {aka const int}'
const _CharT* __pend = __one.data() + __one.length();
^~~~
/usr/include/c++/7/bits/locale_classes.tcc:170:51: error: request for member 'length' in '__one', which is of non-class type 'const string_type {aka const int}'
const _CharT* __pend = __one.data() + __one.length();
^~~~~~
/usr/include/c++/7/bits/locale_classes.tcc:171:33: error: request for member 'c_str' in '__two', which is of non-class type 'const string_type {aka const int}'
const _CharT* __q = __two.c_str();
^~~~~
/usr/include/c++/7/bits/locale_classes.tcc:172:36: error: request for member 'data' in '__two', which is of non-class type 'const string_type {aka const int}'
const _CharT* __qend = __two.data() + __two.length();
^~~~
/usr/include/c++/7/bits/locale_classes.tcc:172:51: error: request for member 'length' in '__two', which is of non-class type 'const string_type {aka const int}'
const _CharT* __qend = __two.data() + __two.length();
^~~~~~
/usr/include/c++/7/bits/locale_classes.tcc: In member function 'virtual std::__cxx11::collate<_CharT>::string_type std::__cxx11::collate<_CharT>::do_transform(const _CharT*, const _CharT*) const':
/usr/include/c++/7/bits/locale_classes.tcc:205:41: error: expression list treated as compound expression in initializer [-fpermissive]
const string_type __str(__lo, __hi);
^
/usr/include/c++/7/bits/locale_classes.tcc:207:33: error: request for member 'c_str' in '__str', which is of non-class type 'const string_type {aka const int}'
const _CharT* __p = __str.c_str();
^~~~~
/usr/include/c++/7/bits/locale_classes.tcc:208:36: error: request for member 'data' in '__str', which is of non-class type 'const string_type {aka const int}'
const _CharT* __pend = __str.data() + __str.length();
^~~~
/usr/include/c++/7/bits/locale_classes.tcc:208:51: error: request for member 'length' in '__str', which is of non-class type 'const string_type {aka const int}'
const _CharT* __pend = __str.data() + __str.length();
^~~~~~
/usr/include/c++/7/bits/locale_classes.tcc:233:14: error: request for member 'append' in '__ret', which is of non-class type 'std::__cxx11::collate<_CharT>::string_type {aka int}'
__ret.append(__c, __res);
^~~~~~
/usr/include/c++/7/bits/locale_classes.tcc:239:14: error: request for member 'push_back' in '__ret', which is of non-class type 'std::__cxx11::collate<_CharT>::string_type {aka int}'
__ret.push_back(_CharT());
^~~~~~~~~
In file included from /usr/include/c++/7/system_error:41:0,
from /usr/include/c++/7/bits/ios_base.h:46,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/stdexcept: At global scope:
/usr/include/c++/7/stdexcept:67:28: error: template argument 3 is invalid
typedef basic_string<char> __sso_string;
^
In file included from /usr/include/c++/7/bits/ios_base.h:46:0,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/system_error: In constructor 'std::system_error::system_error(std::error_code, const char*)':
/usr/include/c++/7/system_error:354:28: error: invalid operands of types 'const char*' and 'const char*' to binary 'operator+'
: runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { }
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/basic_ios.h:37:0,
from /usr/include/c++/7/ios:44,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/locale_facets.h: In constructor 'std::ctype_byname<_CharT>::ctype_byname(const string&, std::size_t)':
/usr/include/c++/7/bits/locale_facets.h:1485:26: error: request for member 'c_str' in '__s', which is of non-class type 'const string {aka const int}'
: ctype_byname(__s.c_str(), __refs) { }
^~~~~
In file included from /usr/include/c++/7/bits/basic_ios.h:37:0,
from /usr/include/c++/7/ios:44,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/locale_facets.h: At global scope:
/usr/include/c++/7/bits/locale_facets.h:1673:34: error: template argument 3 is invalid
typedef basic_string<_CharT> string_type;
^
/usr/include/c++/7/bits/locale_facets.h:1903:34: error: template argument 3 is invalid
typedef basic_string<_CharT> string_type;
^
/usr/include/c++/7/bits/locale_facets.h: In constructor 'std::__cxx11::numpunct_byname<_CharT>::numpunct_byname(const string&, std::size_t)':
/usr/include/c++/7/bits/locale_facets.h:1922:29: error: request for member 'c_str' in '__s', which is of non-class type 'const string {aka const int}'
: numpunct_byname(__s.c_str(), __refs) { }
^~~~~
In file included from /usr/include/c++/7/bits/locale_facets.h:2651:0,
from /usr/include/c++/7/bits/basic_ios.h:37,
from /usr/include/c++/7/ios:44,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/bits/locale_facets.tcc: In member function 'void std::__numpunct_cache<_CharT>::_M_cache(const std::locale&)':
/usr/include/c++/7/bits/locale_facets.tcc:88:27: error: request for member 'size' in '__g', which is of non-class type 'const string {aka const int}'
_M_grouping_size = __g.size();
^~~~
/usr/include/c++/7/bits/locale_facets.tcc:90:8: error: request for member 'copy' in '__g', which is of non-class type 'const string {aka const int}'
__g.copy(__grouping, _M_grouping_size);
^~~~
/usr/include/c++/7/bits/locale_facets.tcc:96:29: error: template argument 3 is invalid
const basic_string<_CharT>& __tn = __np.truename();
^
/usr/include/c++/7/bits/locale_facets.tcc:97:28: error: request for member 'size' in '__tn', which is of non-class type 'const int'
_M_truename_size = __tn.size();
^~~~
/usr/include/c++/7/bits/locale_facets.tcc:99:9: error: request for member 'copy' in '__tn', which is of non-class type 'const int'
__tn.copy(__truename, _M_truename_size);
^~~~
/usr/include/c++/7/bits/locale_facets.tcc:101:29: error: template argument 3 is invalid
const basic_string<_CharT>& __fn = __np.falsename();
^
/usr/include/c++/7/bits/locale_facets.tcc:102:29: error: request for member 'size' in '__fn', which is of non-class type 'const int'
_M_falsename_size = __fn.size();
^~~~
/usr/include/c++/7/bits/locale_facets.tcc:104:9: error: request for member 'copy' in '__fn', which is of non-class type 'const int'
__fn.copy(__falsename, _M_falsename_size);
^~~~
/usr/include/c++/7/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::__cxx11::string&) const':
/usr/include/c++/7/bits/locale_facets.tcc:211:19: error: request for member 'reserve' in '__found_grouping', which is of non-class type 'std::__cxx11::string {aka int}'
__found_grouping.reserve(32);
^~~~~~~
/usr/include/c++/7/bits/locale_facets.tcc:282:11: error: request for member 'clear' in '__xtrc', which is of non-class type 'std::__cxx11::string {aka int}'
__xtrc.clear();
^~~~~
/usr/include/c++/7/bits/locale_facets.tcc:296:28: error: request for member 'size' in '__found_grouping', which is of non-class type 'std::__cxx11::string {aka int}'
if (__found_grouping.size())
^~~~
/usr/include/c++/7/bits/locale_facets.tcc:319:28: error: request for member 'size' in '__found_grouping', which is of non-class type 'std::__cxx11::string {aka int}'
if (__found_grouping.size() && !__found_dec)
^~~~
/usr/include/c++/7/bits/locale_facets.tcc:355:28: error: request for member 'size' in '__found_grouping', which is of non-class type 'std::__cxx11::string {aka int}'
if (__found_grouping.size())
^~~~
/usr/include/c++/7/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++/7/bits/locale_facets.tcc:468:21: error: request for member 'reserve' in '__found_grouping', which is of non-class type 'std::__cxx11::string {aka int}'
__found_grouping.reserve(32);
^~~~~~~
/usr/include/c++/7/bits/locale_facets.tcc:554:23: error: request for member 'size' in '__found_grouping', which is of non-class type 'std::__cxx11::string {aka int}'
if (__found_grouping.size())
^~~~
/usr/include/c++/7/bits/locale_facets.tcc:567:56: error: request for member 'size' in '__found_grouping', which is of non-class type 'std::__cxx11::string {aka int}'
if ((!__sep_pos && !__found_zero && !__found_grouping.size())
^~~~
/usr/include/c++/7/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++/7/bits/locale_facets.tcc:695:14: error: request for member 'reserve' in '__xtrc', which is of non-class type 'std::__cxx11::string {aka int}'
__xtrc.reserve(32);
^~~~~~~
/usr/include/c++/7/bits/locale_facets.tcc:697:34: error: request for member 'c_str' in '__xtrc', which is of non-class type 'std::__cxx11::string {aka int}'
std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale());
^~~~~
/usr/include/c++/7/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++/7/bits/locale_facets.tcc:710:14: error: request for member 'reserve' in '__xtrc', which is of non-class type 'std::__cxx11::string {aka int}'
__xtrc.reserve(32);
^~~~~~~
/usr/include/c++/7/bits/locale_facets.tcc:712:34: error: request for member 'c_str' in '__xtrc', which is of non-class type 'std::__cxx11::string {aka int}'
std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale());
^~~~~
/usr/include/c++/7/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++/7/bits/locale_facets.tcc:742:14: error: request for member 'reserve' in '__xtrc', which is of non-class type 'std::__cxx11::string {aka int}'
__xtrc.reserve(32);
^~~~~~~
/usr/include/c++/7/bits/locale_facets.tcc:744:34: error: request for member 'c_str' in '__xtrc', which is of non-class type 'std::__cxx11::string {aka int}'
std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale());
^~~~~
foo.cc: In function 'int main()':
foo.cc:20:5: error: redefinition of 'int main()'
int main()
^~~~
foo.cc:4:5: note: 'int main()' previously defined here
int main ()
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6361:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:16:
/usr/include/c++/7/ext/string_conversions.h: In instantiation of '_String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, __va_list_tag*), std::size_t, const _CharT*, ...) [with _String = int; _CharT = char; std::size_t = long unsigned int]':
/usr/include/c++/7/bits/basic_string.h:6416:20: required from here
/usr/include/c++/7/ext/string_conversions.h:115:14: error: expression list treated as compound expression in functional cast [-fpermissive]
return _String(__s, __s + __len);
^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/ext/string_conversions.h:115:14: error: cast from 'char*' to 'int' loses precision [-fpermissive]
/usr/include/c++/7/ext/string_conversions.h: In instantiation of '_String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, __va_list_tag*), std::size_t, const _CharT*, ...) [with _String = int; _CharT = wchar_t; std::size_t = long unsigned int]':
/usr/include/c++/7/bits/basic_string.h:6519:22: required from here
/usr/include/c++/7/ext/string_conversions.h:115:14: error: expression list treated as compound expression in functional cast [-fpermissive]
/usr/include/c++/7/ext/string_conversions.h:115:14: error: cast from 'wchar_t*' to 'int' loses precision [-fpermissive]
foo.cc: In function 'int main()':
foo.cc:7:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf %lf",&a,&r);
~~~~~^~~~~~~~~~~~~~~~~