Borderou de evaluare (job #2840986)

Utilizator Wild2021Stefan Andreas Christian Wild2021 Data 29 ianuarie 2022 09:58:18
Problema Mostenire3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:14:1: error: 'priority_queue' does not name a type 14 | priority_queue<str> pq; | ^~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:46:21: error: 'pq' was not declared in this scope 46 | pq.push({ last, i, s }), last = i + 1, ck--; | ^~ main.cpp:52:21: error: 'pq' was not declared in this scope 52 | pq.push({ last, n, s }), last = n + 1, ck--; | ^~ main.cpp:57:13: error: 'pq' was not declared in this scope 57 | if (pq.size() < k) | ^~ main.cpp:68:84: error: no match for 'operator=' (operand types are 'solutii' and '<brace-enclosed initializer list>') 68 | sol[psol] = { pq.top().st, psol + 1, pq.top().dr - pq.top().st + 1 }, psol++; | ^ main.cpp:15:8: note: candidate: 'constexpr solutii& solutii::operator=(const solutii&)' 15 | struct solutii | ^~~~~~~ main.cpp:15:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const solutii&' main.cpp:15:8: note: candidate: 'constexpr solutii& solutii::operator=(solutii&&)' main.cpp:15:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'solutii&&' main.cpp:75:5: error: 'sort' was not declared in this scope; did you mean 'qsort'? 75 | sort(sol, sol + psol, cmp); | ^~~~ | qsort Non zero exit status: 1

Ceva nu functioneaza?