Borderou de evaluare (job #642083)
| 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 17:52:23 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:8:20: error: invalid operands to binary & (have 'char *' and 'int')
8 | fscanf(fin, "%d" &n);
| ~~~~ ^
| |
| char *
main.c:12:19: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
12 | fscanf(fin, "%d" , bara);
| ~^ ~~~~
| | |
| | int
| int *
main.c:15:14: error: 'm' undeclared (first use in this function)
15 | for(i=0; i<m; i++){
| ^
main.c:15:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf(fin, "%d" , bara);
| ^~~~~~~~~~~~~~~~~~~~~~~~
main.c:16:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | fscanf(fin, "%d %d %d %d" ,&a, &b, &c, &d);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~