Borderou de evaluare (job #1751233)
Utilizator | Data | 31 august 2016 23:29:06 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:50:65: warning: friend declaration ‘void SetInfo(ListIterator<T>&, Nod<T>*)’ declares a non-template function [-Wnon-template-friend]
friend void SetInfo (ListIterator<T>& iterator, Nod<T>* nod);
^
user.cpp:50:65: note: (if this is not what you intended, make sure the function template has already been declared and add <> after the function name here)
user.cpp: In instantiation of ‘Queue<T>::Queue() [with T = int]’:
user.cpp:462:38: required from here
user.cpp:328:14: warning: unused variable ‘l’ [-Wunused-variable]
List<T>* l=new List<T>();
^
user.cpp: In instantiation of ‘Nod<T>::Nod(const T&) [with T = int]’:
user.cpp:356:32: required from ‘void Queue<T>::Push(const T&) [with T = int]’
user.cpp:463:18: required from here
user.cpp:11:7: warning: ‘Nod<int>::Next’ will be initialized after [-Wreorder]
Nod* Next;
^
user.cpp:10:7: warning: ‘Nod<int>* Nod<int>::Prev’ [-Wreorder]
Nod* Prev;
^
user.cpp:102:1: warning: when initialized here [-Wreorder]
Nod<T>::Nod (const T& info) :
^
/tmp/ccSqYflK.o: In function `main':
user.cpp:(.text.startup+0x3cf): undefined reference to `SetInfo(ListIterator<int>&, Nod<int>*)'
collect2: error: ld returned 1 exit status
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !