Borderou de evaluare (job #3001800)

Utilizator shshshsStefanescu Serban shshshs Data 13 martie 2023 22:04:42
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void Adaugare(Trie*, char*)': main.cpp:19:12: warning: NULL used in arithmetic [-Wpointer-arith] 19 | if(*s==NULL) {nod->cnt++;return;} | ^~~~ main.cpp: In function 'bool Stergere(Trie*, char*)': main.cpp:29:12: warning: NULL used in arithmetic [-Wpointer-arith] 29 | if(*s==NULL) nod->cnt--; | ^~~~ main.cpp: In function 'int NrAp(Trie*, char*)': main.cpp:41:12: warning: NULL used in arithmetic [-Wpointer-arith] 41 | if(*s==NULL) return nod->cnt; | ^~~~ main.cpp:42:23: error: expected ']' before ')' token 42 | if(nod->fiu[*s-'a')return NrAp(nod->fiu[*s-'a'],s+1); | ^ | ] main.cpp: In function 'int Prefix(Trie*, char*, int)': main.cpp:47:12: warning: NULL used in arithmetic [-Wpointer-arith] 47 | if(*s==NULL||!nod->fiu[*s-'a']) return nivel; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?