Borderou de evaluare (job #1490735)
Raport evaluator
Compilare:
user.cpp: In function ‘void read()’:
user.cpp:50: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:51:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
user.cpp:53: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:116: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:117: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);
^
In file included from /usr/include/stdio.h:934:0,
from /usr/include/c++/4.8/cstdio:42,
from user.cpp:1:
In function ‘char* fgets(char*, int, FILE*)’,
inlined from ‘void read()’ at user.cpp:50:28:
/usr/include/i386-linux-gnu/bits/stdio2.h:253:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default]
return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
^
In function ‘char* fgets(char*, int, FILE*)’,
inlined from ‘void read()’ at user.cpp:53:33:
/usr/include/i386-linux-gnu/bits/stdio2.h:253:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default]
return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 284kb | OK | 5 |
2 | 0ms | 288kb | OK | 5 |
3 | 0ms | 284kb | OK | 5 |
4 | 0ms | 288kb | OK | 5 |
5 | 0ms | 280kb | OK | 5 |
6 | 8ms | 900kb | OK | 5 |
7 | 16ms | 1224kb | OK | 5 |
8 | 16ms | 1612kb | OK | 5 |
9 | 16ms | 1784kb | OK | 5 |
10 | 12ms | 1420kb | OK | 5 |
11 | 16ms | 1220kb | OK | 5 |
12 | 12ms | 1576kb | OK | 5 |
13 | 4ms | 756kb | OK | 5 |
14 | 4ms | 844kb | OK | 5 |
15 | 8ms | 1156kb | OK | 5 |
16 | 8ms | 1220kb | OK | 5 |
17 | 8ms | 1232kb | OK | 5 |
18 | 8ms | 1240kb | OK | 5 |
19 | 12ms | 1696kb | OK | 5 |
20 | 56ms | 3164kb | OK | 5 |
Punctaj total | 100 |