Pagini recente » Borderou de evaluare (job #954950) | Borderou de evaluare (job #2949385) | Borderou de evaluare (job #2906719) | Borderou de evaluare (job #2517805) | Borderou de evaluare (job #2580895)
Borderou de evaluare (job #2580895)
Raport evaluator
Compilare:
main.cpp: In member function 'void Trie::insert(std::__cxx11::string&)':
main.cpp:28:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(short i = 0; i < s.size(); ++i) {
~~^~~~~~~~~~
main.cpp:30:27: warning: array subscript has type 'char' [-Wchar-subscripts]
if(curr->nxt[c] == 0) {
^
main.cpp:31:28: warning: array subscript has type 'char' [-Wchar-subscripts]
curr->nxt[c] = new Node();
^
main.cpp:33: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:47:27: warning: array subscript has type 'char' [-Wchar-subscripts]
if(curr->nxt[c] != 0 && i <= j) {
^
main.cpp:49:35: warning: array subscript has type 'char' [-Wchar-subscripts]
curr = curr->nxt[c];
^
main.cpp: In function 'int main()':
main.cpp:83: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 | 27ms | 393kb | OK | 10 |
2 | 37ms | 262kb | OK | 10 |
3 | 28ms | 393kb | OK | 10 |
4 | 24ms | 2097kb | OK | 10 |
5 | 29ms | 6684kb | OK | 10 |
6 | 33ms | 6684kb | OK | 10 |
7 | 37ms | 6684kb | OK | 10 |
8 | 156ms | 65552kb | Memory limit exceeded | 0 |
9 | 155ms | 65552kb | Memory limit exceeded | 0 |
10 | 400ms | 11665kb | Time limit exceeded | 0 |
Punctaj total | 70 |