Pagini recente » Borderou de evaluare (job #70953) | Borderou de evaluare (job #412886) | Borderou de evaluare (job #203288) | Borderou de evaluare (job #2337545) | Borderou de evaluare (job #2579353)
Borderou de evaluare (job #2579353)
Raport evaluator
Compilare:
main.cpp: In member function 'void Trie::Insert(std::__cxx11::string)':
main.cpp:26:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < s.size(); ++i) {
~~^~~~~~~~~~
main.cpp:28:27: warning: array subscript has type 'char' [-Wchar-subscripts]
if(curr->nxt[c] == 0) {
^
main.cpp:30:28: warning: array subscript has type 'char' [-Wchar-subscripts]
curr->nxt[c] = new Node();
^
main.cpp:32:31: warning: array subscript has type 'char' [-Wchar-subscripts]
curr = curr->nxt[c];
^
main.cpp:33:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i == s.size() - 1) {
~~^~~~~~~~~~~~~~~
main.cpp: In member function 'void Trie::Delete(std::__cxx11::string)':
main.cpp:42:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < s.size(); ++i) {
~~^~~~~~~~~~
main.cpp:44:31: warning: array subscript has type 'char' [-Wchar-subscripts]
curr = curr->nxt[c];
^
main.cpp:49:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i == s.size() - 1) {
~~^~~~~~~~~~~~~~~
main.cpp: In member function 'int Trie::CntAp(std::__cxx11::string)':
main.cpp:60:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < s.size(); ++i) {
~~^~~~~~~~~~
main.cpp:62:27: warning: array subscript has type 'char' [-Wchar-subscripts]
if(curr->nxt[c] == 0) break;
^
main.cpp:63:31: warning: array subscript has type 'char' [-Wchar-subscripts]
curr = curr->nxt[c];
^
main.cpp:64:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i == s.size() - 1) {
~~^~~~~~~~~~~~~~~
main.cpp: In member function 'int Trie::Prefix(std::__cxx11::string)':
main.cpp:73:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < s.size(); ++i) {
~~^~~~~~~~~~
main.cpp:75:27: warning: array subscript has type 'char' [-Wchar-subscripts]
if(curr->nxt[c] == 0) break;
^
main.cpp:76:31: warning: array subscript has type 'char' [-Wchar-subscripts]
curr = curr->nxt[c];
^
main.cpp:78:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 2ms | 131kb | OK | 5 | 5 |
| 2 | 2ms | 131kb | OK | 5 | 5 |
| 3 | 3ms | 131kb | OK | 5 | 5 |
| 4 | 3ms | 131kb | OK | 5 | 5 |
| 5 | 3ms | 131kb | OK | 5 | 5 |
| 6 | 4ms | 131kb | OK | 5 | 5 |
| 7 | 7ms | 262kb | OK | 5 | 5 |
| 8 | 8ms | 262kb | OK | 5 | 5 |
| 9 | 14ms | 524kb | Incorect | 0 | 0 |
| 10 | 21ms | 1441kb | OK | 5 | 5 |
| 11 | 24ms | 262kb | OK | 5 | 5 |
| 12 | 44ms | 2752kb | Incorect | 0 | 0 |
| 13 | 50ms | 2359kb | Incorect | 0 | 0 |
| 14 | 48ms | 655kb | OK | 5 | 5 |
| 15 | 62ms | 655kb | OK | 5 | 0 |
| 16 | 142ms | 19660kb | Incorect | 0 |
| 17 | 68ms | 262kb | Incorect | 0 | 0 |
| 18 | 134ms | 14548kb | Incorect | 0 |
| 19 | 69ms | 262kb | OK | 5 | 0 |
| 20 | 170ms | 25559kb | Incorect | 0 |
| Punctaj total | 55 |