Borderou de evaluare (job #2609690)
Utilizator | Data | 3 mai 2020 01:39:55 | |
---|---|---|---|
Problema | Statistici de ordine | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'long long int quick_select(long long int*, long long int, long long int, long long int)':
main.cpp:31:28: error: no matching function for call to 'partition(long long int*&, long long int&, long long int&)'
int i = partition(v, l, r);
^
In file included from /usr/include/c++/6/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from main.cpp:3:
/usr/include/c++/6/bits/stl_algo.h:4514:5: note: candidate: template<class _BIter, class _Predicate> _BIter std::partition(_BIter, _BIter, _Predicate)
partition(_ForwardIterator __first, _ForwardIterator __last,
^~~~~~~~~
/usr/include/c++/6/bits/stl_algo.h:4514:5: note: template argument deduction/substitution failed:
main.cpp:31:28: note: deduced conflicting types for parameter '_BIter' ('long long int*' and 'long long int')
int i = partition(v, l, r);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !