Borderou de evaluare (job #2490007)

Utilizator KataIsache Catalina Kata Data 9 noiembrie 2019 16:03:22
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void Lg(trie*, char*)': main.cpp:46:13: warning: NULL used in arithmetic [-Wpointer-arith] if(*it==NULL || t->child[ch] == false) ^~~~ main.cpp:46:32: warning: array subscript has type 'char' [-Wchar-subscripts] if(*it==NULL || t->child[ch] == false) ^ main.cpp:51:19: warning: array subscript has type 'char' [-Wchar-subscripts] Lg(t->child[ch], it+1); ^ main.cpp: In function 'int Cnt(trie*, char*)': main.cpp:56:13: warning: NULL used in arithmetic [-Wpointer-arith] if(*it==NULL) ^~~~ main.cpp:58:19: warning: array subscript has type 'char' [-Wchar-subscripts] if(t->child[ch] == false) ^ main.cpp:62:27: warning: array subscript has type 'char' [-Wchar-subscripts] return Cnt(t->child[ch], it+1); ^ main.cpp: In function 'void Del(trie*, char*)': main.cpp:65:13: warning: NULL used in arithmetic [-Wpointer-arith] if(*it==NULL){ ^~~~ main.cpp:71:20: warning: array subscript has type 'char' [-Wchar-subscripts] Del(t->child[ch], it+1); ^ main.cpp:73:19: warning: array subscript has type 'char' [-Wchar-subscripts] if(t->child[ch]->nrchild == 0 && t->child[ch]->nr == 0){ ^ main.cpp:73:49: warning: array subscript has type 'char' [-Wchar-subscripts] if(t->child[ch]->nrchild == 0 && t->child[ch]->nr == 0){ ^ main.cpp:75:27: warning: array subscript has type 'char' [-Wchar-subscripts] delete t->child[ch]; ^ main.cpp:76:20: warning: array subscript has type 'char' [-Wchar-subscripts] t->child[ch]=0; ^ main.cpp: In function 'void Add(trie*, char*)': main.cpp:80:13: warning: NULL used in arithmetic [-Wpointer-arith] if(*it==NULL){ ^~~~ main.cpp:87:19: warning: array subscript has type 'char' [-Wchar-subscripts] if(t->child[ch] == false){ ^ main.cpp:88:20: warning: array subscript has type 'char' [-Wchar-subscripts] t->child[ch]= new trie; ^ main.cpp:92:20: warning: array subscript has type 'char' [-Wchar-subscripts]
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK55
22ms131kbOK55
33ms131kbOK55
43ms131kbOK55
53ms131kbOK55
64ms131kbOK55
79ms270kbOK55
86ms262kbOK55
913ms524kbOK55
1031ms1548kbOK55
1117ms262kbOK55
1264ms2985kbOK55
1346ms2490kbOK55
1469ms761kbOK55
1587ms765kbOK510
16143ms20316kbOK5
1775ms262kbOK510
18149ms14905kbOK5
1959ms262kbOK510
20157ms27262kbOK5
Punctaj total100

Ceva nu functioneaza?