Borderou de evaluare (job #2936272)

Utilizator CondoracheAlexandruCondorache Alexandru CondoracheAlexandru Data 8 noiembrie 2022 14:31:04
Problema Paduri de multimi disjuncte Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:40:21: error: no matching function for call to 'merge(int&, int&)' 40 | if(a==1) merge(x,y); | ^ In file included from /usr/include/c++/10/algorithm:62, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65, from main.cpp:1: /usr/include/c++/10/bits/stl_algo.h:4946:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter)' 4946 | merge(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~ /usr/include/c++/10/bits/stl_algo.h:4946:5: note: template argument deduction/substitution failed: main.cpp:40:21: note: candidate expects 5 arguments, 2 provided 40 | if(a==1) merge(x,y); | ^ In file included from /usr/include/c++/10/algorithm:62, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65, from main.cpp:1: /usr/include/c++/10/bits/stl_algo.h:4997:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _Compare> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare)' 4997 | merge(_InputIterator1 __first1, _InputIterator1 __last1, | ^~~~~ /usr/include/c++/10/bits/stl_algo.h:4997:5: note: template argument deduction/substitution failed: main.cpp:40:21: note: candidate expects 6 arguments, 2 provided 40 | if(a==1) merge(x,y); | ^ Non zero exit status: 1

Ceva nu functioneaza?