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_39783842_23861.cpp: In function 'int main()':
0_0_39783842_23861.cpp:11:5: error: class template argument deduction failed:
   11 | set all, lose;
      |     ^~~
0_0_39783842_23861.cpp:11:5: error: no matching function for call to 'set()'
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/set:63,
                 from 0_0_39783842_23861.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:271:9: note: candidate: 'template<class _Key, class _Compare, class _Alloc, class _InputIterator> set(_InputIterator, _InputIterator, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
  271 |         set(_InputIterator __first, _InputIterator __last,
      |         ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:271:9: note:   template argument deduction/substitution failed:
0_0_39783842_23861.cpp:11:5: note:   candidate expects 3 arguments, 0 provided
   11 | set all, lose;
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:265:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::initializer_list<_Tp>, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
  265 |       set(initializer_list<value_type> __l, const allocator_type& __a)
      |       ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:265:7: note:   template argument deduction/substitution failed:
0_0_39783842_23861.cpp:11:5: note:   candidate expects 2 arguments, 0 provided
   11 | set all, lose;
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:259:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::set<_Key, _Compare, _Allocator>&&, std::__type_identity_t<_Alloc>&)-> std::set<_Key, _Compare, _Alloc>'
  259 |       set(set&& __x, const __type_identity_t<allocator_type>& __a)
      |       ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:259:7: note:   template argument deduction/substitution failed:
0_0_39783842_23861.cpp:11:5: note:   candidate expects 2 arguments, 0 provided
   11 | set all, lose;
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:255:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(const std::set<_Key, _Compare, _Allocator>&, std::__type_identity_t<_Alloc>&)-> std::set<_Key, _Compare, _Alloc>'
  255 |       set(const set& __x, const __type_identity_t<allocator_type>& __a)
      |       ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:255:7: note:   template argument deduction/substitution failed:
0_0_39783842_23861.cpp:11:5: note:   candidate expects 2 arguments, 0 provided
   11 | set all, lose;
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:251:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
  251 |       set(const allocator_type& __a)
      |       ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:251:7: note:   template argument deduction/substitution failed:
0_0_39783842_23861.cpp:11:5: note:   candidate expects 1 argument, 0 provided
   11 | set all, lose;
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:243:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::initializer_list<_Tp>, const _Compare&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
  243 |       set(initializer_list<value_type> __l,
      |       ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:243:7: note:   template argument deduction/substitution failed:
0_0_39783842_23861.cpp:11:5: note:   candidate expects 3 arguments, 0 provided
   11 | set all, lose;
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:231:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::set<_Key, _Compare, _Allocator>&&)-> std::set<_Key, _Compare, _Alloc>'
  231 |       set(set&&) = default;
      |       ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:231:7: note:   template argument deduction/substitution failed:
0_0_39783842_23861.cpp:11:5: note:   candidate expects 1 argument, 0 provided
   11 | set all, lose;
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:223:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(const std::set<_Key, _Compare, _Allocator>&)-> std::set<_Key, _Compare, _Alloc>'
  223 |       set(const set&) = default;
      |       ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:223:7: note:   template argument deduction/substitution failed:
0_0_39783842_23861.cpp:11:5: note:   candidate expects 1 argument, 0 provided
   11 | set all, lose;
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:208:9: note: candidate: 'template<class _Key, class _Compare, class _Alloc, class _InputIterator> set(_InputIterator, _InputIterator, const _Compare&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
  208 |         set(_InputIterator __first, _InputIterator __last,
      |         ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:208:9: note:   template argument deduction/substitution failed:
0_0_39783842_23861.cpp:11:5: note:   candidate expects 4 arguments, 0 provided
   11 | set all, lose;
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:191:9: note: candidate: 'template<class _Key, class _Compare, class _Alloc, class _InputIterator> set(_InputIterator, _InputIterator)-> std::set<_Key, _Compare, _Alloc>'
  191 |         set(_InputIterator __first, _InputIterator __last)
      |         ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:191:9: note:   template argument deduction/substitution failed:
0_0_39783842_23861.cpp:11:5: note:   candidate expects 2 arguments, 0 provided
   11 | set all, lose;
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:176:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(const _Compare&, const _Alloc&)-> std::set<_Key, _Compare, _Alloc>'
  176 |       set(const _Compare& __comp,
      |       ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:176:7: note:   template argument deduction/substitution failed:
0_0_39783842_23861.cpp:11:5: note:   candidate expects 2 arguments, 0 provided
   11 | set all, lose;
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:167:7: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set()-> std::set<_Key, _Compare, _Alloc>'
  167 |       set() = default;
      |       ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:167:7: note:   template argument deduction/substitution failed:
0_0_39783842_23861.cpp:11:5: note:   couldn't deduce template parameter '_Key'
   11 | set all, lose;
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:94:11: note: candidate: 'template<class _Key, class _Compare, class _Alloc> set(std::set<_Key, _Compare, _Alloc>)-> std::set<_Key, _Compare, _Alloc>'
   94 |     class set
      |           ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:94:11: note:   template argument deduction/substitution failed:
0_0_39783842_23861.cpp:11:5: note:   candidate expects 1 argument, 0 provided
   11 | set all, lose;
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:968:5: note: candidate: 'template<class _Key, class _Allocator, class> std::set(initializer_list<_Tp>, _Allocator)-> set<_Key, less<_Key>, _Allocator>'
  968 |     set(initializer_list<_Key>, _Allocator)
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:968:5: note:   template argument deduction/substitution failed:
0_0_39783842_23861.cpp:11:5: note:   candidate expects 2 arguments, 0 provided
   11 | set all, lose;
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:961:5: note: candidate: 'template<class _InputIterator, class _Allocator, class, class> std::set(_InputIterator, _InputIterator, _Allocator)-> set<typename iterator_traits<_Iter>::value_type, less<typename iterator_traits< <template-parameter-1-1> >::value_type>, _Allocator>'
  961 |     set(_InputIterator, _InputIterator, _Allocator)
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:961:5: note:   template argument deduction/substitution failed:
0_0_39783842_23861.cpp:11:5: note:   candidate expects 3 arguments, 0 provided
   11 | set all, lose;
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:954:5: note: candidate: 'template<class _Key, class _Compare, class _Allocator, class, class> std::set(initializer_list<_Tp>, _Compare, _Allocator)-> set<_Key, _Compare, _Allocator>'
  954 |     set(initializer_list<_Key>,
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:954:5: note:   template argument deduction/substitution failed:
0_0_39783842_23861.cpp:11:5: note:   candidate expects 3 arguments, 0 provided
   11 | set all, lose;
      |     ^~~
gcc-13.1.0/l


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-12-01 03:05:59, Gzip enabled