Pagini recente » Borderou de evaluare (job #1724223) | Borderou de evaluare (job #1016511) | Borderou de evaluare (job #348610) | Borderou de evaluare (job #2368959) | Borderou de evaluare (job #1963662)
Borderou de evaluare (job #1963662)
Raport evaluator
Compilare:
user.cpp: In function ‘void addCuvant(char*, int)’:
user.cpp:44:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(a->vecini[ch] == NULL)
^
user.cpp:46:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
a->vecini[ch] = new Nod();
^
user.cpp:47:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
a = a->vecini[ch];
^
user.cpp:51:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
a = a->vecini[ch];
^
user.cpp: In function ‘void citire()’:
user.cpp:60:20: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1000005]’ [-Wformat=]
scanf("%s\n", &sir);
^
user.cpp:66:30: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[10005]’ [-Wformat=]
scanf("%s\n", &dictionar[i]);
^
user.cpp: In function ‘void ahoCorasick()’:
user.cpp:139:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(q->vecini[ch] == NULL && q != root)
^
user.cpp:144:31: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(q == root && q->vecini[ch] == NULL)
^
user.cpp:149:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
q = q->vecini[ch];
^
user.cpp: In function ‘void citire()’:
user.cpp:60:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s\n", &sir);
^
user.cpp:62:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:66:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s\n", &dictionar[i]);
^
user.cpp: In function ‘int main()’:
user.cpp:168:39: 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:169:41: 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);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 328kb | OK | 5 |
2 | 0ms | 360kb | OK | 5 |
3 | 0ms | 348kb | OK | 5 |
4 | 0ms | 364kb | OK | 5 |
5 | 0ms | 316kb | OK | 5 |
6 | 8ms | 1108kb | OK | 5 |
7 | 16ms | 1400kb | OK | 5 |
8 | 16ms | 2080kb | OK | 5 |
9 | 16ms | 2336kb | OK | 5 |
10 | 16ms | 1700kb | OK | 5 |
11 | 16ms | 1320kb | OK | 5 |
12 | 16ms | 1952kb | OK | 5 |
13 | 4ms | 840kb | OK | 5 |
14 | 4ms | 872kb | OK | 5 |
15 | 12ms | 1544kb | OK | 5 |
16 | 12ms | 1676kb | OK | 5 |
17 | 16ms | 1656kb | OK | 5 |
18 | 12ms | 1348kb | OK | 5 |
19 | 16ms | 2260kb | OK | 5 |
20 | Depăşit | 4036kb | Time limit exceeded. | 0 |
Punctaj total | 95 |