Borderou de evaluare (job #1725328)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 5 iulie 2016 14:17:00
Problema Retele 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:7: /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::vector<int>*, std::vector<std::vector<int> > >; _Tp = std::vector<int>; _Compare = bool (*)(std::vector<int>&, std::vector<int>&)]’: /usr/include/c++/4.8/bits/stl_algo.h:2319:78: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::vector<int>*, std::vector<std::vector<int> > >; _Compare = bool (*)(std::vector<int>&, std::vector<int>&)]’ /usr/include/c++/4.8/bits/stl_algo.h:2360:62: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::vector<int>*, std::vector<std::vector<int> > >; _Size = int; _Compare = bool (*)(std::vector<int>&, std::vector<int>&)]’ /usr/include/c++/4.8/bits/stl_algo.h:5513:44: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<std::vector<int>*, std::vector<std::vector<int> > >; _Compare = bool (*)(std::vector<int>&, std::vector<int>&)]’ user.cpp:88:38: required from here /usr/include/c++/4.8/bits/stl_algo.h:2287:35: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘const std::vector<int>’ while (__comp(*__first, __pivot)) ^ /usr/include/c++/4.8/bits/stl_algo.h:2290:34: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘const std::vector<int>’ while (__comp(__pivot, *__last)) ^ user.cpp: In function ‘void readData()’: user.cpp:29:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &M); ^ user.cpp:31:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] int u, v; scanf("%d%d", &u, &v); ^

Ceva nu functioneaza?