Borderou de evaluare (job #1472553)
| Utilizator | Data | 17 august 2015 12:38: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: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: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 !
