Borderou de evaluare (job #618173)

Utilizator avatar teodor94 Teodor Plop teodor94 IP ascuns
Problemă Multe Sume (clasa a 10-a) Compilator cpp-32
Rundă Status evaluat
Dată 26 nov. 2021 19:37:29 Scor ascuns

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:70:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 70 | if ( (n - pa + 1) * (n - pb + 1) > npair ) // ajustam | ^ main.cpp:50:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 50 | fscanf( fin, "%d%d", &n, &k ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:52:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 52 | fscanf( fin, "%d", &a[i] ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~ main.cpp:54:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 54 | fscanf( fin, "%d", &b[i] ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~