Borderou de evaluare (job #642094)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Tăieri (clasa a 5-a) | Compilator | c-32 |
| Rundă | Concurs 07 | IQ Academy | clasa a 5-a | Status | evaluat |
| Dată | 19 mar. 2022 18:03:18 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:7:25: error: redeclaration of 'a' with no linkage
7 | int n, a, s = 0, m, a, b, c, d, i;
| ^
main.c:7:12: note: previous declaration of 'a' with type 'int'
7 | int n, a, s = 0, m, a, b, c, d, i;
| ^
main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fscanf(fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:12:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf(fin, "%d", &a);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:15:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | fscanf(fin, "%d", &m);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:17:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | fscanf(fin, "%d%d%d%d", &a, &b, &c, &d);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~