Borderou de evaluare (job #2134829)

Utilizator epermesterNagy Edward epermester Data 18 februarie 2018 13:03:37
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:14:44: error: template argument 3 is invalid priority_queue < pis, vector <pis>, greater> q; ^ user.cpp: In function ‘void dijkstra(unsigned int, csucsok*)’: user.cpp:26:4: error: request for member ‘pop’ in ‘q’, which is of non-class type ‘int’ q.pop(); ^ user.cpp:32:6: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’ q.push(temp); ^ user.cpp:34:12: error: request for member ‘empty’ in ‘q’, which is of non-class type ‘int’ while (!q.empty() && q.top().first != csucs[q.top().second].tav0) ^ user.cpp:34:25: error: request for member ‘top’ in ‘q’, which is of non-class type ‘int’ while (!q.empty() && q.top().first != csucs[q.top().second].tav0) ^ user.cpp:34:48: error: request for member ‘top’ in ‘q’, which is of non-class type ‘int’ while (!q.empty() && q.top().first != csucs[q.top().second].tav0) ^ user.cpp:35:5: error: request for member ‘pop’ in ‘q’, which is of non-class type ‘int’ q.pop(); ^ user.cpp:36:8: error: request for member ‘empty’ in ‘q’, which is of non-class type ‘int’ if(!q.empty()) dijkstra(q.top().second, csucs); ^ user.cpp:36:28: error: request for member ‘top’ in ‘q’, which is of non-class type ‘int’ if(!q.empty()) dijkstra(q.top().second, csucs); ^ user.cpp: In function ‘int main()’: user.cpp:61:4: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’ q.push(temp); ^

Ceva nu functioneaza?