Borderou de evaluare (job #2207265)

Utilizator cyborgGavrila Alex cyborg Data 25 mai 2018 13:32:26
Problema Grade Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void label(std::vector<std::pair<int, int> >&)’: user.cpp:10:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0;i<_sequence.size();i++){ ~^~~~~~~~~~~~~~~~~ user.cpp:9:6: warning: unused variable ‘i’ [-Wunused-variable] int i = 0; ^ user.cpp: In function ‘bool degreeToGraph(std::vector<std::pair<int, int> >, std::__cxx11::list<std::pair<int, int> >&)’: user.cpp:17:46: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 sort(_sequence.begin(), _sequence.end(), [](auto x, auto y) {return x.first > y.first; }); ^~~~ user.cpp:17:54: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 sort(_sequence.begin(), _sequence.end(), [](auto x, auto y) {return x.first > y.first; }); ^~~~ user.cpp: In lambda function: user.cpp:17:72: error: request for member ‘first’ in ‘x’, which is of non-class type ‘int’ sort(_sequence.begin(), _sequence.end(), [](auto x, auto y) {return x.first > y.first; }); ^~~~~ user.cpp:17:82: error: request for member ‘first’ in ‘y’, which is of non-class type ‘int’ sort(_sequence.begin(), _sequence.end(), [](auto x, auto y) {return x.first > y.first; }); ^~~~~ user.cpp: In function ‘bool degreeToGraph(std::vector<std::pair<int, int> >, std::__cxx11::list<std::pair<int, int> >&)’: user.cpp:21:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < _sequence.size(); i++) { ~~^~~~~~~~~~~~~~~~~~ user.cpp:23:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (c.first > _sequence.size() - i - 1) return false; ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ user.cpp:30:47: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 sort(_sequence.begin(), _sequence.end(), [](auto x, auto y) {return x.first > y.first; }); ^~~~ user.cpp:30:55: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 sort(_sequence.begin(), _sequence.end(), [](auto x, auto y) {return x.first > y.first; }); ^~~~ user.cpp: In lambda function: user.cpp:30:73: error: request for member ‘first’ in ‘x’, which is of non-class type ‘int’ sort(_sequence.begin(), _sequence.end(), [](auto x, auto y) {return x.first > y.first; }); ^~~~~ user.cpp:30:83: error: request for member ‘first’ in ‘y’, which is of non-class type ‘int’ sort(_sequence.begin(), _sequence.end(), [](auto x, auto y) {return x.first > y.first; }); ^~~~~ user.cpp: In function ‘int main()’: user.cpp:44:12: warning: unused variable ‘b’ [-Wunused-variable] int n, a, b; ^ In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39,

Ceva nu functioneaza?