Pagini recente » Borderou de evaluare (job #1851887) | Borderou de evaluare (job #2904635) | Borderou de evaluare (job #1400012) | Borderou de evaluare (job #1092254) | Borderou de evaluare (job #2371588)
Borderou de evaluare (job #2371588)
Raport evaluator
Compilare:
main.cpp: In constructor 'Trie::Trie()':
main.cpp:27:38: warning: passing NULL to non-pointer argument 2 of 'void* memset(void*, int, size_t)' [-Wconversion-null]
memset(son, NULL, sizeof(son));
^
main.cpp: In function 'void add(Trie*, int, const string&)':
main.cpp:36:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos == s.size())
~~~~^~~~~~~~~~~
main.cpp:40:25: warning: array subscript has type 'char' [-Wchar-subscripts]
if(node -> son[c] == NULL)
^
main.cpp:41:26: warning: array subscript has type 'char' [-Wchar-subscripts]
node -> son[c] = new Trie();
^
main.cpp:43:26: warning: array subscript has type 'char' [-Wchar-subscripts]
add(node -> son[c], pos + 1, s);
^
main.cpp: In function 'void del(Trie*, int, const string&)':
main.cpp:49:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos == s.size())
~~~~^~~~~~~~~~~
main.cpp:53:26: warning: array subscript has type 'char' [-Wchar-subscripts]
del(node -> son[c], pos + 1, s);
^
main.cpp: In function 'int query2(Trie*, int, const string&)':
main.cpp:58:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos == s.size())
~~~~^~~~~~~~~~~
main.cpp:62:21: warning: array subscript has type 'char' [-Wchar-subscripts]
if(node -> son[c] == NULL)
^
main.cpp:64:32: warning: array subscript has type 'char' [-Wchar-subscripts]
return query2(node -> son[c], pos + 1, s);
^
main.cpp: In function 'int query3(Trie*, int, const string&)':
main.cpp:68:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos == s.size())
~~~~^~~~~~~~~~~
main.cpp:72:21: warning: array subscript has type 'char' [-Wchar-subscripts]
if(node -> son[c] == NULL)
^
main.cpp:75:21: warning: array subscript has type 'char' [-Wchar-subscripts]
if(node -> son[c] -> pref == 0)
^
main.cpp:77:32: warning: array subscript has type 'char' [-Wchar-subscripts]
return query3(node -> son[c], pos + 1, s);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 2ms | 131kb | OK | 5 | 5 |
| 2 | 2ms | 131kb | OK | 5 | 5 |
| 3 | 3ms | 131kb | OK | 5 | 5 |
| 4 | 3ms | 131kb | OK | 5 | 5 |
| 5 | 3ms | 131kb | OK | 5 | 5 |
| 6 | 4ms | 131kb | OK | 5 | 5 |
| 7 | 6ms | 262kb | OK | 5 | 5 |
| 8 | 8ms | 262kb | OK | 5 | 5 |
| 9 | 13ms | 524kb | OK | 5 | 5 |
| 10 | 20ms | 1441kb | OK | 5 | 5 |
| 11 | 23ms | 262kb | OK | 5 | 5 |
| 12 | 43ms | 2883kb | OK | 5 | 5 |
| 13 | 49ms | 2359kb | OK | 5 | 5 |
| 14 | 47ms | 655kb | OK | 5 | 5 |
| 15 | 56ms | 655kb | OK | 5 | 10 |
| 16 | 142ms | 20316kb | OK | 5 |
| 17 | 53ms | 262kb | OK | 5 | 10 |
| 18 | 139ms | 15204kb | OK | 5 |
| 19 | 65ms | 393kb | OK | 5 | 0 |
| 20 | 111ms | 20496kb | Memory limit exceeded | 0 |
| Punctaj total | 90 |