Borderou de evaluare (job #2210931)

Utilizator memecoinMeme Coin memecoin Data 8 iunie 2018 17:38:25
Problema Text3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 36

Raport evaluator

Compilare: user.cpp: In function ‘int solve(int)’: user.cpp:51:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (nextCharIndices[last].size() <= j) { ^ user.cpp:51:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (nextCharIndices[last].size() <= j) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ user.cpp:54:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (nextCharIndices[last][j] > i) { ^ user.cpp:61:71: warning: array subscript has type ‘char’ [-Wchar-subscripts] startIndex = binarySearchStartIndex(last, i, 0, nextCharIndices[last].size() - 1); ^ user.cpp:65:52: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (int j = startIndex; j < nextCharIndices[last].size(); ++j) { ^ user.cpp:65:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = startIndex; j < nextCharIndices[last].size(); ++j) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ user.cpp:66:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] int candidate = solve(nextCharIndices[last][j]); ^ user.cpp:69:36: warning: array subscript has type ‘char’ [-Wchar-subscripts] child[i] = nextCharIndices[last][j]; ^ user.cpp: In function ‘int main()’: user.cpp:86:31: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[20]’ [-Wformat=] code = scanf("%s", &words[n]); ^ user.cpp:99:6: warning: variable ‘bestIndex’ set but not used [-Wunused-but-set-variable] int bestIndex = 0; ^~~~~~~~~ user.cpp:80:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("text3.in", "r", stdin); ^ user.cpp:81:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("text3.out", "w", stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms856kbPartial incorect - reconstituire proasta4
24ms936kbPartial incorect - reconstituire proasta4
30ms860kbPartial incorect - reconstituire proasta4
40ms752kbPartial incorect - reconstituire proasta4
512ms1000kbPartial incorect - reconstituire proasta4
64ms1112kbPartial incorect - reconstituire proasta4
70ms880kbPartial incorect - reconstituire proasta4
8Depăşit1540kbTime limit exceeded.0
90ms764kbPartial incorect - reconstituire proasta4
100ms804kbPartial incorect - reconstituire proasta4
Punctaj total36

Ceva nu functioneaza?