Borderou de evaluare (job #1472535)
Utilizator | Data | 17 august 2015 12:17:44 | |
---|---|---|---|
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:7:15: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
int A(const P &p,const P &q) { return p.x<q.x||(p.x==q.x&&p.y<q.y); }
^
user.c: In function ‘main’:
user.c:31:22: error: ‘A’ undeclared (first use in this function)
qsort(a,n,sizeof(P),A);
^
user.c:31:22: note: each undeclared identifier is reported only once for each function it appears in
user.c:28: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:28: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:28: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:30: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 !