Borderou de evaluare (job #681514)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Agenda (baraj gimnaziu) | Compilator | c-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 12 dec. 2022 18:46:56 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:73:1: error: unknown type name 'Date'; use 'struct' keyword to refer to the type
73 | Date inregistrare() {
| ^~~~
| struct
main.c: In function 'inregistrare':
main.c:74:3: error: unknown type name 'Date'; use 'struct' keyword to refer to the type
74 | Date raspuns;
| ^~~~
| struct
main.c:75:10: error: request for member 'in' in something not a structure or union
75 | raspuns.in = data();
| ^
main.c:77:10: error: request for member 'sf' in something not a structure or union
77 | raspuns.sf = data();
| ^
main.c: In function 'main':
main.c:101:14: error: incompatible types when assigning to type 'struct Date' from type 'int'
101 | v[n++] = inregistrare();
| ^~~~~~~~~~~~
main.c:97:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
97 | fscanf(fin, "%d\n", &cer);
| ^~~~~~~~~~~~~~~~~~~~~~~~~