Borderou de evaluare (job #2665138)

Utilizator SochuDarabaneanu Liviu Eugen Sochu Data 30 octombrie 2020 09:51:23
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 70

Raport evaluator

Compilare: main.cpp: In function 'void add(Trie*&, char*)': main.cpp:27:22: warning: array subscript has type 'char' [-Wchar-subscripts] if(nod -> alp[*ch] == NULL) ^ main.cpp:28:38: warning: array subscript has type 'char' [-Wchar-subscripts] ++nod -> let , nod -> alp[*ch] = new Trie; ^ main.cpp:30:23: warning: array subscript has type 'char' [-Wchar-subscripts] add(nod -> alp[*ch] , ch + 1); ^ main.cpp: In function 'bool del(Trie*&, char*)': main.cpp:46:33: warning: array subscript has type 'char' [-Wchar-subscripts] bool ok = del(nod -> alp[*ch] , ch + 1); ^ main.cpp:50:23: warning: array subscript has type 'char' [-Wchar-subscripts] nod -> alp[*ch] = NULL; ^ main.cpp: In function 'void cnt(Trie*, char*)': main.cpp:65:22: warning: array subscript has type 'char' [-Wchar-subscripts] if(nod -> alp[*ch] == NULL) ^ main.cpp:68:23: warning: array subscript has type 'char' [-Wchar-subscripts] cnt(nod -> alp[*ch] , ch + 1); ^ main.cpp: In function 'void precin(Trie*, char*, int)': main.cpp:76:22: warning: array subscript has type 'char' [-Wchar-subscripts] if(nod -> alp[*ch] == NULL) ^ main.cpp:79:26: warning: array subscript has type 'char' [-Wchar-subscripts] precin(nod -> alp[*ch] , ch + 1 , ans + 1); ^ main.cpp: In function 'int main()': main.cpp:85:78: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("trie.in" , "r" , stdin) , freopen("trie.out" , "w" , stdout); ^ main.cpp:85:78: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK55
23ms262kbOK55
34ms393kbOK55
43ms262kbOK55
53ms262kbOK55
64ms393kbOK55
76ms655kbOK55
86ms524kbOK55
914ms2490kbOK55
1033ms9306kbOK55
1116ms1048kbOK55
1269ms19005kbOK55
1363ms15597kbOK55
1438ms4063kbOK55
1544ms3670kbOK50
1665ms30494kbMemory limit exceeded0
1755ms524kbOK50
1863ms30494kbMemory limit exceeded0
1941ms655kbOK50
2070ms30494kbMemory limit exceeded0
Punctaj total70

Ceva nu functioneaza?