Borderou de evaluare (job #634280)

Utilizator avatar divaddd David Curca divaddd IP ascuns
Problemă Divizori (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 20 feb. 2022 17:03:06 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:49:9: error: 'prim' was not declared in this scope; did you mean 'prime'? 49 | prim[++cnt] = 2; | ^~~~ | prime main.cpp:92:14: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 92 | if(n == val){ | ~~^~~~~~ main.cpp:56:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 56 | fscanf(fin, "%d%d\n", &n, &k); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:58:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 58 | fscanf(fin, "%c", &c); | ~~~~~~^~~~~~~~~~~~~~~