Pagini recente » Borderou de evaluare (job #2171929) | Borderou de evaluare (job #1322741) | Borderou de evaluare (job #3311332) | Borderou de evaluare (job #1725007) | Borderou de evaluare (job #3351226)
Borderou de evaluare (job #3351226)
Raport evaluator
Compilare:
main.cpp: In function 'void AdaugaInTrie(NodTrie*, const std::string&, int)':
main.cpp:36:17: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
36 | if(s.size() == poz) {
| ~~~~~~~~~^~~~~~
main.cpp:41:25: warning: array subscript has type 'char' [-Wchar-subscripts]
41 | if(NULL == nod->fii[lit]) {
| ^~~
main.cpp:42:18: warning: array subscript has type 'char' [-Wchar-subscripts]
42 | nod->fii[lit] = NodNou();
| ^~~
main.cpp:45:27: warning: array subscript has type 'char' [-Wchar-subscripts]
45 | AdaugaInTrie(nod->fii[lit], s, 1 + poz);
| ^~~
main.cpp: In function 'bool StergeInTrie(NodTrie*, const std::string&, int)':
main.cpp:49:17: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
49 | if(s.size() == poz) {
| ~~~~~~~~~^~~~~~
main.cpp:54:25: warning: array subscript has type 'char' [-Wchar-subscripts]
54 | if(NULL == nod->fii[lit]) return false;
| ^~~
main.cpp:56:30: warning: array subscript has type 'char' [-Wchar-subscripts]
56 | if(StergeInTrie(nod->fii[lit], s, 1 + poz)) {
| ^~~
main.cpp:57:28: warning: array subscript has type 'char' [-Wchar-subscripts]
57 | StergeNod(nod->fii[lit]);
| ^~~
main.cpp:58:18: warning: array subscript has type 'char' [-Wchar-subscripts]
58 | nod->fii[lit] = NULL;
| ^~~
main.cpp: In function 'int CautaFrecventa(NodTrie*, const std::string&, int)':
main.cpp:67:17: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
67 | if(s.size() == poz) return nod->nrCuv;
| ~~~~~~~~~^~~~~~
main.cpp:69:25: warning: array subscript has type 'char' [-Wchar-subscripts]
69 | if(NULL == nod->fii[lit]) return 0;
| ^~~
main.cpp:70:36: warning: array subscript has type 'char' [-Wchar-subscripts]
70 | return CautaFrecventa(nod->fii[lit], s, 1 + poz);
| ^~~
main.cpp: In function 'int CautaPrefMax(NodTrie*, const std::string&, int)':
main.cpp:74:17: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
74 | if(s.size() == poz) return poz;
| ~~~~~~~~~^~~~~~
main.cpp:76:25: warning: array subscript has type 'char' [-Wchar-subscripts]
76 | if(NULL == nod->fii[lit]) return poz;
| ^~~
main.cpp:77:34: warning: array subscript has type 'char' [-Wchar-subscripts]
77 | return CautaPrefMax(nod->fii[lit], s, 1 + poz);
| ^~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 303kb | OK | 5 | 5 |
| 2 | 0ms | 303kb | OK | 5 | 5 |
| 3 | 0ms | 303kb | OK | 5 | 5 |
| 4 | 0ms | 303kb | OK | 5 | 5 |
| 5 | 0ms | 303kb | OK | 5 | 5 |
| 6 | 0ms | 303kb | OK | 5 | 5 |
| 7 | 1ms | 303kb | OK | 5 | 5 |
| 8 | 1ms | 303kb | OK | 5 | 5 |
| 9 | 2ms | 557kb | Incorect | 0 | 0 |
| 10 | 3ms | 1605kb | OK | 5 | 5 |
| 11 | 4ms | 303kb | OK | 5 | 5 |
| 12 | 7ms | 2916kb | Incorect | 0 | 0 |
| 13 | 8ms | 2392kb | Incorect | 0 | 0 |
| 14 | 8ms | 819kb | OK | 5 | 5 |
| 15 | 8ms | 819kb | OK | 5 | 0 |
| 16 | 27ms | 19271kb | Incorect | 0 |
| 17 | 13ms | 532kb | Incorect | 0 | 0 |
| 18 | 28ms | 14184kb | Incorect | 0 |
| 19 | 9ms | 491kb | OK | 5 | 0 |
| 20 | 34ms | 25501kb | Incorect | 0 |
| Punctaj total | 55 |