Borderou de evaluare (job #1787698)
Utilizator | Data | 24 octombrie 2016 22:05:01 | |
---|---|---|---|
Problema | Marbles | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:26:32: error: parameter declared ‘auto’
auto cmpX = [](const auto &x, const auto &y){
^
user.cpp:26:47: error: parameter declared ‘auto’
auto cmpX = [](const auto &x, const auto &y){
^
user.cpp: In lambda function:
user.cpp:27:16: error: ‘x’ was not declared in this scope
return x.first < y.first;
^
user.cpp:27:26: error: ‘y’ was not declared in this scope
return x.first < y.first;
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_FIter std::lower_bound(_FIter, _FIter, const _Tp&, _Compare) [with _FIter = __gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >; _Tp = std::pair<int, int>; _Compare = main()::__lambda0]’:
user.cpp:37:88: required from here
/usr/include/c++/4.8/bits/stl_algo.h:2470:31: error: no match for call to ‘(main()::__lambda0) (std::pair<int, int>&, const std::pair<int, int>&)’
if (__comp(*__middle, __val))
^
user.cpp:26:18: note: candidates are:
auto cmpX = [](const auto &x, const auto &y){
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_algo.h:2470:31: note: void (*)() <conversion>
if (__comp(*__middle, __val))
^
/usr/include/c++/4.8/bits/stl_algo.h:2470:31: note: candidate expects 1 argument, 3 provided
user.cpp:26:48: note: main()::__lambda0
auto cmpX = [](const auto &x, const auto &y){
^
user.cpp:26:48: note: candidate expects 0 arguments, 2 provided
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_FIter std::upper_bound(_FIter, _FIter, const _Tp&, _Compare) [with _FIter = __gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >; _Tp = std::pair<int, int>; _Compare = main()::__lambda0]’:
user.cpp:42:89: required from here
/usr/include/c++/4.8/bits/stl_algo.h:2566:31: error: no match for call to ‘(main()::__lambda0) (const std::pair<int, int>&, std::pair<int, int>&)’
if (__comp(__val, *__middle))
^
user.cpp:26:18: note: candidates are:
auto cmpX = [](const auto &x, const auto &y){
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_algo.h:2566:31: note: void (*)() <conversion>
if (__comp(__val, *__middle))
^
/usr/include/c++/4.8/bits/stl_algo.h:2566:31: note: candidate expects 1 argument, 3 provided
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !