Borderou de evaluare (job #2895215)

Utilizator AlexePaulAlexe Paul AlexePaul Data 28 aprilie 2022 20:14:39
Problema Muzica Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:14:21: error: no matching function for call to 'std::set<long long int>::set(int)' 14 | set<int> uset(100001); | ^ In file included from /usr/include/c++/10/set:61, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:87, from main.cpp:1: /usr/include/c++/10/bits/stl_set.h:271:2: note: candidate: 'template<class _InputIterator> std::set<_Key, _Compare, _Alloc>::set(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = _InputIterator; _Key = long long int; _Compare = std::less<long long int>; _Alloc = std::allocator<long long int>]' 271 | set(_InputIterator __first, _InputIterator __last, | ^~~ /usr/include/c++/10/bits/stl_set.h:271:2: note: template argument deduction/substitution failed: main.cpp:14:21: note: candidate expects 3 arguments, 1 provided 14 | set<int> uset(100001); | ^ In file included from /usr/include/c++/10/set:61, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:87, from main.cpp:1: /usr/include/c++/10/bits/stl_set.h:265:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(std::initializer_list<_Tp>, const allocator_type&) [with _Key = long long int; _Compare = std::less<long long int>; _Alloc = std::allocator<long long int>; std::set<_Key, _Compare, _Alloc>::allocator_type = std::allocator<long long int>]' 265 | set(initializer_list<value_type> __l, const allocator_type& __a) | ^~~ /usr/include/c++/10/bits/stl_set.h:265:7: note: candidate expects 2 arguments, 1 provided /usr/include/c++/10/bits/stl_set.h:259:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(std::set<_Key, _Compare, _Alloc>&&, const allocator_type&) [with _Key = long long int; _Compare = std::less<long long int>; _Alloc = std::allocator<long long int>; std::set<_Key, _Compare, _Alloc>::allocator_type = std::allocator<long long int>]' 259 | set(set&& __x, const allocator_type& __a) | ^~~ /usr/include/c++/10/bits/stl_set.h:259:7: note: candidate expects 2 arguments, 1 provided /usr/include/c++/10/bits/stl_set.h:255:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(const std::set<_Key, _Compare, _Alloc>&, const allocator_type&) [with _Key = long long int; _Compare = std::less<long long int>; _Alloc = std::allocator<long long int>; std::set<_Key, _Compare, _Alloc>::allocator_type = std::allocator<long long int>]' 255 | set(const set& __x, const allocator_type& __a) | ^~~ /usr/include/c++/10/bits/stl_set.h:255:7: note: candidate expects 2 arguments, 1 provided /usr/include/c++/10/bits/stl_set.h:251:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(const allocator_type&) [with _Key = long long int; _Compare = std::less<long long int>; _Alloc = std::allocator<long long int>; std::set<_Key, _Compare, _Alloc>::allocator_type = std::allocator<long long int>]' 251 | set(const allocator_type& __a) | ^~~ /usr/include/c++/10/bits/stl_set.h:251:33: note: no known conversion for argument 1 from 'int' to 'const allocator_type&' {aka 'const std::allocator<long long int>&'} 251 | set(const allocator_type& __a) | ~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/10/bits/stl_set.h:243:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(std::initializer_list<_Tp>, const _Compare&, const allocator_type&) [with _Key = long long int; _Compare = std::less<long long int>; _Alloc = std::allocator<long long int>; std::set<_Key, _Compare, _Alloc>::allocator_type = std::allocator<long long int>]' 243 | set(initializer_list<value_type> __l, | ^~~ /usr/include/c++/10/bits/stl_set.h:243:40: note: no known conversion for argument 1 from 'int' to 'std::initializer_list<long long int>' 243 | set(initializer_list<value_type> __l, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/10/bits/stl_set.h:231:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(std::set<_Key, _Compare, _Alloc>&&) [with _Key = long long int; _Compare = std::less<long long int>; _Alloc = std::allocator<long long int>]' 231 | set(set&&) = default; | ^~~ /usr/include/c++/10/bits/stl_set.h:231:11: note: no known conversion for argument 1 from 'int' to 'std::set<long long int>&&' 231 | set(set&&) = default; | ^~~~~ /usr/include/c++/10/bits/stl_set.h:223:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(const std::set<_Key, _Compare, _Alloc>&) [with _Key = long long int; _Compare = std::less<long long int>; _Alloc = std::allocator<long long int>]' 223 | set(const set&) = default; | ^~~ /usr/include/c++/10/bits/stl_set.h:223:11: note: no known conversion for argument 1 from 'int' to 'const std::set<long long int>&' Non zero exit status: 1

Ceva nu functioneaza?