Borderou de evaluare (job #2210943)

Utilizator memecoinMeme Coin memecoin Data 8 iunie 2018 18:14:18
Problema Text3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 55

Raport evaluator

Compilare: user.cpp: In function ‘int solve(int)’: user.cpp:48:74: warning: array subscript has type ‘char’ [-Wchar-subscripts] int startIndex = binarySearchStartIndex(last, i, 0, nextCharIndices[last].size() - 1); ^ user.cpp:50:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] int size = nextCharIndices[last].size() - 1; ^ user.cpp:54:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] int candidate = solve(nextCharIndices[last][startIndex]); ^ user.cpp:57:36: warning: array subscript has type ‘char’ [-Wchar-subscripts] child[i] = nextCharIndices[last][startIndex]; ^ user.cpp: In function ‘int main()’: user.cpp:74:31: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[20]’ [-Wformat=] code = scanf("%s", &words[n]); ^ user.cpp:68: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:69: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
10ms884kbPartial incorect1
20ms820kbCorect10
30ms756kbCorect10
40ms756kbCorect10
54ms1000kbPartial incorect1
64ms1112kbCorect10
70ms876kbCorect10
812ms1568kbPartial incorect1
90ms860kbPartial incorect1
100ms868kbPartial incorect1
Punctaj total55

Ceva nu functioneaza?