Borderou de evaluare (job #2302307)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 14 decembrie 2018 09:56:07
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c:6:5: error: unknown type name 'R' R *u; ^ main.c:8:1: error: unknown type name 'P' P *g[N],*p ^ main.c:8:4: error: variably modified 'g' at file scope P *g[N],*p ^ main.c:9:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void' void A(P *p,int b,int c) ^~~~ main.c:14:21: error: variably modified 'd' at file scope int m,n,i,j,k,l,r,p,d[N]={N},e[1500000],a,b,c,v[50001],u[50001]; ^ main.c:14:27: error: initializer element is not constant int m,n,i,j,k,l,r,p,d[N]={N},e[1500000],a,b,c,v[50001],u[50001]; ^ main.c:14:27: note: (near initialization for 'd[0]') main.c: In function 'main': main.c:18:34: warning: implicit declaration of function 'A' [-Wimplicit-function-declaration] scanf("%d%d%d",&a,&b,&c),A(g[a],b,c); ^ main.c:20:30: warning: assignment makes integer from pointer without a cast [-Wint-conversion] for(j=e[l++],v[j]=0,p=g[j];p&&!k;p=p->u) ^ main.c:20:45: error: invalid type argument of '->' (have 'int') for(j=e[l++],v[j]=0,p=g[j];p&&!k;p=p->u) ^~ main.c:21:19: error: invalid type argument of '->' (have 'int') if(d[p->x]>d[j]+p->y) ^~ main.c:21:30: error: invalid type argument of '->' (have 'int') if(d[p->x]>d[j]+p->y) ^~ main.c:23:20: error: invalid type argument of '->' (have 'int') d[p->x]=d[j]+p->y; ^~ main.c:23:31: error: invalid type argument of '->' (have 'int') d[p->x]=d[j]+p->y; ^~ main.c:24:24: error: invalid type argument of '->' (have 'int') if(!v[p->x]) ^~ main.c:25:27: error: invalid type argument of '->' (have 'int') if(u[p->x]>n) ^~ main.c:28:33: error: invalid type argument of '->' (have 'int') e[r++]=p->x,v[p->x]=1,u[p->x]++; ^~ Non zero exit status: 1

Ceva nu functioneaza?