Borderou de evaluare (job #3223480)

Utilizator BenceKolozsvari Bence Bence Data 13 aprilie 2024 12:22:22
Problema Chat Status done
Runda Universitatea Tehnică din Cluj-Napoca - 2024 - Concurs Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:44:54: error: no match for 'operator=' (operand types are 'std::set<int>' and 'void') 44 | x[veg].s=x[veg].s.merge(x[kezd].s); | ^ In file included from /usr/include/c++/12.2.1/set:61, from main.cpp:1: /usr/include/c++/12.2.1/bits/stl_set.h:298:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>& std::set<_Key, _Compare, _Alloc>::operator=(const std::set<_Key, _Compare, _Alloc>&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>]' 298 | operator=(const set&) = default; | ^~~~~~~~ /usr/include/c++/12.2.1/bits/stl_set.h:298:17: note: no known conversion for argument 1 from 'void' to 'const std::set<int>&' 298 | operator=(const set&) = default; | ^~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_set.h:302:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>& std::set<_Key, _Compare, _Alloc>::operator=(std::set<_Key, _Compare, _Alloc>&&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>]' 302 | operator=(set&&) = default; | ^~~~~~~~ /usr/include/c++/12.2.1/bits/stl_set.h:302:17: note: no known conversion for argument 1 from 'void' to 'std::set<int>&&' 302 | operator=(set&&) = default; | ^~~~~ /usr/include/c++/12.2.1/bits/stl_set.h:316:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>& std::set<_Key, _Compare, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>]' 316 | operator=(initializer_list<value_type> __l) | ^~~~~~~~ /usr/include/c++/12.2.1/bits/stl_set.h:316:46: note: no known conversion for argument 1 from 'void' to 'std::initializer_list<int>' 316 | operator=(initializer_list<value_type> __l) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ main.cpp:53:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 53 | if(tt=0) cout<<"DA"<<'\n'; | ~~^~ Non zero exit status: 1

Ceva nu functioneaza?