Borderou de evaluare (job #2392519)

Utilizator Valentin0709Datcu George Valentin Valentin0709 Data 30 martie 2019 09:38:41
Problema Concurs Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 40

Raport evaluator

Compilare: main.cpp: In function 'void df(int, int)': main.cpp:29:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < v[q].size(); i++) { ~~^~~~~~~~~~~~~ main.cpp: In function 'void precalc()': main.cpp:42:29: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] if(h[d[i + (1<<j-1)][j - 1]] < h[d[i][j - 1]]) d[i][j] = d[i + (1<<j-1)][j - 1]; ~^~ main.cpp:42:81: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] if(h[d[i + (1<<j-1)][j - 1]] < h[d[i][j - 1]]) d[i][j] = d[i + (1<<j-1)][j - 1]; ~^~ main.cpp: In function 'void citire()': main.cpp:16:30: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d%d", &n, &m); ^ main.cpp:17:58: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] for(int i = 1; i <= n; i++) fscanf(f, "%d", &scor[i]); ^ main.cpp:20:35: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d%d", &t, &fi); ^ main.cpp: In function 'void rezolvare()': main.cpp:57:36: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d%d", &e1, &e2); ^ main.cpp:68:44: warning: 'e2w' may be used uninitialized in this function [-Wmaybe-uninitialized] else if(s == smax && e1 == e1w && e2 < e2w) { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ main.cpp:68:31: warning: 'e1w' may be used uninitialized in this function [-Wmaybe-uninitialized] else if(s == smax && e1 == e1w && e2 < e2w) { ~~~~~~~~~~^~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
15ms1703kbOK10
25ms1703kbOK10
37ms2097kbOK10
410ms1703kbIncorect0
510ms1703kbIncorect0
624ms1835kbIncorect0
7492ms28966kbOK10
835ms2097kbIncorect0
9212ms2359kbIncorect0
10312ms2359kbIncorect0
Punctaj total40

Ceva nu functioneaza?