Borderou de evaluare (job #1766542)
Utilizator | Data | 28 septembrie 2016 06:12:20 | |
---|---|---|---|
Problema | Range minimum query | Status | done |
Runda | Arhiva educationala | 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:10:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = element*; _Tp = element; _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 = element*; _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 = element*; _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 = element*; _Compare = main()::__lambda0]’
user.cpp:34:80: required from here
/usr/include/c++/4.8/bits/stl_algo.h:2287:35: error: no match for call to ‘(main()::__lambda0) (element&, const element&)’
while (__comp(*__first, __pivot))
^
user.cpp:34:29: note: candidates are:
sort(v + 1, v + n + 1, [] ( element &a, element &b ) { return a.x < b.x; } );
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:10:
/usr/include/c++/4.8/bits/stl_algo.h:2287:35: note: bool (*)(element&, element&) <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:34:56: note: main()::__lambda0
sort(v + 1, v + n + 1, [] ( element &a, element &b ) { return a.x < b.x; } );
^
user.cpp:34:56: note: no known conversion for argument 2 from ‘const element’ to ‘element&’
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:10:
/usr/include/c++/4.8/bits/stl_algo.h:2290:34: error: no match for call to ‘(main()::__lambda0) (const element&, element&)’
while (__comp(__pivot, *__last))
^
user.cpp:34:29: note: candidates are:
sort(v + 1, v + n + 1, [] ( element &a, element &b ) { return a.x < b.x; } );
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:10:
/usr/include/c++/4.8/bits/stl_algo.h:2290:34: note: bool (*)(element&, element&) <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:34:56: note: main()::__lambda0
sort(v + 1, v + n + 1, [] ( element &a, element &b ) { return a.x < b.x; } );
^
user.cpp:34:56: note: no known conversion for argument 1 from ‘const element’ to ‘element&’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !