Borderou de evaluare (job #2202534)

Utilizator cezar.dimoiuDimoiu Cezar Gabriel cezar.dimoiu Data 9 mai 2018 00:28:46
Problema Heapuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void up(int)’: user.cpp:23:16: error: no matching function for call to ‘swap(int&, int)’ swap(i, i / 2); ^ In file included from /usr/include/c++/6/complex:45:0, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:52, from user.cpp:1: /usr/include/c++/6/sstream:783: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>&) swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, ^~~~ /usr/include/c++/6/sstream:783:5: note: template argument deduction/substitution failed: user.cpp:23:16: note: mismatched types ‘std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>’ and ‘int’ swap(i, i / 2); ^ In file included from /usr/include/c++/6/complex:45:0, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:52, from user.cpp:1: /usr/include/c++/6/sstream:790: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>&) swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, ^~~~ /usr/include/c++/6/sstream:790:5: note: template argument deduction/substitution failed: user.cpp:23:16: note: mismatched types ‘std::__cxx11::basic_istringstream<_CharT, _Traits, _Allocator>’ and ‘int’ swap(i, i / 2); ^ In file included from /usr/include/c++/6/complex:45:0, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:52, from user.cpp:1: /usr/include/c++/6/sstream:797: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>&) swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, ^~~~ /usr/include/c++/6/sstream:797:5: note: template argument deduction/substitution failed: user.cpp:23:16: note: mismatched types ‘std::__cxx11::basic_ostringstream<_CharT, _Traits, _Allocator>’ and ‘int’ swap(i, i / 2); ^ In file included from /usr/include/c++/6/complex:45:0, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:52, from user.cpp:1: /usr/include/c++/6/sstream:804: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>&) swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, ^~~~ /usr/include/c++/6/sstream:804:5: note: template argument deduction/substitution failed: user.cpp:23:16: note: mismatched types ‘std::__cxx11::basic_stringstream<_CharT, _Traits, _Allocator>’ and ‘int’ swap(i, i / 2); ^ In file included from /usr/include/c++/6/regex:62:0, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:110,

Ceva nu functioneaza?