Borderou de evaluare (job #1155867)

Utilizator Kira96Denis Mita Kira96 Data 27 martie 2014 11:21:51
Problema Rps Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In constructor ‘Trie::Trie()’: user.cpp:9:33: error: ‘memset’ was not declared in this scope memset(fiu,0,sizeof(fiu)); ^ user.cpp:10:9: error: ‘nrf’ was not declared in this scope nrf=best=bestnext=0; ^ user.cpp: At global scope: user.cpp:13:6: error: expected initializer before ‘*’ token Trie *r=new Trie; ^ user.cpp:15:1: error: expected ‘,’ or ‘;’ before ‘char’ char type[]={'P','S','R'}; ^ user.cpp: In function ‘void insert(Trie*, char*)’: user.cpp:21:14: error: ‘struct Trie’ has no member named ‘nrf’ nod->nrf++; ^ user.cpp:22:19: error: ‘D’ was not declared in this scope nod->best=D*nod->nrf; ^ user.cpp:22:26: error: ‘struct Trie’ has no member named ‘nrf’ nod->best=D*nod->nrf; ^ user.cpp:25:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(!(nod->fiu[*p])) ^ user.cpp:27:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] nod->fiu[*p]=new Trie; ^ user.cpp:28:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] insert(nod->fiu[*p]) ^ user.cpp:28:28: error: too few arguments to function ‘void insert(Trie*, char*)’ insert(nod->fiu[*p]) ^ user.cpp:17:6: note: declared here void insert(Trie *nod,char *p) ^ user.cpp:29:5: error: expected ‘;’ before ‘}’ token } ^ user.cpp:30:10: error: ‘struct Trie’ has no member named ‘nrf’ nod->nrf++; ^ user.cpp:31:16: error: ‘inf’ was not declared in this scope nod->best=-inf; ^ user.cpp:37:21: error: reference to ‘next’ is ambiguous if(nod->fiu[next[i])

Ceva nu functioneaza?