Borderou de evaluare (job #2814173)

Utilizator Vlad_AnicaAnica-Popa Vlad-Ioan Vlad_Anica Data 7 decembrie 2021 17:52:44
Problema Rps Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void trie_insert(trie*, char*)': main.cpp:34:23: warning: array subscript has type 'char' [-Wchar-subscripts] 34 | if (node -> e[ord[*s]] == NULL) | ^~ main.cpp:35:23: warning: array subscript has type 'char' [-Wchar-subscripts] 35 | node -> e[ord[*s]] = new trie(); | ^~ main.cpp:36:31: warning: array subscript has type 'char' [-Wchar-subscripts] 36 | trie_insert(node -> e[ord[*s]], s + 1); | ^~ main.cpp:41:31: warning: array subscript has type 'char' [-Wchar-subscripts] 41 | if (node -> e[ord[mv[i]]] != NULL) | ~~~~^ main.cpp:42:38: warning: array subscript has type 'char' [-Wchar-subscripts] 42 | val += node -> e[ord[mv[i]]] -> best; | ~~~~^ main.cpp:43:32: warning: array subscript has type 'char' [-Wchar-subscripts] 43 | if (node -> e[ord[wmv[i]]] != NULL) | ~~~~~^ main.cpp:44:39: warning: array subscript has type 'char' [-Wchar-subscripts] 44 | val += node -> e[ord[wmv[i]]] -> cnt * w; | ~~~~~^ main.cpp: In function 'int main()': main.cpp:77:39: warning: array subscript has type 'char' [-Wchar-subscripts] 77 | if (node -> e[ord[mv[i]]] != NULL) | ~~~~^ main.cpp:78:46: warning: array subscript has type 'char' [-Wchar-subscripts] 78 | val += node -> e[ord[mv[i]]] -> best; | ~~~~^ main.cpp:79:40: warning: array subscript has type 'char' [-Wchar-subscripts] 79 | if (node -> e[ord[wmv[i]]] != NULL) | ~~~~~^ main.cpp:80:47: warning: array subscript has type 'char' [-Wchar-subscripts] 80 | val += node -> e[ord[wmv[i]]] -> cnt * w; | ~~~~~^ main.cpp:87:31: warning: array subscript has type 'char' [-Wchar-subscripts] 87 | if (node -> e[ord[bestmv]] != NULL) | ^~~~~~ main.cpp:88:38: warning: array subscript has type 'char' [-Wchar-subscripts] 88 | node = node -> e[ord[bestmv]]; | ^~~~~~ main.cpp:57:23: warning: variable 'ch' set but not used [-Wunused-but-set-variable] 57 | char s[NMAX + 1], ch; | ^~ main.cpp:72:18: warning: 'bestmv' may be used uninitialized in this function [-Wmaybe-uninitialized] 72 | char bestmv; | ^~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbIncorect0
22ms184kbIncorect0
32ms184kbIncorect0
42ms184kbIncorect0
56ms638kbIncorect0
66ms720kbIncorect0
7209ms33292kbIncorect0
8266ms42594kbIncorect0
9301ms48234kbTime limit exceeded0
10294ms47308kbIncorect0
11210ms29253kbIncorect0
12266ms38072kbIncorect0
13305ms44347kbTime limit exceeded0
14295ms43601kbIncorect0
15305ms48529kbTime limit exceeded0
16304ms48705kbTime limit exceeded0
17306ms48697kbTime limit exceeded0
18306ms48730kbTime limit exceeded0
19301ms53006kbTime limit exceeded0
20194ms4550kbIncorect0
Punctaj total0

Ceva nu functioneaza?