Pagini recente » Borderou de evaluare (job #1604095) | Borderou de evaluare (job #1854439) | Borderou de evaluare (job #2924495) | Cod sursa (job #683655) | Borderou de evaluare (job #2302679)
Borderou de evaluare (job #2302679)
Raport evaluator
Compilare:
main.cpp: In function 'void bfs(ac*)':
main.cpp:41:12: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(dolar=fr->fail;dolar!=t && dolar->f[i]==NULL;dolar=dolar->fail);
^~~
main.cpp:43:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
if(dolar->f[i]!=NULL && dolar->f[i]!=fr->f[i]) dolar=dolar->f[i];
^~
main.cpp: In function 'void antibfs(ac*)':
main.cpp:57:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<fr->nd.size(); ++j) final[fr->nd[j]]=fr->n0;
~^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:63: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);
^
main.cpp:64: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);
^
main.cpp:65:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",tx);
^
main.cpp:66:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
main.cpp:69:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",c);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | OK | 5 |
| 2 | 3ms | 131kb | OK | 5 |
| 3 | 3ms | 131kb | OK | 5 |
| 4 | 3ms | 131kb | OK | 5 |
| 5 | 3ms | 131kb | OK | 5 |
| 6 | 19ms | 897kb | OK | 5 |
| 7 | 33ms | 1273kb | OK | 5 |
| 8 | 41ms | 1925kb | OK | 5 |
| 9 | 35ms | 2191kb | OK | 5 |
| 10 | 34ms | 1536kb | OK | 5 |
| 11 | 34ms | 1146kb | OK | 5 |
| 12 | 39ms | 1798kb | OK | 5 |
| 13 | 18ms | 675kb | OK | 5 |
| 14 | 18ms | 749kb | OK | 5 |
| 15 | 23ms | 1269kb | OK | 5 |
| 16 | 23ms | 1400kb | OK | 5 |
| 17 | 25ms | 1269kb | OK | 5 |
| 18 | 28ms | 1146kb | OK | 5 |
| 19 | 38ms | 2056kb | OK | 5 |
| 20 | 103ms | 4157kb | Time limit exceeded | 0 |
| Punctaj total | 95 |