Pagini recente » Borderou de evaluare (job #425220) | Borderou de evaluare (job #2500697) | Borderou de evaluare (job #98248) | Borderou de evaluare (job #2208096) | Borderou de evaluare (job #2579329)
Borderou de evaluare (job #2579329)
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: In member function 'int Trie::CntAp(std::__cxx11::string)':
main.cpp:58:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < s.size(); ++i) {
~~^~~~~~~~~~
main.cpp:60:31: warning: array subscript has type 'char' [-Wchar-subscripts]
curr = curr->nxt[c];
^
main.cpp:61: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:70:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < s.size(); ++i) {
~~^~~~~~~~~~
main.cpp:72:27: warning: array subscript has type 'char' [-Wchar-subscripts]
if(curr->nxt[c] == 0) break;
^
main.cpp:73:31: warning: array subscript has type 'char' [-Wchar-subscripts]
curr = curr->nxt[c];
^
main.cpp:75:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i == s.size() - 1 && curr->val > 1) {
~~^~~~~~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | Incorect | 0 | 0 |
2 | 2ms | 131kb | Incorect | 0 | 0 |
3 | 3ms | 131kb | Incorect | 0 | 0 |
4 | 3ms | 131kb | Incorect | 0 | 0 |
5 | 3ms | 131kb | Incorect | 0 | 0 |
6 | 4ms | 131kb | Incorect | 0 | 0 |
7 | 6ms | 131kb | Incorect | 0 | 0 |
8 | 7ms | 131kb | Incorect | 0 | 0 |
9 | 11ms | 393kb | Incorect | 0 | 0 |
10 | 18ms | 1441kb | Incorect | 0 | 0 |
11 | 19ms | 262kb | Incorect | 0 | 0 |
12 | 32ms | 2752kb | Killed by Signal 11 | 0 | 0 |
13 | 32ms | 2228kb | Incorect | 0 | 0 |
14 | 38ms | 655kb | Incorect | 0 | 0 |
15 | 45ms | 655kb | Incorect | 0 | 0 |
16 | 99ms | 18874kb | Killed by Signal 11 | 0 |
17 | 48ms | 131kb | Incorect | 0 | 0 |
18 | 77ms | 13893kb | Killed by Signal 11 | 0 |
19 | 50ms | 131kb | Incorect | 0 | 0 |
20 | 140ms | 25427kb | Killed by Signal 11 | 0 |
Punctaj total | 0 |