Borderou de evaluare (job #2288211)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 22 noiembrie 2018 22:29:15
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:7: error: array bound is not an integer constant before ']' token G *g[N],*r; ^ main.cpp:10:16: error: array bound is not an integer constant before ']' token usi n,k,t,i,h[N],d[N],f,w,u,p[N]; ^ main.cpp:10:21: error: array bound is not an integer constant before ']' token usi n,k,t,i,h[N],d[N],f,w,u,p[N]; ^ main.cpp:10:32: error: array bound is not an integer constant before ']' token usi n,k,t,i,h[N],d[N],f,w,u,p[N]; ^ main.cpp: In function 'void S(short unsigned int, short unsigned int)': main.cpp:11:23: error: 'h' was not declared in this scope void S(usi a,usi b) { h[a]^=h[b]^=h[a]^=h[b]; } ^ main.cpp: In function 'void U(short unsigned int)': main.cpp:15:12: error: 'd' was not declared in this scope if(d[h[f]]<=d[h[w]]) ^ main.cpp:15:14: error: 'h' was not declared in this scope if(d[h[f]]<=d[h[w]]) ^ main.cpp:17:9: error: 'p' was not declared in this scope p[h[w]]=f,p[h[f]]=w,S(w,f),w=f; ^ main.cpp:17:11: error: 'h' was not declared in this scope p[h[w]]=f,p[h[f]]=w,S(w,f),w=f; ^ main.cpp: In function 'int main()': main.cpp:21:91: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short unsigned int*' [-Wformat=] freopen("dijkstra.in","r",stdin),freopen("dijkstra.out","w",stdout),scanf("%d%d",&n,&m); ^ main.cpp:23:32: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short unsigned int*' [-Wformat=] scanf("%d%d%d",&u,&w,&f); ^ main.cpp:23:32: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short unsigned int*' [-Wformat=] main.cpp:23:32: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'short unsigned int*' [-Wformat=] main.cpp:25:28: error: 'g' was not declared in this scope r->o=w,r->c=f,r->u=g[u],g[u]=r; ^ main.cpp:28:9: error: 'd' was not declared in this scope d[i]=p[i]=N; ^ main.cpp:28:14: error: 'p' was not declared in this scope d[i]=p[i]=N; ^ main.cpp:29:9: error: 'p' was not declared in this scope for(p[1]=h[++k]=1;k;) { ^ Non zero exit status: 1

Ceva nu functioneaza?