Pagini recente » Borderou de evaluare (job #1372803) | Borderou de evaluare (job #2662136) | Borderou de evaluare (job #666505) | Borderou de evaluare (job #2236145) | Borderou de evaluare (job #2857175)
Borderou de evaluare (job #2857175)
Raport evaluator
Compilare:
main.cpp: In function 'void update(trie*, char*, int)':
main.cpp:19:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
19 | if(k==strlen(c))
| ~^~~~~~~~~~~
main.cpp:25:15: warning: array subscript has type 'char' [-Wchar-subscripts]
25 | if(x->fiu[ch]==0)
| ^~
main.cpp:27:16: warning: array subscript has type 'char' [-Wchar-subscripts]
27 | x->fiu[ch]=new trie;
| ^~
main.cpp:30:19: warning: array subscript has type 'char' [-Wchar-subscripts]
30 | update(x->fiu[ch],c,k+1);
| ^~
main.cpp: In function 'bool delte(trie*, char*, int)':
main.cpp:35:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
35 | if(k==strlen(c))
| ~^~~~~~~~~~~
main.cpp:38:21: warning: array subscript has type 'char' [-Wchar-subscripts]
38 | if(delte(x->fiu[ch],c,k+1)==1)
| ^~
main.cpp:40:16: warning: array subscript has type 'char' [-Wchar-subscripts]
40 | x->fiu[ch]=0;
| ^~
main.cpp: In function 'int howmany(trie*, char*, int)':
main.cpp:52:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
52 | if(k==strlen(c))
| ~^~~~~~~~~~~
main.cpp:55:15: warning: array subscript has type 'char' [-Wchar-subscripts]
55 | if(x->fiu[ch]==0)
| ^~
main.cpp:57:27: warning: array subscript has type 'char' [-Wchar-subscripts]
57 | return howmany(x->fiu[ch],c,k+1);
| ^~
main.cpp: In function 'int prefix(trie*, char*, int)':
main.cpp:62:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
62 | if(k==strlen(c) || x->fiu[ch]==0)
| ~^~~~~~~~~~~
main.cpp:62:31: warning: array subscript has type 'char' [-Wchar-subscripts]
62 | if(k==strlen(c) || x->fiu[ch]==0)
| ^~
main.cpp:64:26: warning: array subscript has type 'char' [-Wchar-subscripts]
64 | return prefix(x->fiu[ch],c,k+1);
| ^~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 2ms | 184kb | OK | 5 | 5 |
| 2 | 2ms | 184kb | OK | 5 | 5 |
| 3 | 2ms | 184kb | OK | 5 | 5 |
| 4 | 2ms | 184kb | OK | 5 | 5 |
| 5 | 2ms | 184kb | OK | 5 | 5 |
| 6 | 2ms | 184kb | OK | 5 | 5 |
| 7 | 6ms | 299kb | OK | 5 | 5 |
| 8 | 6ms | 286kb | OK | 5 | 5 |
| 9 | 11ms | 610kb | OK | 5 | 5 |
| 10 | 16ms | 1548kb | OK | 5 | 5 |
| 11 | 21ms | 413kb | OK | 5 | 5 |
| 12 | 40ms | 3084kb | OK | 5 | 5 |
| 13 | 44ms | 2592kb | OK | 5 | 5 |
| 14 | 45ms | 880kb | OK | 5 | 5 |
| 15 | 49ms | 835kb | OK | 5 | 10 |
| 16 | 144ms | 20508kb | OK | 5 |
| 17 | 74ms | 421kb | OK | 5 | 10 |
| 18 | 138ms | 15052kb | OK | 5 |
| 19 | 64ms | 446kb | OK | 5 | 10 |
| 20 | 168ms | 27430kb | OK | 5 |
| Punctaj total | 100 |