xoranges.cpp: In function 'int main()':
xoranges.cpp:31:36: error: invalid initialization of reference of type 'int (&)[400010]' from expression of type 'int [600010]'
31 | update(1, n, i, in, 1, od);
| ^~
xoranges.cpp:7:61: note: in passing argument 6 of 'void update(int, int, int, int, int, int (&)[400010])'
7 | void update(int l, int r, int idx, int val, int node, int (&seg)[400010]) {
| ~~~~~~^~~~~~~~~~~~
xoranges.cpp:33:36: error: invalid initialization of reference of type 'int (&)[400010]' from expression of type 'int [600010]'
33 | update(1, n, i, in, 1, ev);
| ^~
xoranges.cpp:7:61: note: in passing argument 6 of 'void update(int, int, int, int, int, int (&)[400010])'
7 | void update(int l, int r, int idx, int val, int node, int (&seg)[400010]) {
| ~~~~~~^~~~~~~~~~~~
xoranges.cpp:40:51: error: invalid initialization of reference of type 'int (&)[400010]' from expression of type 'int [600010]'
40 | if(id%2 == 0) update(1, n, id, va, 1, ev);
| ^~
xoranges.cpp:7:61: note: in passing argument 6 of 'void update(int, int, int, int, int, int (&)[400010])'
7 | void update(int l, int r, int idx, int val, int node, int (&seg)[400010]) {
| ~~~~~~^~~~~~~~~~~~
xoranges.cpp:41:42: error: invalid initialization of reference of type 'int (&)[400010]' from expression of type 'int [600010]'
41 | else update(1, n, id, va, 1, od);
| ^~
xoranges.cpp:7:61: note: in passing argument 6 of 'void update(int, int, int, int, int, int (&)[400010])'
7 | void update(int l, int r, int idx, int val, int node, int (&seg)[400010]) {
| ~~~~~~^~~~~~~~~~~~
xoranges.cpp:46:48: error: invalid initialization of reference of type 'int (&)[400010]' from expression of type 'int [600010]'
46 | cout << query(1, n, st, en, 1, od) << "\n";
| ^~
xoranges.cpp:18:57: note: in passing argument 6 of 'int query(int, int, int, int, int, int (&)[400010])'
18 | int query(int l, int r, int ql, int qr, int node, int (&seg)[400010]) {
| ~~~~~~^~~~~~~~~~~~
xoranges.cpp:48:48: error: invalid initialization of reference of type 'int (&)[400010]' from expression of type 'int [600010]'
48 | cout << query(1, n, st, en, 1, ev) << "\n";
| ^~
xoranges.cpp:18:57: note: in passing argument 6 of 'int query(int, int, int, int, int, int (&)[400010])'
18 | int query(int l, int r, int ql, int qr, int node, int (&seg)[400010]) {
| ~~~~~~^~~~~~~~~~~~