Pagini recente » Borderou de evaluare (job #605038) | Borderou de evaluare (job #2180720) | Borderou de evaluare (job #2268970) | Borderou de evaluare (job #656556) | Borderou de evaluare (job #1980803)
Borderou de evaluare (job #1980803)
Raport evaluator
Compilare:
user.cpp: In function ‘void add(Aho*, char*)’:
user.cpp:38:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(t->fiu[ch] == NULL) {
^
user.cpp:39:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
t->fiu[ch] = new Aho();
^
user.cpp:40:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
t->fiu[ch]->papa = t;
^
user.cpp:41:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
t->fiu[ch]->papach = ch;
^
user.cpp:43:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
add(t->fiu[ch], x + 1);
^
user.cpp: In function ‘void bfs(Aho*)’:
user.cpp:67:42: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(cursor != t && cursor->fiu[ch] == NULL)
^
user.cpp:69:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(cursor->fiu[ch] == NULL)
^
user.cpp:72:35: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nod->fail = cursor->fiu[ch];
^
user.cpp: In function ‘int main()’:
user.cpp:114:42: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(cursor != x && cursor -> fiu[ch] == NULL)
^
user.cpp:117:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(cursor -> fiu[ch] != NULL) {
^
user.cpp:118:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cursor = cursor -> fiu[ch];
^
user.cpp:96:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &n);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 272kb | OK | 5 |
2 | 0ms | 304kb | OK | 5 |
3 | 0ms | 296kb | OK | 5 |
4 | 0ms | 312kb | OK | 5 |
5 | 0ms | 272kb | OK | 5 |
6 | 16ms | 984kb | OK | 5 |
7 | 28ms | 1284kb | OK | 5 |
8 | 28ms | 1844kb | OK | 5 |
9 | 32ms | 2060kb | OK | 5 |
10 | 28ms | 1536kb | OK | 5 |
11 | 32ms | 1248kb | OK | 5 |
12 | 28ms | 1740kb | OK | 5 |
13 | 12ms | 772kb | OK | 5 |
14 | 16ms | 824kb | OK | 5 |
15 | 20ms | 1376kb | OK | 5 |
16 | 20ms | 1460kb | OK | 5 |
17 | 24ms | 1484kb | OK | 5 |
18 | 28ms | 1276kb | OK | 5 |
19 | 28ms | 1992kb | OK | 5 |
20 | 88ms | 3492kb | OK | 5 |
Punctaj total | 100 |