Borderou de evaluare (job #1980803)

Utilizator TincaMateiTinca Matei TincaMatei Data 14 mai 2017 00:13:22
Problema Aho-Corasick Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void add(Aho*, char*)’: user.cpp:38:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(t->fiu[ch] == NULL) { ^ user.cpp:39:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] t->fiu[ch] = new Aho(); ^ user.cpp:40:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] t->fiu[ch]->papa = t; ^ user.cpp:41:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] t->fiu[ch]->papach = ch; ^ user.cpp:43:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] add(t->fiu[ch], x + 1); ^ user.cpp: In function ‘void bfs(Aho*)’: user.cpp:67:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(cursor != t && cursor->fiu[ch] == NULL) ^ user.cpp:69:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(cursor->fiu[ch] == NULL) ^ user.cpp:72:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] nod->fail = cursor->fiu[ch]; ^ user.cpp: In function ‘int main()’: user.cpp:114:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(cursor != x && cursor -> fiu[ch] == NULL) ^ user.cpp:117:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(cursor -> fiu[ch] != NULL) { ^ user.cpp:118:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] cursor = cursor -> fiu[ch]; ^ user.cpp:96:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbOK5
20ms304kbOK5
30ms296kbOK5
40ms312kbOK5
50ms272kbOK5
616ms984kbOK5
728ms1284kbOK5
828ms1844kbOK5
932ms2060kbOK5
1028ms1536kbOK5
1132ms1248kbOK5
1228ms1740kbOK5
1312ms772kbOK5
1416ms824kbOK5
1520ms1376kbOK5
1620ms1460kbOK5
1724ms1484kbOK5
1828ms1276kbOK5
1928ms1992kbOK5
2088ms3492kbOK5
Punctaj total100

Ceva nu functioneaza?