F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39444553_10195.cpp: In function 'int main()':
0_0_39444553_10195.cpp:8:19: error: no matching function for call to 'get(char [100])'
    8 |         while (get(s)) {
      |                ~~~^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:64,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:51,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/locale_classes.h:40,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:41,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:44,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
                 from 0_0_39444553_10195.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1035:5: note: candidate: 'template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(pair<_Tp1, _Tp2>&)'
 1035 |     get(pair<_Tp1, _Tp2>& __in) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1035:5: note:   template argument deduction/substitution failed:
0_0_39444553_10195.cpp:8:19: note:   mismatched types 'std::pair<_Tp1, _Tp2>' and 'char [100]'
    8 |         while (get(s)) {
      |                ~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1040:5: note: candidate: 'template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(pair<_Tp1, _Tp2>&&)'
 1040 |     get(pair<_Tp1, _Tp2>&& __in) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1040:5: note:   template argument deduction/substitution failed:
0_0_39444553_10195.cpp:8:19: note:   mismatched types 'std::pair<_Tp1, _Tp2>' and 'char [100]'
    8 |         while (get(s)) {
      |                ~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1045:5: note: candidate: 'template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const pair<_Tp1, _Tp2>&)'
 1045 |     get(const pair<_Tp1, _Tp2>& __in) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1045:5: note:   template argument deduction/substitution failed:
0_0_39444553_10195.cpp:8:19: note:   mismatched types 'const std::pair<_Tp1, _Tp2>' and 'char [100]'
    8 |         while (get(s)) {
      |                ~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1050:5: note: candidate: 'template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(const pair<_Tp1, _Tp2>&&)'
 1050 |     get(const pair<_Tp1, _Tp2>&& __in) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1050:5: note:   template argument deduction/substitution failed:
0_0_39444553_10195.cpp:8:19: note:   mismatched types 'const std::pair<_Tp1, _Tp2>' and 'char [100]'
    8 |         while (get(s)) {
      |                ~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1059:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp& std::get(pair<_T1, _T2>&)'
 1059 |     get(pair<_Tp, _Up>& __p) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1059:5: note:   template argument deduction/substitution failed:
0_0_39444553_10195.cpp:8:19: note:   mismatched types 'std::pair<_T1, _T2>' and 'char [100]'
    8 |         while (get(s)) {
      |                ~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1064:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp& std::get(const pair<_T1, _T2>&)'
 1064 |     get(const pair<_Tp, _Up>& __p) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1064:5: note:   template argument deduction/substitution failed:
0_0_39444553_10195.cpp:8:19: note:   mismatched types 'const std::pair<_T1, _T2>' and 'char [100]'
    8 |         while (get(s)) {
      |                ~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1069:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp&& std::get(pair<_T1, _T2>&&)'
 1069 |     get(pair<_Tp, _Up>&& __p) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1069:5: note:   template argument deduction/substitution failed:
0_0_39444553_10195.cpp:8:19: note:   mismatched types 'std::pair<_T1, _T2>' and 'char [100]'
    8 |         while (get(s)) {
      |                ~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1074:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp&& std::get(const pair<_T1, _T2>&&)'
 1074 |     get(const pair<_Tp, _Up>&& __p) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1074:5: note:   template argument deduction/substitution failed:
0_0_39444553_10195.cpp:8:19: note:   mismatched types 'const std::pair<_T1, _T2>' and 'char [100]'
    8 |         while (get(s)) {
      |                ~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1079:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp& std::get(pair<_Up, _Tp>&)'
 1079 |     get(pair<_Up, _Tp>& __p) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1079:5: note:   template argument deduction/substitution failed:
0_0_39444553_10195.cpp:8:19: note:   mismatched types 'std::pair<_Up, _Tp>' and 'char [100]'
    8 |         while (get(s)) {
      |                ~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1084:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp& std::get(const pair<_Up, _Tp>&)'
 1084 |     get(const pair<_Up, _Tp>& __p) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1084:5: note:   template argument deduction/substitution failed:
0_0_39444553_10195.cpp:8:19: note:   mismatched types 'const std::pair<_Up, _Tp>' and 'char [100]'
    8 |         while (get(s)) {
      |                ~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1089:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp&& std::get(pair<_Up, _Tp>&&)'
 1089 |     get(pair<_Up, _Tp>&& __p) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1089:5: note:   template argument deduction/substitution failed:
0_0_39444553_10195.cpp:8:19: note:   mismatched types 'std::pair<_Up, _Tp>' and 'char [100]'
    8 |         while (get(s)) {
      |                ~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1094:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp&& std::get(const pair<_Up, _Tp>&&)'
 1094 |     get(const pair<_Up, _Tp>&& __p) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:1094:5: note:   template argument deduction/substitution failed:
0_0_39444553_10195.cpp:8:19: note:   mismatched types 'const std::pair<_Up, _Tp>' and 'char [100]'
    8 |         while (get(s)) {
      |                ~~~^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/tuple:44,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/uses_allocator_args.h:38,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/memory_resource.h:41,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:58:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_util.h:444:5: note: candidate: 'template<long long unsigned int _Num, class _It, class _Sent, std::ranges::subrange_kind _Kind>  requires  _Num < 2 constexpr auto std::ranges::get(subrange<_It, _Sent, _Kind>&&)'
  444 |     get(subrange<_It, _Sent, _Kind>&& __r)
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_util.h:444:5: note:   template argument deduction/substitution failed:
0_0_39444553_10195.cpp:8:19: note:   mismatched types 'std::ranges::subrange<_It, _Sent, _Kind>' and 'char [100]'
    8 |         while (get(s)) {
      |                ~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_util.h:433:5: note: candidate: 'template<long long unsigned int _Num, class _It, class _Sent, std::ranges::subrange_kind _Kind>  requires  _Num < 2 constexpr auto std::ranges::get(const subrange<_It, _Sent, _Kind>&)'
  433 |     get(const subrange<_It, _Sent, _Kind>& __r)
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_util.h:433:5: note:   template argument deduction/substitution failed:
0_0_39444553_10195.cpp:8:19: note:   mismatched types 'const std::ranges::subr


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 08:00:02, Gzip enabled