Borderou de evaluare (job #2324831)

Utilizator DragosArseneDragos Arsene DragosArsene Data 21 ianuarie 2019 16:35:18
Problema Antivirus Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:84:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0;j<rucsac[1].size();j++){ ~^~~~~~~~~~~~~~~~~ main.cpp:101:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(q=0;q<rucsac[l].size();q++){ ~^~~~~~~~~~~~~~~~~ main.cpp:13:32: warning: variable 'capatdr' set but not used [-Wunused-but-set-variable] int n, i, j, t, nr_0=0, k, capatdr, capatstg, itstg, itdr, cost_0, pret_curent, nr_obiecte=0, l, q, aux, cost, pret, xdp, ydp; ^~~~~~~ main.cpp:13:41: warning: variable 'capatstg' set but not used [-Wunused-but-set-variable] int n, i, j, t, nr_0=0, k, capatdr, capatstg, itstg, itdr, cost_0, pret_curent, nr_obiecte=0, l, q, aux, cost, pret, xdp, ydp; ^~~~~~~~ main.cpp:13:85: warning: unused variable 'nr_obiecte' [-Wunused-variable] int n, i, j, t, nr_0=0, k, capatdr, capatstg, itstg, itdr, cost_0, pret_curent, nr_obiecte=0, l, q, aux, cost, pret, xdp, ydp; ^~~~~~~~~~ main.cpp:13:105: warning: variable 'aux' set but not used [-Wunused-but-set-variable] int n, i, j, t, nr_0=0, k, capatdr, capatstg, itstg, itdr, cost_0, pret_curent, nr_obiecte=0, l, q, aux, cost, pret, xdp, ydp; ^~~ main.cpp:13:110: warning: variable 'cost' set but not used [-Wunused-but-set-variable] int n, i, j, t, nr_0=0, k, capatdr, capatstg, itstg, itdr, cost_0, pret_curent, nr_obiecte=0, l, q, aux, cost, pret, xdp, ydp; ^~~~ main.cpp:13:116: warning: variable 'pret' set but not used [-Wunused-but-set-variable] int n, i, j, t, nr_0=0, k, capatdr, capatstg, itstg, itdr, cost_0, pret_curent, nr_obiecte=0, l, q, aux, cost, pret, xdp, ydp; ^~~~ main.cpp:13:122: warning: variable 'xdp' set but not used [-Wunused-but-set-variable] int n, i, j, t, nr_0=0, k, capatdr, capatstg, itstg, itdr, cost_0, pret_curent, nr_obiecte=0, l, q, aux, cost, pret, xdp, ydp; ^~~ main.cpp:13:127: warning: variable 'ydp' set but not used [-Wunused-but-set-variable] int n, i, j, t, nr_0=0, k, capatdr, capatstg, itstg, itdr, cost_0, pret_curent, nr_obiecte=0, l, q, aux, cost, pret, xdp, ydp; ^~~ main.cpp:18:21: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d", &t); ^ main.cpp:21:31: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d%d", &n, &k); ^ main.cpp:23:32: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d", &v[j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbIncorect0
22ms262kbIncorect0
32ms262kbOK10
47ms262kbIncorect0
58ms262kbIncorect0
661ms262kbIncorect0
760ms262kbIncorect0
847ms262kbIncorect0
957ms262kbIncorect0
1060ms262kbIncorect0
Punctaj total10

Ceva nu functioneaza?