Borderou de evaluare (job #636283)

Utilizator avatar Mmoro2006 Morosan Mihnea Mmoro2006 IP ascuns
Problemă Mediana (clasa a 10-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 27 feb. 2022 13:57:08 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:1: error: 'priority_queue' does not name a type 7 | priority_queue <int> a, b; | ^~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:19:17: error: 'a' was not declared in this scope 19 | a.push( y ); | ^ main.cpp:21:17: error: 'b' was not declared in this scope 21 | b.push( -y ); | ^ main.cpp:24:17: error: 'a' was not declared in this scope 24 | if( a.top( ) > ( -1 ) * b.top( ) ) | ^ main.cpp:24:37: error: 'b' was not declared in this scope 24 | if( a.top( ) > ( -1 ) * b.top( ) ) | ^ main.cpp:28:26: error: 'aux1' was not declared in this scope; did you mean 'aux'? 28 | b.push( -aux1 ); | ^~~~ | aux main.cpp:35:20: error: 'a' was not declared in this scope 35 | out << a.top( ) << '\n'; | ^