Pagini recente » Borderou de evaluare (job #1829492) | Borderou de evaluare (job #1508650) | Borderou de evaluare (job #2549809) | Borderou de evaluare (job #2259266) | Borderou de evaluare (job #2315069)
Borderou de evaluare (job #2315069)
Raport evaluator
Compilare:
main.cpp: In constructor 'Trie::Trie()':
main.cpp:17:38: warning: passing NULL to non-pointer argument 2 of 'void* memset(void*, int, size_t)' [-Wconversion-null]
memset(fiu, NULL, sizeof(fiu));
^
main.cpp: In function 'void add(Trie*, char*, int)':
main.cpp:23:14: warning: NULL used in arithmetic [-Wpointer-arith]
if(*s == NULL){
^~~~
main.cpp: In function 'void bfs_fail(Trie*)':
main.cpp:35:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < q.size() ; ++i){
~~^~~~~~~~~~
main.cpp: In function 'void parc(Trie*, char*)':
main.cpp:51:14: warning: NULL used in arithmetic [-Wpointer-arith]
if(*s == NULL) return ;
^~~~
main.cpp: In function 'int main()':
main.cpp:69:42: 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);
^
main.cpp:70:44: 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);
^
main.cpp:71:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", S);
^
main.cpp:72:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:74:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", s);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 5 |
2 | 2ms | 131kb | OK | 5 |
3 | 2ms | 131kb | OK | 5 |
4 | 2ms | 131kb | OK | 5 |
5 | 2ms | 131kb | OK | 5 |
6 | 14ms | 917kb | OK | 5 |
7 | 24ms | 1310kb | OK | 5 |
8 | 25ms | 1966kb | OK | 5 |
9 | 27ms | 2228kb | OK | 5 |
10 | 24ms | 1572kb | OK | 5 |
11 | 26ms | 1179kb | OK | 5 |
12 | 25ms | 1835kb | OK | 5 |
13 | 10ms | 655kb | OK | 5 |
14 | 12ms | 786kb | OK | 5 |
15 | 16ms | 1310kb | OK | 5 |
16 | 16ms | 1441kb | OK | 5 |
17 | 18ms | 1310kb | OK | 5 |
18 | 18ms | 1179kb | OK | 5 |
19 | 24ms | 2097kb | OK | 5 |
20 | 101ms | 4063kb | Time limit exceeded | 0 |
Punctaj total | 95 |