Borderou de evaluare (job #1466212)

Utilizator dimavascan94VascanDumitru dimavascan94 Data 28 iulie 2015 19:20:06
Problema Roy-Floyd Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int minDistance(bool*)’: user.cpp:9:15: error: ‘INT_MAX’ was not declared in this scope int min = INT_MAX, min_index; ^ user.cpp:15:4: error: ‘min_index’ was not declared in this scope min_index = k; ^ user.cpp:18:12: error: ‘min_index’ was not declared in this scope return min_index; ^ user.cpp: In function ‘int main()’: user.cpp:47:28: error: variable-sized object ‘sptSet’ may not be initialized bool sptSet[N]={false}; ^ user.cpp:56:61: error: ‘INT_MAX’ was not declared in this scope if (!sptSet[k] && length[u][k] && length[i][u] != INT_MAX && length[i][u]+length[u][k] < length[i][k]) ^ user.cpp: In function ‘int minDistance(bool*)’: user.cpp:19:2: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?