Borderou de evaluare (job #784398)

Utilizator avatar avram.popa Avram-Popa avram.popa IP ascuns
Problemă Kds (Lot Juniori) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 23 aug. 2024 15:25:13 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:37:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fin' 37 | fin=fopen("kds.in","r"); | ^~~ main.c:39:24: error: 'n' undeclared (first use in this function) 39 | fscanf(fin,"%d%d",&n,&k); | ^ main.c:39:24: note: each undeclared identifier is reported only once for each function it appears in main.c:42:22: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'short int *' [-Wformat=] 42 | fscanf(fin,"%d",&a[i]); | ~^ ~~~~~ | | | | | short int * | int * | %hd main.c:42:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 42 | fscanf(fin,"%d",&a[i]); | ^~~~~~~~~~~~~~~~~~~~~~