Pagini recente » Borderou de evaluare (job #730896) | Borderou de evaluare (job #3120996) | Borderou de evaluare (job #94081) | Borderou de evaluare (job #3182734) | Borderou de evaluare (job #2846242)
Borderou de evaluare (job #2846242)
Raport evaluator
Compilare:
main.cpp: In constructor 'treap::treap(int)':
main.cpp:11:14: warning: 'treap::priority' will be initialized after [-Wreorder]
11 | int val, priority, subtree_size;
| ^~~~~~~~
main.cpp:10:12: warning: 'treap* treap::left' [-Wreorder]
10 | treap *left, *right;
| ^~~~
main.cpp:21:5: warning: when initialized here [-Wreorder]
21 | treap(int x) : val(x), priority(rng()), left(NULL), right(NULL) { update(); }
| ^~~~~
main.cpp: In function 'std::array<treap*, 2> split(treap*, int)':
main.cpp:28:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
28 | auto [res_left, res_right] = split(t -> left, key);
| ^
main.cpp:33:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
33 | auto [res_left, res_right] = split(t -> right, key - size(t -> left) - 1);
| ^
main.cpp: In function 'void insert(int, int)':
main.cpp:67:10: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
67 | auto [l, r] = split(root, pos);
| ^
main.cpp: In function 'void erase(int)':
main.cpp:73:10: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
73 | auto [l, r1] = split(root, pos);
| ^
main.cpp:74:10: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
74 | auto [to_delete, r] = split(r1, 1);
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | OK | 10 |
2 | 44ms | 2191kb | Raspuns gresit3 | 0 |
3 | 69ms | 3330kb | Raspuns gresit4 | 0 |
4 | 69ms | 3235kb | Raspuns gresit3 | 0 |
5 | 228ms | 10678kb | Raspuns gresit3 | 0 |
6 | 35ms | 843kb | Raspuns gresit4 | 0 |
7 | 69ms | 3166kb | Raspuns gresit4 | 0 |
8 | 68ms | 2473kb | Raspuns gresit3 | 0 |
9 | 278ms | 8675kb | Raspuns gresit3 | 0 |
10 | 277ms | 8871kb | Raspuns gresit3 | 0 |
Punctaj total | 10 |