Borderou de evaluare (job #2933210)

Utilizator RobertAcAcatrinei Robert-Marian RobertAc Data 4 noiembrie 2022 20:46:36
Problema Rps Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 60

Raport evaluator

Compilare: main.cpp: In function 'void add(int, std::string&, int)': main.cpp:36:34: warning: array subscript has type 'char' [-Wchar-subscripts] 36 | if (tree[node].nxt[toInt[s[ind]]] == 0) | ^ main.cpp:38:32: warning: array subscript has type 'char' [-Wchar-subscripts] 38 | tree[node].nxt[toInt[s[ind]]] = nodes++; | ^ main.cpp:40:34: warning: array subscript has type 'char' [-Wchar-subscripts] 40 | add(tree[node].nxt[toInt[s[ind]]], s, ind + 1); | ^ main.cpp: In function 'void query(int, std::string&)': main.cpp:57:16: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 57 | if (s.size() == k) | ~~~~~~~~~^~~~ main.cpp:64:62: warning: array subscript has type 'char' [-Wchar-subscripts] 64 | if (tree[node].dp == (tree[tree[node].nxt[toInt[toBeaten[c]]]].stop) * | ^ main.cpp:64:63: warning: array subscript has type 'char' [-Wchar-subscripts] 64 | if (tree[node].dp == (tree[tree[node].nxt[toInt[toBeaten[c]]]].stop) * | ~~~~~~~~~~^ main.cpp:66:56: warning: array subscript has type 'char' [-Wchar-subscripts] 66 | tree[tree[node].nxt[toInt[c]]].dp) | ^ main.cpp:71:28: warning: array subscript has type 'char' [-Wchar-subscripts] 71 | if (tree[node].nxt[toInt[res]] == 0) | ^~~ main.cpp:72:26: warning: array subscript has type 'char' [-Wchar-subscripts] 72 | tree[node].nxt[toInt[res]] = nodes++; | ^~~ main.cpp:74:30: warning: array subscript has type 'char' [-Wchar-subscripts] 74 | query(tree[node].nxt[toInt[res]], s); | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
115ms20267kbOK5
214ms20267kbOK5
312ms20217kbOK5
414ms20258kbOK5
515ms20205kbOK5
614ms20312kbIncorect0
773ms21626kbOK5
894ms21815kbIncorect0
9100ms21905kbKilled by Signal 110
10100ms21876kbOK5
1175ms21000kbIncorect0
1284ms21090kbOK5
1396ms21282kbIncorect0
1491ms21311kbOK5
1599ms21348kbOK5
16103ms21405kbIncorect0
1799ms21377kbOK5
18104ms21422kbIncorect0
19160ms35561kbKilled by Signal 110
2095ms21254kbOK5
Punctaj total60

Ceva nu functioneaza?