Borderou de evaluare (job #1241523)

Utilizator j.loves_rockJessica Joanne Patrascu j.loves_rock Data 13 octombrie 2014 18:31:49
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void d(int)’: user.cpp:6:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;++i) ^ user.cpp:6:16: error: ‘n’ was not declared in this scope for(i=1;i<=n;++i) ^ user.cpp:7:13: error: ‘inf’ was not declared in this scope d[i]=inf; ^ user.cpp:8:10: error: ‘i’ was not declared in this scope for (i=1;i<=n;++i) ^ user.cpp:8:17: error: ‘n’ was not declared in this scope for (i=1;i<=n;++i) ^ user.cpp:10:9: error: ‘mi’ was not declared in this scope mi=inf; ^ user.cpp:10:12: error: ‘inf’ was not declared in this scope mi=inf; ^ user.cpp:11:14: error: ‘j’ was not declared in this scope for (j=1;i<=n;++j) ^ user.cpp:12:13: error: ‘min’ was not declared in this scope if (min>d[j] && !sel[j]) ^ user.cpp:12:26: error: ‘sel’ was not declared in this scope if (min>d[j] && !sel[j]) ^ user.cpp:15:13: error: ‘k’ was not declared in this scope k=j; ^ user.cpp:17:9: error: ‘sel’ was not declared in this scope sel[k]=true; ^ user.cpp:17:13: error: ‘k’ was not declared in this scope sel[k]=true; ^ user.cpp:18:14: error: ‘j’ was not declared in this scope for (j=1;j<=n;++j) ^ user.cpp:19:23: error: ‘a’ was not declared in this scope if (d[j]>d[k]+a[k][j]) ^ user.cpp:22:13: error: ‘t’ was not declared in this scope t[j]=k; ^ user.cpp: In function ‘int main()’:

Ceva nu functioneaza?