Pagini recente » Borderou de evaluare (job #3216145) | Borderou de evaluare (job #2089550) | Borderou de evaluare (job #3039489) | Borderou de evaluare (job #67229) | Borderou de evaluare (job #2722341)
Borderou de evaluare (job #2722341)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:34:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.size(); i++)
~~^~~~~~~~~~
main.cpp:35:17: warning: array subscript has type 'char' [-Wchar-subscripts]
pos[s[i]].push_back(i);
^
main.cpp:46:26: warning: array subscript has type 'char' [-Wchar-subscripts]
if (pos[c].empty()) {
^
main.cpp:51:50: warning: array subscript has type 'char' [-Wchar-subscripts]
int firstPos = binarySearch(pos[c], prevPos);
^
main.cpp:52:28: warning: array subscript has type 'char' [-Wchar-subscripts]
if (s[pos[c][firstPos]] == c && pos[c][firstPos] >= prevPos && firstPos + k - 1 < pos[c].size())
^
main.cpp:52:54: warning: array subscript has type 'char' [-Wchar-subscripts]
if (s[pos[c][firstPos]] == c && pos[c][firstPos] >= prevPos && firstPos + k - 1 < pos[c].size())
^
main.cpp:52:104: warning: array subscript has type 'char' [-Wchar-subscripts]
if (s[pos[c][firstPos]] == c && pos[c][firstPos] >= prevPos && firstPos + k - 1 < pos[c].size())
^
main.cpp:52:97: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (s[pos[c][firstPos]] == c && pos[c][firstPos] >= prevPos && firstPos + k - 1 < pos[c].size())
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
main.cpp:53:36: warning: array subscript has type 'char' [-Wchar-subscripts]
prevPos = pos[c][firstPos + k - 1];
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 3ms | 131kb | Incorect | 0 | 0 |
2 | 3ms | 131kb | Incorect | 0 |
3 | 703ms | 393kb | Time limit exceeded | 0 | 0 |
4 | 701ms | 262kb | Time limit exceeded | 0 |
5 | 701ms | 393kb | Time limit exceeded | 0 | 0 |
6 | 701ms | 524kb | Time limit exceeded | 0 |
7 | 701ms | 393kb | Time limit exceeded | 0 |
8 | 703ms | 1171kb | Time limit exceeded | 0 | 0 |
9 | 700ms | 1171kb | Time limit exceeded | 0 |
10 | 700ms | 917kb | Time limit exceeded | 0 |
Punctaj total | 0 |