Borderou de evaluare (job #2460182)
Utilizator | Data | 23 septembrie 2019 01:22:50 | |
---|---|---|---|
Problema | Sortare prin comparare | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void make_heap(std::vector<unsigned int>&, uint32_t, uint32_t)':
main.cpp:23:46: error: variable 'std::reference_wrapper<unsigned int> leftChild' has initializer but incomplete type
std::reference_wrapper<uint32_t> leftChild = std::ref(v[leftIdx + fst - 1]);
^~~~~~~~~
main.cpp:23:59: error: 'ref' is not a member of 'std'
std::reference_wrapper<uint32_t> leftChild = std::ref(v[leftIdx + fst - 1]);
^~~
main.cpp:24:46: error: variable 'std::reference_wrapper<unsigned int> rightChild' has initializer but incomplete type
std::reference_wrapper<uint32_t> rightChild = std::ref(v[rightIdx + fst - 1]);
^~~~~~~~~~
main.cpp:24:59: error: 'ref' is not a member of 'std'
std::reference_wrapper<uint32_t> rightChild = std::ref(v[rightIdx + fst - 1]);
^~~
main.cpp:27:46: error: variable 'std::reference_wrapper<unsigned int> best' has initializer but incomplete type
std::reference_wrapper<uint32_t> best = std::ref(v[j + fst - 1]);
^~~~
main.cpp:27:53: error: 'ref' is not a member of 'std'
std::reference_wrapper<uint32_t> best = std::ref(v[j + fst - 1]);
^~~
main.cpp:28:46: error: variable 'std::reference_wrapper<unsigned int> curr' has initializer but incomplete type
std::reference_wrapper<uint32_t> curr = best;
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !