Borderou de evaluare (job #1355084)

Utilizator hohoho97Valentin Nita hohoho97 Data 22 februarie 2015 12:55:37
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:138: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:163:22: error: ‘numeric_limits’ was not declared in this scope dist.assign(n + 1, numeric_limits<double>::infinity()); ^ user.cpp:163:37: error: expected primary-expression before ‘double’ dist.assign(n + 1, numeric_limits<double>::infinity()); ^ user.cpp:168:64: error: ‘comp’ was not declared in this scope priority_queue<pair<double, int>, vector<pair<double, int>>, comp> pq; ^ user.cpp:168:68: error: template argument 3 is invalid priority_queue<pair<double, int>, vector<pair<double, int>>, comp> pq; ^ user.cpp:168:72: error: invalid type in declaration before ‘;’ token priority_queue<pair<double, int>, vector<pair<double, int>>, comp> pq; ^ user.cpp:169:6: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘int’ pq.push(make_pair(0.0, start)); ^ user.cpp:172:14: error: request for member ‘empty’ in ‘pq’, which is of non-class type ‘int’ while (!pq.empty()) ^ user.cpp:174:20: error: request for member ‘top’ in ‘pq’, which is of non-class type ‘int’ int vertex = pq.top().second; ^ user.cpp:175:7: error: request for member ‘pop’ in ‘pq’, which is of non-class type ‘int’ pq.pop(); ^ user.cpp:186: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?