Borderou de evaluare (job #556281)
Utilizator | Data | 16 martie 2011 01:13:42 | |
---|---|---|---|
Problema | Cezar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:54:2: warning: no newline at end of file
user.cpp: In function 'int main()':
user.cpp:28: error: request for member 'n' in 'V[i]', which is of non-class type 'int'
user.cpp:29: error: request for member 'cost' in 'V[i]', which is of non-class type 'int'
user.cpp:33: error: no matching function for call to 'std::priority_queue<nod, std::vector<nod, std::allocator<nod> >, maimic>::push(int&)'
/usr/include/c++/4.2/bits/stl_queue.h:413: note: candidates are: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const typename _Sequence::value_type&) [with _Tp = nod, _Sequence = std::vector<nod, std::allocator<nod> >, _Compare = maimic]
user.cpp:37: error: request for member 'cost' in 'V[nodC]', which is of non-class type 'int'
user.cpp:37: error: request for member 'cost' in 'V[nodC]', which is of non-class type 'int'
user.cpp:37: error: request for member 'cost' in 'V[((int)heap.std::priority_queue<_Tp, _Sequence, _Compare>::top [with _Tp = nod, _Sequence = std::vector<nod, std::allocator<nod> >, _Compare = maimic]()->nod::n)]', which is of non-class type 'int'
user.cpp:38: error: request for member 'cost' in 'V[((int)heap.std::priority_queue<_Tp, _Sequence, _Compare>::top [with _Tp = nod, _Sequence = std::vector<nod, std::allocator<nod> >, _Compare = maimic]()->nod::n)]', which is of non-class type 'int'
user.cpp:39: warning: comparison between signed and unsigned integer expressions
user.cpp:45: error: request for member 'cost' in 'V[((int)heap.std::priority_queue<_Tp, _Sequence, _Compare>::top [with _Tp = nod, _Sequence = std::vector<nod, std::allocator<nod> >, _Compare = maimic]()->nod::n)]', which is of non-class type 'int'
user.cpp:50: error: no matching function for call to 'std::priority_queue<nod, std::vector<nod, std::allocator<nod> >, maimic>::push(int&)'
/usr/include/c++/4.2/bits/stl_queue.h:413: note: candidates are: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const typename _Sequence::value_type&) [with _Tp = nod, _Sequence = std::vector<nod, std::allocator<nod> >, _Compare = maimic]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !