Pagini recente » Borderou de evaluare (job #2332899) | Borderou de evaluare (job #676613) | Borderou de evaluare (job #426671) | Borderou de evaluare (job #553561) | Borderou de evaluare (job #2933212)
Borderou de evaluare (job #2933212)
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 |
1 | 30ms | 40308kb | OK | 5 |
2 | 29ms | 40255kb | OK | 5 |
3 | 27ms | 40292kb | OK | 5 |
4 | 29ms | 40316kb | OK | 5 |
5 | 27ms | 40321kb | OK | 5 |
6 | 29ms | 40288kb | Incorect | 0 |
7 | 89ms | 41721kb | OK | 5 |
8 | 115ms | 41848kb | Incorect | 0 |
9 | 120ms | 42000kb | OK | 5 |
10 | 115ms | 41959kb | OK | 5 |
11 | 87ms | 40947kb | Incorect | 0 |
12 | 105ms | 41226kb | OK | 5 |
13 | 116ms | 41332kb | Incorect | 0 |
14 | 109ms | 41267kb | OK | 5 |
15 | 120ms | 41480kb | OK | 5 |
16 | 119ms | 41422kb | Incorect | 0 |
17 | 117ms | 41463kb | OK | 5 |
18 | 120ms | 41476kb | Incorect | 0 |
19 | 207ms | 55799kb | OK | 5 |
20 | 111ms | 41418kb | OK | 5 |
Punctaj total | 70 |