Borderou de evaluare (job #2802956)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 19 noiembrie 2021 09:52:15
Problema Interclasari Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:43:33: error: type/value mismatch at argument 3 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue' 43 | priority_queue<int,vector<int>,C> h; | ^ main.cpp:43:33: note: expected a type, got 'C' main.cpp: In function 'int main()': main.cpp:48:15: error: request for member 'push' in 'h', which is of non-class type 'int' 48 | h.push(E()); | ^~~~ main.cpp:49:25: error: request for member 'empty' in 'h', which is of non-class type 'int' 49 | for(H(s),D('\n');!h.empty();h.pop()) | ^~~~~ main.cpp:49:35: error: request for member 'pop' in 'h', which is of non-class type 'int' 49 | for(H(s),D('\n');!h.empty();h.pop()) | ^~~ main.cpp:50:13: error: request for member 'top' in 'h', which is of non-class type 'int' 50 | H(h.top()),D(' '); | ^~~ Non zero exit status: 1

Ceva nu functioneaza?