Borderou de evaluare (job #1573240)

Utilizator binicBinica Nicolae binic Data 19 ianuarie 2016 15:45:06
Problema Aho-Corasick Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:1: error: declaration does not declare anything [-fpermissive] int ; ^ user.cpp:8:16: error: field ‘urm’ has incomplete type trie urm[27]; ^ user.cpp:9:10: error: field ‘phi’ has incomplete type trie phi; ^ user.cpp: In constructor ‘trie::trie()’: user.cpp:13:9: error: ‘phi’ was not declared in this scope phi=0; ^ user.cpp:14:16: error: ‘urm’ was not declared in this scope memset(urm,0,sizeof(urm)); ^ user.cpp: In function ‘int main()’: user.cpp:21:10: error: ‘s’ was not declared in this scope gets(s); ^ user.cpp:22:17: error: ‘n’ was not declared in this scope scanf("%d",&n); ^ user.cpp:23:5: error: ‘r’ was not declared in this scope r=new trie; ^ user.cpp:26:14: error: ‘sir’ was not declared in this scope gets(sir[i]); ^ user.cpp:27:9: error: ‘m’ was not declared in this scope m[i]=strlen(sir[i]); ^ user.cpp:31:19: error: ‘struct trie’ has no member named ‘urm’ if(p->urm[sir[j]-'a']==0) p->urm[sir[j]-'a']=new trie; ^ user.cpp:31:45: error: ‘struct trie’ has no member named ‘urm’ if(p->urm[sir[j]-'a']==0) p->urm[sir[j]-'a']=new trie; ^ user.cpp:32:18: error: ‘struct trie’ has no member named ‘urm’ p=p->urm[sir[j]-'a']; ^ user.cpp:19:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ahocorasick.in","r",stdin); ^ user.cpp:20:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ahocorasick.out","w",stdout); ^

Ceva nu functioneaza?