Pagini recente » Borderou de evaluare (job #2952948) | Borderou de evaluare (job #422169) | Borderou de evaluare (job #2372917) | Borderou de evaluare (job #2999510) | Borderou de evaluare (job #2580941)
Borderou de evaluare (job #2580941)
Raport evaluator
Compilare:
main.cpp: In member function 'void Trie::insert(std::__cxx11::string&)':
main.cpp:24:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(short i = 0; i < s.size(); ++i) {
~~^~~~~~~~~~
main.cpp:26:27: warning: array subscript has type 'char' [-Wchar-subscripts]
if(curr->nxt[c] == 0) {
^
main.cpp:27:28: warning: array subscript has type 'char' [-Wchar-subscripts]
curr->nxt[c] = new Node();
^
main.cpp:29:31: warning: array subscript has type 'char' [-Wchar-subscripts]
curr = curr->nxt[c];
^
main.cpp: In member function 'void Trie::count(std::__cxx11::string&, int, int)':
main.cpp:41:27: warning: array subscript has type 'char' [-Wchar-subscripts]
if(curr->nxt[c] != 0 && i <= j) {
^
main.cpp:43:35: warning: array subscript has type 'char' [-Wchar-subscripts]
curr = curr->nxt[c];
^
main.cpp: In function 'int main()':
main.cpp:74:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < S.size(); ++i) {
~~^~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 70ms | 393kb | OK | 10 |
2 | 120ms | 262kb | OK | 10 |
3 | 16ms | 393kb | OK | 10 |
4 | 53ms | 1835kb | OK | 10 |
5 | 74ms | 6684kb | OK | 10 |
6 | 91ms | 6684kb | OK | 10 |
7 | 111ms | 6684kb | OK | 10 |
8 | 171ms | 65552kb | Memory limit exceeded | 0 |
9 | 163ms | 65552kb | Memory limit exceeded | 0 |
10 | 277ms | 11665kb | OK | 10 |
Punctaj total | 80 |