Borderou de evaluare (job #1472453)
Utilizator | Data | 17 august 2015 07:35:41 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:8:32: error: ‘g’ undeclared (first use in this function)
scanf("%d%d%d",&i,&j,&c),g[i][w[i]++]=j,h[i][j]=c;
^
user.c:8:32: note: each undeclared identifier is reported only once for each function it appears in
user.c:8:37: error: ‘w’ undeclared (first use in this function)
scanf("%d%d%d",&i,&j,&c),g[i][w[i]++]=j,h[i][j]=c;
^
user.c:8:47: error: ‘h’ undeclared (first use in this function)
scanf("%d%d%d",&i,&j,&c),g[i][w[i]++]=j,h[i][j]=c;
^
user.c:8:46: warning: left-hand operand of comma expression has no effect [-Wunused-value]
scanf("%d%d%d",&i,&j,&c),g[i][w[i]++]=j,h[i][j]=c;
^
user.c:12:38: warning: left-hand operand of comma expression has no effect [-Wunused-value]
d[g[j][i]]=d[j]+h[j][g[j][i]],e[r++]=h[j][g[j][i]];
^
user.c:4:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bellmanford.in","r",stdin),freopen("bellmanford.out","w",stdout),scanf("%d%d",&n,&m);
^
user.c:4:45: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bellmanford.in","r",stdin),freopen("bellmanford.out","w",stdout),scanf("%d%d",&n,&m);
^
user.c:4:81: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bellmanford.in","r",stdin),freopen("bellmanford.out","w",stdout),scanf("%d%d",&n,&m);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !