Borderou de evaluare (job #662362)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Date (clasa a 6-a) | Compilator | c-32 |
| Rundă | Tema 1 clasa a 6-a | Status | evaluat |
| Dată | 18 sept. 2022 16:10:50 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:8:22: error: conflicting types for 'zile1'; have 'long long int'
8 | long long x, a2, zile1, zile2;
| ^~~~~
main.c:7:38: note: previous declaration of 'zile1' with type 'int'
7 | int z1, l1, a1, z2, l2, ab1, ab2,zile1, zile2, i ;
| ^~~~~
main.c:8:29: error: conflicting types for 'zile2'; have 'long long int'
8 | long long x, a2, zile1, zile2;
| ^~~~~
main.c:7:45: note: previous declaration of 'zile2' with type 'int'
7 | int z1, l1, a1, z2, l2, ab1, ab2,zile1, zile2, i ;
| ^~~~~
main.c:11:29: warning: format '%d' expects argument of type 'int *', but argument 8 has type 'long long int *' [-Wformat=]
11 | fscanf(fin, "%d%d%d%d%d%d", &z1, &l1, &a1, &z2, &l2, &a2);
| ~^ ~~~
| | |
| int * long long int *
| %lld
main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | fscanf(fin, "%d%d%d%d%d%d", &z1, &l1, &a1, &z2, &l2, &a2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~