Borderou de evaluare (job #1472551)
| Utilizator | Data | 17 august 2015 12:37:53 | |
|---|---|---|---|
| Problema | Arbore partial de cost minim | Status | done |
| Runda | Arhiva educationala | Compilator | c | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.c:5:2: error: unknown type name ‘T’
T *U;
^
user.c:30:11: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
void P(N *&q,int x,int y) {
^
user.c: In function ‘M’:
user.c:34:58: warning: operation on ‘h[l]’ may be undefined [-Wsequence-point]
void M(int l,int k) { for(d[h[l]]=k;l>1&&d[h[l/2]]>k;h[l]^=h[l/2]^=h[l]^=h[l/2],w[h[l]]=l,w[h[l/2]]=l/2,l/=2); }
^
user.c: In function ‘main’:
user.c:38:6: warning: implicit declaration of function ‘P’ [-Wimplicit-function-declaration]
scanf("%d%d%d",&i,&j,&k),P(g[i],j,k),P(g[j],i,k);
^
user.c:42:46: warning: assignment from incompatible pointer type [enabled by default]
for(i=h[1],l[i]=1,D(&j,w[i]),p=g[i];p;p=p->U)
^
user.c:36:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("apm.in","r",stdin),freopen("apm.out","w",stdout),scanf("%d%d",&n,&m);
^
user.c:36:37: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("apm.in","r",stdin),freopen("apm.out","w",stdout),scanf("%d%d",&n,&m);
^
user.c:36:65: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
freopen("apm.in","r",stdin),freopen("apm.out","w",stdout),scanf("%d%d",&n,&m);
^
user.c:38:11: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&i,&j,&k),P(g[i],j,k),P(g[j],i,k);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
