Borderou de evaluare (job #2252223)

Utilizator AlexandruabcdeDobleaga Alexandru Alexandruabcde Data 2 octombrie 2018 16:16:27
Problema Balbaiala Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘bool ok(int)’: user.cpp:15:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] int poz = v[aux[0]][0], step, j, r = 0; ^ user.cpp:18:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (r + grad - 1 < v[aux[i-1]].size()) ^ user.cpp:18:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (r + grad - 1 < v[aux[i-1]].size()) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ user.cpp:20:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] poz = v[aux[i-1]][r + grad - 1]; ^ user.cpp:25:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] while (step < v[aux[i]].size() - 1) step <<= 1; ^ user.cpp:25:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (step < v[aux[i]].size() - 1) step <<= 1; ~~~~~^~~~~~~~~~~~~~~~~~~~~~ user.cpp:29:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (j + step <= v[aux[i]].size() - 1 && v[aux[i]][j + step] <= poz) ^ user.cpp:29:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (j + step <= v[aux[i]].size() - 1 && v[aux[i]][j + step] <= poz) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ user.cpp:29:61: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (j + step <= v[aux[i]].size() - 1 && v[aux[i]][j + step] <= poz) ^ user.cpp:35:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (v[aux[i]][j] <= poz) ^ user.cpp:42:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (r + grad - 1 >= v[aux[m-1]].size()) ^ user.cpp:42:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (r + grad - 1 >= v[aux[m-1]].size()) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ user.cpp: In function ‘int main()’: user.cpp:75:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[s[i]].push_back(i); ^ user.cpp: In function ‘int cb()’: user.cpp:67:12: warning: ‘ind’ may be used uninitialized in this function [-Wmaybe-uninitialized] return ind; ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms1340kbOK1020
20ms1336kbOK10
38ms1372kbOK1020
412ms1400kbOK10
5192ms1496kbOK1030
6320ms1496kbOK10
7436ms1492kbOK10
8588ms2024kbOK1030
9372ms2028kbOK10
10500ms1964kbOK10
Punctaj total100

Ceva nu functioneaza?