Borderou de evaluare (job #2288133)
| Utilizator | Data | 22 noiembrie 2018 21:18:47 | |
|---|---|---|---|
| Problema | Algoritmul lui Dijkstra | Status | done |
| Runda | Arhiva educationala | Compilator | c-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.c:5:5: error: unknown type name 'G'
G *u;
^
main.c:7:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
G *g[N],*r;
^
main.c:8:17: error: variably modified 'd' at file scope
int n,m,x,y,z,i,d[N]={I},q[N],p,u,t,v;
^
main.c:8:23: error: initializer element is not constant
int n,m,x,y,z,i,d[N]={I},q[N],p,u,t,v;
^
main.c:8:23: note: (near initialization for 'd[0]')
main.c:8:26: error: variably modified 'q' at file scope
int n,m,x,y,z,i,d[N]={I},q[N],p,u,t,v;
^
main.c: In function 'main':
main.c:13:9: error: 'r' undeclared (first use in this function)
r=new G;
^
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:11: error: 'new' undeclared (first use in this function)
r=new G;
^~~
main.c:13:15: error: expected ';' before 'G'
r=new G;
^
main.c:14:15: warning: left-hand operand of comma expression has no effect [-Wunused-value]
r->o=y,r->c=z,r->u=g[x],g[x]=r;
^
main.c:14:28: error: 'g' undeclared (first use in this function)
r->o=y,r->c=z,r->u=g[x],g[x]=r;
^
main.c:14:22: warning: left-hand operand of comma expression has no effect [-Wunused-value]
r->o=y,r->c=z,r->u=g[x],g[x]=r;
^
main.c:14:32: warning: left-hand operand of comma expression has no effect [-Wunused-value]
r->o=y,r->c=z,r->u=g[x],g[x]=r;
^
main.c:20:41: warning: left-hand operand of comma expression has no effect [-Wunused-value]
d[r->o]=(v>=50001?v-50001:v),q[u++]=r->o;
^
main.c:10:5: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.in","r",stdin),freopen("dijkstra.out","w",stdout),scanf("%d%d",&n,&m);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:10:38: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.in","r",stdin),freopen("dijkstra.out","w",stdout),scanf("%d%d",&n,&m);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:10:73: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.in","r",stdin),freopen("dijkstra.out","w",stdout),scanf("%d%d",&n,&m);
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
