Borderou de evaluare (job #1809752)
Utilizator | Data | 19 noiembrie 2016 11:14:03 | |
---|---|---|---|
Problema | Zoo | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = std::pair<int, int>*; _Tp = std::pair<int, int>; _Compare = main()::__lambda0]’:
/usr/include/c++/4.8/bits/stl_algo.h:2319:78: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::pair<int, int>*; _Compare = main()::__lambda0]’
/usr/include/c++/4.8/bits/stl_algo.h:2360:62: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = std::pair<int, int>*; _Size = int; _Compare = main()::__lambda0]’
/usr/include/c++/4.8/bits/stl_algo.h:5513:44: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = std::pair<int, int>*; _Compare = main()::__lambda0]’
user.cpp:37:111: required from here
/usr/include/c++/4.8/bits/stl_algo.h:2287:35: error: no match for call to ‘(main()::__lambda0) (std::pair<int, int>&, const std::pair<int, int>&)’
while (__comp(*__first, __pivot))
^
user.cpp:37:35: note: candidates are:
sort(coord + 1, coord + n + 1, [&] (pair <int, int> & x, pair <int, int> & y) { return x.second < y.second; });
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h:2287:35: note: bool (*)(std::pair<int, int>&, std::pair<int, int>&) <conversion>
while (__comp(*__first, __pivot))
^
/usr/include/c++/4.8/bits/stl_algo.h:2287:35: note: candidate expects 3 arguments, 3 provided
user.cpp:37:78: note: main()::__lambda0
sort(coord + 1, coord + n + 1, [&] (pair <int, int> & x, pair <int, int> & y) { return x.second < y.second; });
^
user.cpp:37:78: note: no known conversion for argument 2 from ‘const std::pair<int, int>’ to ‘std::pair<int, int>&’
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h:2290:34: error: no match for call to ‘(main()::__lambda0) (const std::pair<int, int>&, std::pair<int, int>&)’
while (__comp(__pivot, *__last))
^
user.cpp:37:35: note: candidates are:
sort(coord + 1, coord + n + 1, [&] (pair <int, int> & x, pair <int, int> & y) { return x.second < y.second; });
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h:2290:34: note: bool (*)(std::pair<int, int>&, std::pair<int, int>&) <conversion>
while (__comp(__pivot, *__last))
^
/usr/include/c++/4.8/bits/stl_algo.h:2290:34: note: candidate expects 3 arguments, 3 provided
user.cpp:37:78: note: main()::__lambda0
sort(coord + 1, coord + n + 1, [&] (pair <int, int> & x, pair <int, int> & y) { return x.second < y.second; });
^
user.cpp:37:78: note: no known conversion for argument 1 from ‘const std::pair<int, int>’ to ‘std::pair<int, int>&’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !