Borderou de evaluare (job #2846227)
Utilizator | Data | 8 februarie 2022 23:21:32 | |
---|---|---|---|
Problema | Rotatii | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'std::array<treap*, 2> split(treap*, int)':
main.cpp:32:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
32 | auto [res_left, res_right] = split(t -> left, key);
| ^
main.cpp:37:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
37 | auto [res_left, res_right] = split(t -> right, key - size(t -> left) - 1);
| ^
main.cpp: In function 'void insert(int, int)':
main.cpp:74:10: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
74 | auto [l, r] = split(root, pos);
| ^
main.cpp: In function 'void erase(int)':
main.cpp:80:10: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
80 | auto [l, r1] = split(root, pos);
| ^
main.cpp:81:10: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
81 | auto [to_delete, r] = split(r1, 1);
| ^
main.cpp: In function 'int solve()':
main.cpp:88:1: warning: no return statement in function returning non-void [-Wreturn-type]
88 | }
| ^
main.cpp: In function 'int main()':
main.cpp:105:5: error: expected primary-expression before '}' token
105 | }
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !