Borderou de evaluare (job #1816394)
Utilizator | Data | 26 noiembrie 2016 13:54:57 | |
---|---|---|---|
Problema | Checkin | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘construct’:
user.c:7:9: error: ‘i’ undeclared (first use in this function)
for(i=0;i<n;i++)
^
user.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
user.c:8:9: error: ‘cstrct’ undeclared (first use in this function)
cstrct[i]=(p-v[i][1])/v[i][0];
^
user.c:9:5: warning: implicit declaration of function ‘sort’ [-Wimplicit-function-declaration]
sort(cstrct, cstrct+n);
^
user.c: In function ‘verif’:
user.c:17:12: error: ‘cstrct’ undeclared (first use in this function)
p-=cstrct[i];
^
user.c:13:14: warning: unused variable ‘nr’ [-Wunused-variable]
int i=1, nr=0;
^
user.c: In function ‘main’:
user.c:43:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &n);
^
user.c:45:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d%d", &v[i][0], &v[i][1]);
^
user.c:46:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d%d", &k, &p);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !