0_0_39720493_13993.cpp: In function 'int main()':
0_0_39720493_13993.cpp:72:24: error: invalid conversion from 'int' to 'tree*' [-fpermissive]
72 | modify(t, l, r, 1);
| ^
| |
| int
0_0_39720493_13993.cpp:44:19: note: initializing argument 1 of 'void modify(tree*, int, int, int, int)'
44 | void modify(tree* t, int l, int r, int c, int x = 1) {
| ~~~~~~^
0_0_39720493_13993.cpp:77:26: error: invalid types 'int[int]' for array subscript
77 | if (t[1].fmax >= l) {
| ^
0_0_39720493_13993.cpp:78:42: error: invalid conversion from 'int' to 'tree*' [-fpermissive]
78 | int u = findleft(t, l);
| ^
| |
| int
0_0_39720493_13993.cpp:33:20: note: initializing argument 1 of 'int findleft(tree*, int, int)'
33 | int findleft(tree* t, int c, int x = 1) {
| ~~~~~~^
0_0_39720493_13993.cpp:79:32: error: invalid conversion from 'int' to 'tree*' [-fpermissive]
79 | modify(t, u, u + l - 1, 0);
| ^
| |
| int
0_0_39720493_13993.cpp:44:19: note: initializing argument 1 of 'void modify(tree*, int, int, int, int)'
44 | void modify(tree* t, int l, int r, int c, int x = 1) {
| ~~~~~~^
0_0_39720493_13993.cpp:85:26: error: invalid types 'int[int]' for array subscript
85 | if (t[1].fmax >= l) {
| ^
0_0_39720493_13993.cpp:86:42: error: invalid conversion from 'int' to 'tree*' [-fpermissive]
86 | int u = findleft(t, l);
| ^
| |
| int
0_0_39720493_13993.cpp:33:20: note: initializing argument 1 of 'int findleft(tree*, int, int)'
33 | int findleft(tree* t, int c, int x = 1) {
| ~~~~~~^
0_0_39720493_13993.cpp:87:32: error: invalid conversion from 'int' to 'tree*' [-fpermissive]
87 | modify(t, u, u + l - 1, 0);
| ^
| |
| int
0_0_39720493_13993.cpp:44:19: note: initializing argument 1 of 'void modify(tree*, int, int, int, int)'
44 | void modify(tree* t, int l, int r, int c, int x = 1) {
| ~~~~~~^
|