Pagini recente » Cod sursa (job #1922425) | Borderou de evaluare (job #1348219) | Profil HristuPetre | Profil Chiratcu_Rares | Borderou de evaluare (job #3359589)
Borderou de evaluare (job #3359589)
Raport evaluator
Compilare:
main.cpp: In function 'void insert(trie*, std::string&, int)':
main.cpp:37:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
37 | if( i == s.size() ){
| ~~^~~~~~~~~~~
main.cpp:70:129: warning: array subscript has type 'char' [-Wchar-subscripts]
70 | if( nod->v[j] && ( nod->v[j]->max_sum > nod->max_sum || ( nod->v[j]->max_sum == nod->max_sum && ch[j] < ch[nod->path] ) ) ){
| ~~~~~^~~~
main.cpp: In function 'int main()':
main.cpp:95:38: warning: array subscript has type 'char' [-Wchar-subscripts]
95 | s += ch[nod->path];
| ~~~~~^~~~
main.cpp:96:43: warning: array subscript has type 'char' [-Wchar-subscripts]
96 | nod = nod->v[nod->path];
| ~~~~~^~~~
main.cpp:98:33: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare]
98 | while( s.size() < k ){
| ~~~~~~~~~^~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 303kb | OK | 5 |
| 2 | 0ms | 303kb | OK | 5 |
| 3 | 1ms | 815kb | OK | 5 |
| 4 | 1ms | 815kb | Incorect | 0 |
| 5 | 1ms | 815kb | Incorect | 0 |
| 6 | 1ms | 815kb | OK | 5 |
| 7 | 57ms | 44253kb | OK | 5 |
| 8 | 71ms | 54898kb | OK | 5 |
| 9 | 82ms | 63266kb | Incorect | 0 |
| 10 | 83ms | 62828kb | Incorect | 0 |
| 11 | 54ms | 38461kb | OK | 5 |
| 12 | 68ms | 50122kb | OK | 5 |
| 13 | 78ms | 57704kb | OK | 5 |
| 14 | 78ms | 57610kb | Incorect | 0 |
| 15 | 84ms | 64364kb | Incorect | 0 |
| 16 | 82ms | 64487kb | OK | 5 |
| 17 | 84ms | 64602kb | OK | 5 |
| 18 | 84ms | 64671kb | OK | 5 |
| 19 | 81ms | 66785kb | Memory limit exceeded | 0 |
| 20 | 32ms | 4632kb | OK | 5 |
| Punctaj total | 65 |