Pagini recente » Borderou de evaluare (job #1552070) | Borderou de evaluare (job #2917098) | Borderou de evaluare (job #2265038) | Borderou de evaluare (job #1601284) | Borderou de evaluare (job #2137352)
Borderou de evaluare (job #2137352)
Raport evaluator
Compilare:
user.cpp: In function ‘node* go(Node, char)’:
user.cpp:43:14: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(it->go[c]) return it->go[c];
^
user.cpp:43:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(it->go[c]) return it->go[c];
^
user.cpp:44:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(it->next[c]) return it->go[c] = it->next[c];
^
user.cpp:44:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(it->next[c]) return it->go[c] = it->next[c];
^
user.cpp:44:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(it->next[c]) return it->go[c] = it->next[c];
^
user.cpp:46:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return it->go[c] = go(getLink(it), c);
^
user.cpp: In function ‘int main()’:
user.cpp:50: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:51: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);
^
user.cpp:52:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s %d", s, &n);
^
user.cpp:53:53: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i = 1; i <= n; ++i) scanf(" %s", c), insert(i);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 3556kb | OK | 5 |
2 | 0ms | 3572kb | OK | 5 |
3 | 0ms | 3564kb | OK | 5 |
4 | 0ms | 3560kb | OK | 5 |
5 | 0ms | 3556kb | OK | 5 |
6 | 8ms | 4232kb | OK | 5 |
7 | 16ms | 4252kb | OK | 5 |
8 | 20ms | 5332kb | OK | 5 |
9 | 20ms | 5860kb | OK | 5 |
10 | 16ms | 4668kb | OK | 5 |
11 | 16ms | 4004kb | OK | 5 |
12 | 16ms | 5192kb | OK | 5 |
13 | 8ms | 3776kb | OK | 5 |
14 | 8ms | 3604kb | OK | 5 |
15 | 12ms | 4616kb | OK | 5 |
16 | 12ms | 4836kb | OK | 5 |
17 | 12ms | 4400kb | OK | 5 |
18 | 16ms | 4004kb | OK | 5 |
19 | 20ms | 5552kb | OK | 5 |
20 | 100ms | 8900kb | OK | 5 |
Punctaj total | 100 |