Borderou de evaluare (job #1483954)
Utilizator | Data | 10 septembrie 2015 10:50:18 | |
---|---|---|---|
Problema | Plopi | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:14:78: error: expected ‘)’ before ‘;’ token
z[i]=(int*)malloc(w[i]*sizeof(int),h[i]=(int*)malloc(w[i]*sizeof(int));
^
user.c:20:1: error: too many arguments to function ‘malloc’
}
^
user.c:20:1: error: expected ‘;’ before ‘}’ token
user.c:10:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("plopi.in","r",stdin),freopen("plopi.out","w",stdout),scanf("%d",&n);
^
user.c:10:39: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("plopi.in","r",stdin),freopen("plopi.out","w",stdout),scanf("%d",&n);
^
user.c:10:69: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
freopen("plopi.in","r",stdin),freopen("plopi.out","w",stdout),scanf("%d",&n);
^
user.c:12:13: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",a+i,b+i,c+i),w[a[i]]++,w[b[i]]++;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !