Borderou de evaluare (job #2202521)
Utilizator | Data | 8 mai 2018 22:46:16 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:4:33: error: ‘r’ undeclared (first use in this function)
FILE *in = fopen("adunare.in", r);
^
user.c:4:33: note: each undeclared identifier is reported only once for each function it appears in
user.c:5:35: error: ‘w’ undeclared (first use in this function)
FILE *out = fopen("adunare.out", w);
^
user.c:8:15: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=]
fscanf(in, "%d", a);
^
user.c:9:15: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=]
fscanf(in, "%d", b);
^
user.c:8:2: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d", a);
^~~~~~~~~~~~~~~~~~~
user.c:9:2: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d", b);
^~~~~~~~~~~~~~~~~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !