Pagini recente » Borderou de evaluare (job #602705) | Borderou de evaluare (job #948429) | Borderou de evaluare (job #965110) | Borderou de evaluare (job #85811) | Borderou de evaluare (job #1964096)
Borderou de evaluare (job #1964096)
Raport evaluator
Compilare:
user.cpp: In function ‘void addCuvant(char*, int)’:
user.cpp:123:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(a->vecini[ch] == NULL)
^
user.cpp:125:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
a->vecini[ch] = new Nod();
^
user.cpp:126:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
a = a->vecini[ch];
^
user.cpp:130:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
a = a->vecini[ch];
^
user.cpp: In function ‘void citire()’:
user.cpp:139:20: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1000005]’ [-Wformat=]
scanf("%s\n", &sir);
^
user.cpp:145: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:218:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(q->vecini[ch] == NULL && q != root)
^
user.cpp:223:31: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(q == root && q->vecini[ch] == NULL)
^
user.cpp:228:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
q = q->vecini[ch];
^
user.cpp: In function ‘char readCh()’:
user.cpp:65:48: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(&_BUFFER[0], sizeof(char), 4096, stdin);
^
user.cpp: In function ‘void citire()’:
user.cpp:139:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s\n", &sir);
^
user.cpp:141:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:145: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:247: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:248: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 | 288kb | OK | 5 |
| 2 | 0ms | 320kb | OK | 5 |
| 3 | 0ms | 308kb | OK | 5 |
| 4 | 0ms | 324kb | OK | 5 |
| 5 | 0ms | 280kb | OK | 5 |
| 6 | 8ms | 1068kb | OK | 5 |
| 7 | 16ms | 1356kb | OK | 5 |
| 8 | 16ms | 2036kb | OK | 5 |
| 9 | 16ms | 2300kb | OK | 5 |
| 10 | 12ms | 1660kb | OK | 5 |
| 11 | 16ms | 1280kb | OK | 5 |
| 12 | 16ms | 1912kb | OK | 5 |
| 13 | 4ms | 804kb | OK | 5 |
| 14 | 4ms | 836kb | OK | 5 |
| 15 | 8ms | 1504kb | OK | 5 |
| 16 | 8ms | 1632kb | OK | 5 |
| 17 | 16ms | 1624kb | OK | 5 |
| 18 | 12ms | 1312kb | OK | 5 |
| 19 | 16ms | 2220kb | OK | 5 |
| 20 | Depăşit | 3984kb | Time limit exceeded. | 0 |
| Punctaj total | 95 |