Borderou de evaluare (job #557318)

Utilizator avatar kalkin Traian Omin kalkin IP ascuns
Problemă Romb (clasa a 6-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 27 mai 2020 13:38:10 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:12:16: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short int*' [-Wformat=] 12 | fscanf(in, "%d", &n); | ~^ ~~ | | | | | short int* | int* | %hd main.cpp:13:3: error: 's' was not declared in this scope 13 | s=""; | ^ main.cpp:12:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(in, "%d", &n); | ~~~~~~^~~~~~~~~~~~~~