Borderou de evaluare (job #1343396)
Utilizator | Data | 15 februarie 2015 14:14:15 | |
---|---|---|---|
Problema | Convertor | Status | done |
Runda | rosedu_cdl_2015 | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:14:18: error: ‘l’ undeclared (first use in this function)
fread(&c,1,1,f);l[cont]=c;cont++;
^
user.c:14:18: note: each undeclared identifier is reported only once for each function it appears in
user.c:72:6: warning: unused variable ‘q’ [-Wunused-variable]
int q;
^
user.c:16:7: warning: variable ‘l’ set but not used [-Wunused-but-set-variable]
char l[2000000];
^
user.c:13:15: warning: unused variable ‘b’ [-Wunused-variable]
char c;int a,b,cont=0;
^
user.c:13:13: warning: unused variable ‘a’ [-Wunused-variable]
char c;int a,b,cont=0;
^
user.c:14:7: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&c,1,1,f);l[cont]=c;cont++;
^
user.c:19:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&c,1,1,f);l[cont]=c;cont++;
^
user.c:25:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&c,1,1,f);l[cont]=c;cont++;
^
user.c:29:11: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&c,1,1,f);l[cont]=c;cont++;
^
user.c:35:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&c,1,1,f);l[cont]=c;cont++;
^
user.c:43:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&c,1,1,f);l[cont]=c;cont++;
^
user.c:54:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&c,1,1,f);l[cont]=c;cont++;
^
user.c:63:13: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&c,1,1,f);l[cont]=c;cont++;
^
user.c:78:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&c,1,1,f);l[cont]=c;cont++;
^
user.c:84:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&c,1,1,f);l[cont]=c;cont++;
^
user.c:88:11: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&c,1,1,f);l[cont]=c;cont++;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !