Borderou de evaluare (job #2930236)

Utilizator raresgherasaRares Gherasa raresgherasa Data 27 octombrie 2022 19:52:55
Problema Dictree Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void addTrie(Trie*, char*)': main.cpp:25:13: warning: NULL used in arithmetic [-Wpointer-arith] 25 | if (ch != NULL){ | ^~~~ main.cpp:26:22: warning: array subscript has type 'char' [-Wchar-subscripts] 26 | if (root -> sons[ch] == NULL){ | ^~ main.cpp:27:20: warning: array subscript has type 'char' [-Wchar-subscripts] 27 | root -> sons[ch] = new Trie; | ^~ main.cpp:29:26: warning: array subscript has type 'char' [-Wchar-subscripts] 29 | addTrie(root -> sons[ch], s + 1); | ^~ main.cpp: In function 'void dfs(Trie*)': main.cpp:36:22: warning: array subscript has type 'char' [-Wchar-subscripts] 36 | if (root -> sons[i] != NULL){ | ^ main.cpp:37:24: warning: array subscript has type 'char' [-Wchar-subscripts] 37 | dfs(root -> sons[i]); | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
111ms13090kbKilled by Signal 900
29ms11849kbKilled by Signal 90
39ms12767kbKilled by Signal 90
410ms13111kbMemory limit exceeded0
510ms13111kbMemory limit exceeded0
610ms13111kbMemory limit exceeded0
710ms13111kbMemory limit exceeded0
810ms13111kbMemory limit exceeded0
910ms13111kbMemory limit exceeded0
1010ms13111kbMemory limit exceeded0
Punctaj total0

Ceva nu functioneaza?