Borderou de evaluare (job #1515178)

Utilizator NightSilentIridon Stefan NightSilent Data 1 noiembrie 2015 11:26:19
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:13:18: error: expected ‘]’ before ‘,’ token int n,m,s,d[50001,t[50001],h[50001,poz[50001],nh,u[50001]; ^ user.cpp:13:35: error: expected ‘]’ before ‘,’ token int n,m,s,d[50001,t[50001],h[50001,poz[50001],nh,u[50001]; ^ user.cpp: In function ‘void swap(int, int)’: user.cpp:39:7: error: ‘h’ was not declared in this scope t=h[i]; ^ user.cpp: In function ‘void heap_dw(int, int)’: user.cpp:50:12: error: ‘h’ was not declared in this scope st=h[2*r+1]; ^ user.cpp:59:13: error: ‘d’ was not declared in this scope if (d[h[r]]>d[h[i]]) ^ user.cpp: In function ‘void heap_up(int)’: user.cpp:72:9: error: ‘d’ was not declared in this scope if (d[h[k]]<d[h[t]]) ^ user.cpp:72:11: error: ‘h’ was not declared in this scope if (d[h[k]]<d[h[t]]) ^ user.cpp: In function ‘int scoate_heap()’: user.cpp:88:9: error: ‘h’ was not declared in this scope poz[h[nh-1]]=0; ^ user.cpp: In function ‘void dijkstra(int)’: user.cpp:96:12: error: ‘d’ was not declared in this scope memset(d,0x3f,sizeof(d)); ^ user.cpp:100:9: error: ‘h’ was not declared in this scope h[i]=i+1; ^ user.cpp: In function ‘int main()’: user.cpp:125:13: error: ‘d’ was not declared in this scope if (d[i]!=0x3f) ^ user.cpp: In function ‘int scoate_heap()’: user.cpp:92:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?