Borderou de evaluare (job #1490733)

Utilizator salam1Florin Salam salam1 Data 24 septembrie 2015 02:46:38
Problema Aho-Corasick Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In constructor ‘trieNode::trieNode()’: user.cpp:19:41: error: ‘memset’ was not declared in this scope memset(children, 0, sizeof(children)); ^ user.cpp: In constructor ‘trieNode::trieNode(trieNode*, int)’: user.cpp:27:41: error: ‘memset’ was not declared in this scope memset(children, 0, sizeof(children)); ^ user.cpp: In function ‘void prepare()’: user.cpp:89:23: error: ‘strlen’ was not declared in this scope int m = strlen(A + 1) - 1; ^ user.cpp:99:29: error: ‘reverse’ was not declared in this scope reverse(Q.begin(), Q.end()); ^ user.cpp: In function ‘void read()’: user.cpp:48:28: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(A + 1, NMAX, stdin); ^ user.cpp:49:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:51:33: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(word + 1, NMAX, stdin); ^ user.cpp: In function ‘int main()’: user.cpp:114: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:115: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?