Pagini recente » Borderou de evaluare (job #1522858) | Borderou de evaluare (job #1253943) | Borderou de evaluare (job #2794422) | Borderou de evaluare (job #2886871) | Borderou de evaluare (job #2123084)
Borderou de evaluare (job #2123084)
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 | 3380kb | OK | 5 |
2 | 0ms | 3384kb | OK | 5 |
3 | 0ms | 3384kb | OK | 5 |
4 | 0ms | 3380kb | OK | 5 |
5 | 0ms | 3376kb | OK | 5 |
6 | 8ms | 3792kb | OK | 5 |
7 | 16ms | 4116kb | OK | 5 |
8 | 16ms | 4704kb | OK | 5 |
9 | 20ms | 4972kb | OK | 5 |
10 | 16ms | 4376kb | OK | 5 |
11 | 16ms | 4040kb | OK | 5 |
12 | 16ms | 4636kb | OK | 5 |
13 | 8ms | 3564kb | OK | 5 |
14 | 12ms | 3616kb | OK | 5 |
15 | 12ms | 4124kb | OK | 5 |
16 | 12ms | 4232kb | OK | 5 |
17 | 16ms | 4156kb | OK | 5 |
18 | 16ms | 4060kb | OK | 5 |
19 | 20ms | 4832kb | OK | 5 |
20 | 92ms | 6624kb | OK | 5 |
Punctaj total | 100 |