Borderou de evaluare (job #1355086)
Utilizator | Data | 22 februarie 2015 12:56:08 | |
---|---|---|---|
Problema | Ubuntzei | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In constructor ‘Ubuntzei::Ubuntzei()’:
user.cpp:139:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < orase.size(); i++)
^
user.cpp: In member function ‘double Ubuntzei::diskstra(int, int)’:
user.cpp:169:64: error: ‘comp’ was not declared in this scope
priority_queue<pair<double, int>, vector<pair<double, int>>, comp> pq;
^
user.cpp:169:68: error: template argument 3 is invalid
priority_queue<pair<double, int>, vector<pair<double, int>>, comp> pq;
^
user.cpp:169:72: error: invalid type in declaration before ‘;’ token
priority_queue<pair<double, int>, vector<pair<double, int>>, comp> pq;
^
user.cpp:170:6: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘int’
pq.push(make_pair(0.0, start));
^
user.cpp:173:14: error: request for member ‘empty’ in ‘pq’, which is of non-class type ‘int’
while (!pq.empty())
^
user.cpp:175:20: error: request for member ‘top’ in ‘pq’, which is of non-class type ‘int’
int vertex = pq.top().second;
^
user.cpp:176:7: error: request for member ‘pop’ in ‘pq’, which is of non-class type ‘int’
pq.pop();
^
user.cpp:187:10: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘int’
pq.push(make_pair(dist[v], e.other(vertex)));
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !