Borderou de evaluare (job #2894439)

Utilizator Andreeamiruna27Mindrescu Andreea Andreeamiruna27 Data 27 aprilie 2022 20:32:39
Problema Timbre Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:13: error: expected ';' at end of member declaration 9 | int lg, cost | ^~~~ | ; main.cpp: In function 'void down(int)': main.cpp:21:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 21 | while(2*poz<heap.size()) | ~~~~~^~~~~~~~~~~~ main.cpp:24:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 24 | if(2*poz+1<heap.size() and heap[min_copil]>heap[2*poz+1]) | ~~~~~~~^~~~~~~~~~~~ main.cpp: In function 'int minim()': main.cpp:63:1: warning: control reaches end of non-void function [-Wreturn-type] 63 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?