Borderou de evaluare (job #2421007)

Utilizator andreixxiLungu Andrei andreixxi Data 13 mai 2019 20:21:02
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int minKey(int*, int*)': main.cpp:12:11: error: 'INT_MAX' was not declared in this scope int min = INT_MAX, min_index; ^~~~~~~ main.cpp:16:23: error: 'min_index' was not declared in this scope min = key[v], min_index = v; ^~~~~~~~~ main.cpp:18:8: error: 'min_index' was not declared in this scope return min_index; ^~~~~~~~~ main.cpp: In function 'void prim(int)': main.cpp:53:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (int i = 1; i <= n; i++) ^~~ main.cpp:55:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' g<<s<<endl; ^ Non zero exit status: 1

Ceva nu functioneaza?