Borderou de evaluare (job #1472594)
Utilizator | Data | 17 august 2015 13:25:07 | |
---|---|---|---|
Problema | Cele mai apropiate puncte din plan | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘D’:
user.c:19:18: error: subscripted value is neither array nor pointer nor vector
if(j>q||(i<=m&&a[i].x<a[j].x))
^
user.c:19:25: error: subscripted value is neither array nor pointer nor vector
if(j>q||(i<=m&&a[i].x<a[j].x))
^
user.c:20:17: error: subscripted value is neither array nor pointer nor vector
d[k++]=a[i++];
^
user.c:22:17: error: subscripted value is neither array nor pointer nor vector
d[k++]=a[j++];
^
user.c:24:17: error: subscripted value is neither array nor pointer nor vector
if(abs(d[i].x-a[m].x)<=r)
^
user.c:25:10: error: subscripted value is neither array nor pointer nor vector
b[++j].x=d[i].y,b[j].y=d[i].x;
^
user.c:25:26: error: subscripted value is neither array nor pointer nor vector
b[++j].x=d[i].y,b[j].y=d[i].x;
^
user.c:25:24: warning: left-hand operand of comma expression has no effect [-Wunused-value]
b[++j].x=d[i].y,b[j].y=d[i].x;
^
user.c:28:19: error: subscripted value is neither array nor pointer nor vector
r=r>(c=B(b[i],b[k]))?c:r;
^
user.c:28:24: error: subscripted value is neither array nor pointer nor vector
r=r>(c=B(b[i],b[k]))?c:r;
^
user.c: In function ‘main’:
user.c:32:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cmap.in","r",stdin),freopen("cmap.out","w",stdout),scanf("%d",&n);
^
user.c:32:38: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cmap.in","r",stdin),freopen("cmap.out","w",stdout),scanf("%d",&n);
^
user.c:32:67: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cmap.in","r",stdin),freopen("cmap.out","w",stdout),scanf("%d",&n);
^
user.c:34:11: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld",&a[i].x,&a[i].y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !