Borderou de evaluare (job #2872166)
Utilizator | Data | 16 martie 2022 14:00:11 | |
---|---|---|---|
Problema | Hotel | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void update_node(int, int, int)':
main.cpp:32:45: error: 'middle' was not declared in this scope
32 | (segment_tree[left_son].left_max == middle - left + 1) ?
| ^~~~~~
main.cpp:29:9: warning: unused variable 'mid' [-Wunused-variable]
29 | int mid = (left + right) / 2, left_son = 2 * node, right_son = 2 * node + 1;
| ^~~
main.cpp: In function 'int main(int, const char**)':
main.cpp:72:46: error: too many arguments to function 'void update()'
72 | update(1, 1, n, left, right, type);
| ^
main.cpp:47:6: note: declared here
47 | void update()
| ^~~~~~
main.cpp:76:32: error: too many arguments to function 'void update_lazy()'
76 | update_lazy(1, 1, n);
| ^
main.cpp:22:6: note: declared here
22 | void update_lazy()
| ^~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !