Borderou de evaluare (job #2277288)
Utilizator | Data | 5 noiembrie 2018 23:01:06 | |
---|---|---|---|
Problema | Distante | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In constructor 'Heap::Heap(int, const int*)':
main.cpp:10:20: warning: 'Heap::max_size' will be initialized after [-Wreorder]
int add_index, max_size, *heap, *pos;
^~~~~~~~
main.cpp:10:9: warning: 'int Heap::add_index' [-Wreorder]
int add_index, max_size, *heap, *pos;
^~~~~~~~~
main.cpp:55:5: warning: when initialized here [-Wreorder]
Heap(int max_size, const int *key) : max_size(max_size),
^~~~
main.cpp: In function 'void dijkstra(std::vector<std::pair<int, int> >*, Heap&, int, int*)':
main.cpp:106:14: error: declaration of 'Heap heap' shadows a parameter
Heap heap(MAX_NODES, sol);
^
main.cpp: In function 'int main()':
main.cpp:154:25: error: 'heap' was not declared in this scope
dijkstra(graph, heap, s, sol);
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !