Borderou de evaluare (job #2985923)

Utilizator Luca529Taschina Luca Luca529 Data 27 februarie 2023 13:00:17
Problema Distincte Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void C(int)': main.cpp:15:20: error: conversion from 'set<short unsigned int>' to non-scalar type 'set<int>' requested 15 | {set<int> a=S[nod*2], b=S[nod*2+1]; | ~~~~~~~^ main.cpp:15:34: error: conversion from 'set<short unsigned int>' to non-scalar type 'set<int>' requested 15 | {set<int> a=S[nod*2], b=S[nod*2+1]; | ~~~~~~~~~^ main.cpp:22:16: error: no matching function for call to 'swap(std::set<short unsigned int>&, std::set<int>&)' 22 | swap(S[nod], a); | ^ In file included from /usr/include/c++/10/complex:45, from /usr/include/c++/10/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54, from main.cpp:1: /usr/include/c++/10/sstream:849:5: note: candidate: 'template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>&, std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>&)' 849 | swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, | ^~~~ /usr/include/c++/10/sstream:849:5: note: template argument deduction/substitution failed: main.cpp:22:16: note: 'std::set<short unsigned int>' is not derived from 'std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>' 22 | swap(S[nod], a); | ^ In file included from /usr/include/c++/10/complex:45, from /usr/include/c++/10/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54, from main.cpp:1: /usr/include/c++/10/sstream:856:5: note: candidate: 'template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(std::__cxx11::basic_istringstream<_CharT, _Traits, _Allocator>&, std::__cxx11::basic_istringstream<_CharT, _Traits, _Allocator>&)' 856 | swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, | ^~~~ /usr/include/c++/10/sstream:856:5: note: template argument deduction/substitution failed: main.cpp:22:16: note: 'std::set<short unsigned int>' is not derived from 'std::__cxx11::basic_istringstream<_CharT, _Traits, _Allocator>' 22 | swap(S[nod], a); | ^ In file included from /usr/include/c++/10/complex:45, from /usr/include/c++/10/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54, from main.cpp:1: /usr/include/c++/10/sstream:863:5: note: candidate: 'template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(std::__cxx11::basic_ostringstream<_CharT, _Traits, _Allocator>&, std::__cxx11::basic_ostringstream<_CharT, _Traits, _Allocator>&)' 863 | swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, | ^~~~ /usr/include/c++/10/sstream:863:5: note: template argument deduction/substitution failed: main.cpp:22:16: note: 'std::set<short unsigned int>' is not derived from 'std::__cxx11::basic_ostringstream<_CharT, _Traits, _Allocator>' 22 | swap(S[nod], a); | ^ In file included from /usr/include/c++/10/complex:45, from /usr/include/c++/10/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54, from main.cpp:1: /usr/include/c++/10/sstream:870:5: note: candidate: 'template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(std::__cxx11::basic_stringstream<_CharT, _Traits, _Allocator>&, std::__cxx11::basic_stringstream<_CharT, _Traits, _Allocator>&)' 870 | swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?