Pagini recente » Borderou de evaluare (job #781653) | Borderou de evaluare (job #1318323) | Borderou de evaluare (job #118625) | Borderou de evaluare (job #1498689) | Borderou de evaluare (job #2952917)
Borderou de evaluare (job #2952917)
Raport evaluator
Compilare:
main.cpp: In function 'void addWord(Trie*, int, std::string&)':
main.cpp:42:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | if (pos == s.size())
| ~~~~^~~~~~~~~~~
main.cpp:46:17: warning: array subscript has type 'char' [-Wchar-subscripts]
46 | if (nod->fii[lit] == nullptr)
| ^~~
main.cpp:47:16: warning: array subscript has type 'char' [-Wchar-subscripts]
47 | nod->fii[lit] = new Trie;
| ^~~
main.cpp:49:21: warning: array subscript has type 'char' [-Wchar-subscripts]
49 | addWord(nod->fii[lit], pos+1, s);
| ^~~
main.cpp: In function 'bool delWord(Trie*, int, std::string&)':
main.cpp:55:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | if (pos == s.size())
| ~~~~^~~~~~~~~~~
main.cpp:62:25: warning: array subscript has type 'char' [-Wchar-subscripts]
62 | if (delWord(nod->fii[lit], pos+1, s))
| ^~~
main.cpp:63:16: warning: array subscript has type 'char' [-Wchar-subscripts]
63 | nod->fii[lit] = nullptr;
| ^~~
main.cpp: In function 'int nrApWord(Trie*, int, std::string&)':
main.cpp:73:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
73 | if (pos == s.size())
| ~~~~^~~~~~~~~~~
main.cpp:77:17: warning: array subscript has type 'char' [-Wchar-subscripts]
77 | if (nod->fii[lit])
| ^~~
main.cpp:78:32: warning: array subscript has type 'char' [-Wchar-subscripts]
78 | return nrApWord(nod->fii[lit], pos+1, s);
| ^~~
main.cpp: In function 'int lcpWord(Trie*, int, std::string&)':
main.cpp:85:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
85 | if (pos == s.size())
| ~~~~^~~~~~~~~~~
main.cpp:89:17: warning: array subscript has type 'char' [-Wchar-subscripts]
89 | if (nod->fii[lit])
| ^~~
main.cpp:90:31: warning: array subscript has type 'char' [-Wchar-subscripts]
90 | return lcpWord(nod->fii[lit], pos+1, s);
| ^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 184kb | Incorect | 0 | 0 |
2 | 0ms | 184kb | Killed by Signal 11 | 0 | 0 |
3 | 0ms | 184kb | Killed by Signal 11 | 0 | 0 |
4 | 0ms | 184kb | Killed by Signal 11 | 0 | 0 |
5 | 0ms | 184kb | Killed by Signal 11 | 0 | 0 |
6 | 0ms | 184kb | Killed by Signal 11 | 0 | 0 |
7 | 0ms | 184kb | Killed by Signal 11 | 0 | 0 |
8 | 0ms | 184kb | Killed by Signal 11 | 0 | 0 |
9 | 0ms | 184kb | Killed by Signal 11 | 0 | 0 |
10 | 5ms | 1495kb | Killed by Signal 11 | 0 | 0 |
11 | 0ms | 184kb | Killed by Signal 11 | 0 | 0 |
12 | 3ms | 2412kb | Killed by Signal 11 | 0 | 0 |
13 | 4ms | 2150kb | Killed by Signal 11 | 0 | 0 |
14 | 5ms | 708kb | Killed by Signal 11 | 0 | 0 |
15 | 2ms | 708kb | Killed by Signal 11 | 0 | 0 |
16 | 38ms | 18649kb | Killed by Signal 11 | 0 |
17 | 0ms | 184kb | Killed by Signal 11 | 0 | 0 |
18 | 27ms | 13123kb | Killed by Signal 11 | 0 |
19 | 2ms | 315kb | Killed by Signal 11 | 0 | 0 |
20 | 62ms | 25190kb | Killed by Signal 11 | 0 |
Punctaj total | 0 |