Borderou de evaluare (job #1433874)
Utilizator | Data | 10 mai 2015 03:00:23 | |
---|---|---|---|
Problema | Parcele | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:26:2: error: too many arguments to function ‘compute’
compute(ysy, xsy, xsx, px, dy, &max2, 0);
^
user.c:18:6: note: declared here
void compute(long[], long[], long[], long[], long, long*);
^
user.c:27:2: error: too many arguments to function ‘compute’
compute(xsx, ysx, ysy, py, dx, &max1, 1);
^
user.c:18:6: note: declared here
void compute(long[], long[], long[], long[], long, long*);
^
user.c: In function ‘buildtree’:
user.c:137:16: warning: unused variable ‘p’ [-Wunused-variable]
long i, j, k, p;
^
user.c: At top level:
user.c:264:6: error: conflicting types for ‘compute’
void compute(long x[], long y[], long search[], long poz[], long dim, long *max, int t)
^
user.c:18:6: note: previous declaration of ‘compute’ was here
void compute(long[], long[], long[], long[], long, long*);
^
user.c: In function ‘compute’:
user.c:266:16: warning: unused variable ‘p’ [-Wunused-variable]
long i, j, k, p;
^
user.c: In function ‘readdata’:
user.c:35:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen(filein, "r", stdin);
^
user.c:36:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld %ld", &dx, &dy, &n);
^
user.c:39:8: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld", &xsx[i], &ysx[i]);
^
user.c: In function ‘outputdata’:
user.c:330:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen(fileout, "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !