Borderou de evaluare (job #3245754)

Utilizator schema_227Stefan Nicola schema_227 Data 30 septembrie 2024 16:18:07
Problema Heapuri Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void Descend(std::vector<int>&, int)': main.cpp:27:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 27 | if(stanga < heap.size() && heap[stanga] < heap[top]) | ~~~~~~~^~~~~~~~~~~~~ main.cpp:29:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 29 | if(dreapta < heap.size() && heap[dreapta] < heap[top]) / | ~~~~~~~~^~~~~~~~~~~~~ main.cpp:29:65: error: expected primary-expression before '/' token 29 | if(dreapta < heap.size() && heap[dreapta] < heap[top]) / | ^ Non zero exit status: 1

Ceva nu functioneaza?