Pagini recente » Borderou de evaluare (job #1603879) | Borderou de evaluare (job #193853) | Borderou de evaluare (job #680075) | Borderou de evaluare (job #2519060) | Borderou de evaluare (job #2933215)
Borderou de evaluare (job #2933215)
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:65:62: warning: array subscript has type 'char' [-Wchar-subscripts]
65 | if (tree[node].dp == (tree[tree[node].nxt[toInt[toBeaten[c]]]].stop) *
| ^
main.cpp:65:63: warning: array subscript has type 'char' [-Wchar-subscripts]
65 | if (tree[node].dp == (tree[tree[node].nxt[toInt[toBeaten[c]]]].stop) *
| ~~~~~~~~~~^
main.cpp:67:40: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
67 | (s.size() == k - 1 ? (tree[tree[node].nxt[toInt[c]]].stop * d) : tree[tree[node].nxt[toInt[c]]].dp))
| ~~~~~~~~~^~~~~~~~
main.cpp:67:78: warning: array subscript has type 'char' [-Wchar-subscripts]
67 | (s.size() == k - 1 ? (tree[tree[node].nxt[toInt[c]]].stop * d) : tree[tree[node].nxt[toInt[c]]].dp))
| ^
main.cpp:67:121: warning: array subscript has type 'char' [-Wchar-subscripts]
67 | (s.size() == k - 1 ? (tree[tree[node].nxt[toInt[c]]].stop * d) : tree[tree[node].nxt[toInt[c]]].dp))
| ^
main.cpp:72:28: warning: array subscript has type 'char' [-Wchar-subscripts]
72 | if (tree[node].nxt[toInt[res]] == 0)
| ^~~
main.cpp:73:26: warning: array subscript has type 'char' [-Wchar-subscripts]
73 | tree[node].nxt[toInt[res]] = nodes++;
| ^~~
main.cpp:75:30: warning: array subscript has type 'char' [-Wchar-subscripts]
75 | query(tree[node].nxt[toInt[res]], s);
| ^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 30ms | 40300kb | OK | 5 |
2 | 27ms | 40329kb | OK | 5 |
3 | 27ms | 40247kb | OK | 5 |
4 | 29ms | 40341kb | OK | 5 |
5 | 29ms | 40345kb | OK | 5 |
6 | 28ms | 40280kb | OK | 5 |
7 | 89ms | 41754kb | OK | 5 |
8 | 111ms | 41934kb | OK | 5 |
9 | 118ms | 42061kb | OK | 5 |
10 | 117ms | 42033kb | OK | 5 |
11 | 87ms | 41005kb | OK | 5 |
12 | 105ms | 41164kb | OK | 5 |
13 | 116ms | 41373kb | OK | 5 |
14 | 109ms | 41340kb | OK | 5 |
15 | 113ms | 41443kb | OK | 5 |
16 | 117ms | 41426kb | OK | 5 |
17 | 117ms | 41443kb | OK | 5 |
18 | 120ms | 41410kb | OK | 5 |
19 | 218ms | 57499kb | OK | 5 |
20 | 114ms | 41381kb | OK | 5 |
Punctaj total | 100 |