Borderou de evaluare (job #2196466)

Utilizator MaligMamaliga cu smantana Malig Data 19 aprilie 2018 13:26:23
Problema Plimbare Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from dList.h:37:0: dList.cpp: In constructor ‘PoliList::dList<T>::dList(unsigned int, const T&)’: dList.cpp:80:13: error: there are no arguments to ‘initiliaze’ that depend on a template parameter, so a declaration of ‘initiliaze’ must be available [-fpermissive] dList.cpp:80:13: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) dList.cpp:82:23: error: ‘j’ was not declared in this scope dList.h: At global scope: dList.h:115:51: error: found ‘:’ in nested-name-specifier, expected ‘::’ dList.h: In function ‘void addBothDirections(int, PoliList::dList<int>&)’: dList.h:148:21: error: ‘class PoliList::dList<int>’ has no member named ‘back’ dList.h:148:57: error: ‘class PoliList::dList<int>’ has no member named ‘front’ dList.h:156:58: error: no matching function for call to ‘next(PoliList::dList<int>::iterator&, int)’ In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/sstream:38, from /usr/include/c++/6/complex:45, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:52, from user.cpp:1: /usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note: candidate: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type) next(_ForwardIterator __x, typename ^~~~ /usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note: template argument deduction/substitution failed: /usr/include/c++/6/bits/stl_iterator_base_funcs.h: In substitution of ‘template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type) [with _ForwardIterator = PoliList::dList<int>::iterator]’: dList.h:156:58: required from here /usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: error: no type named ‘difference_type’ in ‘struct std::iterator_traits<PoliList::dList<int>::iterator>’ dList.h:157:23: error: ‘class PoliList::dList<int>’ has no member named ‘insert’ dList.h:157:41: error: no matching function for call to ‘next(PoliList::dList<int>::iterator&, int)’ In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/sstream:38, from /usr/include/c++/6/complex:45, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:52, from user.cpp:1: /usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note: candidate: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type) next(_ForwardIterator __x, typename ^~~~ /usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note: template argument deduction/substitution failed: /usr/include/c++/6/bits/stl_iterator_base_funcs.h: In substitution of ‘template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type) [with _ForwardIterator = PoliList::dList<int>::iterator]’: dList.h:157:41: required from here /usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: error: no type named ‘difference_type’ in ‘struct std::iterator_traits<PoliList::dList<int>::iterator>’ dList.h: In function ‘int main()’: dList.h:210:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] dList.h:223:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] dList.h:237:14: error: ‘dList’ was not declared in this scope dList.h:237:14: note: suggested alternative:

Ceva nu functioneaza?