Borderou de evaluare (job #1963656)

Utilizator SolcanMihaiSolcan Mihai Andrei SolcanMihai Data 12 aprilie 2017 17:58:25
Problema Aho-Corasick Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 15

Raport evaluator

Compilare: user.cpp: In function ‘void addCuvant(char*, int)’: user.cpp:44:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(a->vecini[ch] == NULL) ^ user.cpp:46:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] a->vecini[ch] = new Nod(); ^ user.cpp:47:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] a = a->vecini[ch]; ^ user.cpp:51:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] a = a->vecini[ch]; ^ user.cpp: In function ‘void citire()’: user.cpp:60:20: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1000005]’ [-Wformat=] scanf("%s\n", &sir); ^ user.cpp:66:30: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[10005]’ [-Wformat=] scanf("%s\n", &dictionar[i]); ^ user.cpp: In function ‘void ahoCorasick()’: user.cpp:139:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(q->vecini[ch] == NULL && q != root) ^ user.cpp:144:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] q = q->vecini[ch]; ^ user.cpp: In function ‘void citire()’: user.cpp:60:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", &sir); ^ user.cpp:62:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:66:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", &dictionar[i]); ^ user.cpp: In function ‘int main()’: user.cpp:163:39: 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:164:41: 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); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms304kbKilled by signal 11(SIGSEGV).0
20ms328kbKilled by signal 11(SIGSEGV).0
30ms320kbKilled by signal 11(SIGSEGV).0
40ms340kbKilled by signal 11(SIGSEGV).0
50ms320kbOK5
64ms1084kbKilled by signal 11(SIGSEGV).0
78ms1376kbKilled by signal 11(SIGSEGV).0
88ms2052kbKilled by signal 11(SIGSEGV).0
98ms2320kbKilled by signal 11(SIGSEGV).0
108ms1672kbKilled by signal 11(SIGSEGV).0
118ms1300kbKilled by signal 11(SIGSEGV).0
128ms1928kbKilled by signal 11(SIGSEGV).0
134ms820kbKilled by signal 11(SIGSEGV).0
144ms852kbKilled by signal 11(SIGSEGV).0
154ms1524kbKilled by signal 11(SIGSEGV).0
168ms1648kbKilled by signal 11(SIGSEGV).0
1716ms1664kbOK5
1812ms1348kbOK5
1912ms2236kbKilled by signal 11(SIGSEGV).0
20Depăşit4036kbTime limit exceeded.0
Punctaj total15

Ceva nu functioneaza?