Borderou de evaluare (job #772128)

Utilizator avatar popescu_george Popescu George popescu_george IP ascuns
Problemă Flori1 (răzbunarea florilor lui Teodor Plop) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 5 apr. 2024 07:10:44 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:39:15: error: cannot convert 'short int*' to 'int*' 39 | readInt(&mat[i][j], fin); | ^~~~~~~~~~ | | | short int* main.cpp:14:19: note: initializing argument 1 of 'void readInt(int*, FILE*)' 14 | void readInt(int *n, FILE *fin){ | ~~~~~^ main.cpp:36:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 36 | fscanf(fin, "%d%d\n", &n, &m); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:41:10: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 41 | }fscanf(fin, "%d\n", &z); | ~~~~~~^~~~~~~~~~~~~~~~~