Borderou de evaluare (job #2834517)

Utilizator razviii237Uzum Razvan razviii237 Data 17 ianuarie 2022 10:13:48
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:27:39: error: type/value mismatch at argument 3 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue' 27 | priority_queue <int, vector<int>, time> q; | ^ main.cpp:27:39: note: expected a type, got 'time' main.cpp: In function 'int dij(int, int, int, int)': main.cpp:30:14: error: request for member 'empty' in 'q', which is of non-class type 'int' 30 | while(!q.empty()) | ^~~~~ main.cpp:31:11: error: request for member 'pop' in 'q', which is of non-class type 'int' 31 | q.pop(); | ^~~ main.cpp:32:7: error: request for member 'push' in 'q', which is of non-class type 'int' 32 | q.push(start); | ^~~~ main.cpp:42:14: error: request for member 'empty' in 'q', which is of non-class type 'int' 42 | while(!q.empty()) { | ^~~~~ main.cpp:43:19: error: request for member 'top' in 'q', which is of non-class type 'int' 43 | int x = q.top(); | ^~~ main.cpp:45:11: error: request for member 'pop' in 'q', which is of non-class type 'int' 45 | q.pop(); | ^~~ main.cpp:54:23: error: request for member 'push' in 'q', which is of non-class type 'int' 54 | q.push(u.x); | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?