0_0_38754938_27254.cpp: In function 'void update(long long int&, long long int, long long int, long long int)':
0_0_38754938_27254.cpp:54:17: error: cannot bind non-const lvalue reference of type 'long long int&' to a value of type 'int'
54 | #define ls t[p].lc
| ~~~~~^~
0_0_38754938_27254.cpp:77:25: note: in expansion of macro 'ls'
77 | if(mid >= x) update(ls, L, mid, x);
| ^~
0_0_38754938_27254.cpp:66:18: note: initializing argument 1 of 'void update(long long int&, long long int, long long int, long long int)'
66 | void update(int &p, int L, int R, int x) {
| ^
0_0_38754938_27254.cpp:55:17: error: cannot bind non-const lvalue reference of type 'long long int&' to a value of type 'int'
55 | #define rs t[p].rc
| ~~~~~^~
0_0_38754938_27254.cpp:78:17: note: in expansion of macro 'rs'
78 | else update(rs, mid + 1, R, x);
| ^~
0_0_38754938_27254.cpp:66:18: note: initializing argument 1 of 'void update(long long int&, long long int, long long int, long long int)'
66 | void update(int &p, int L, int R, int x) {
| ^
0_0_38754938_27254.cpp: In function 'void dfs(long long int)':
0_0_38754938_27254.cpp:94:22: error: cannot bind non-const lvalue reference of type 'long long int&' to a value of type 'int'
94 | update(root[x], 1, n, SAM::endpos[x]);
| ~~~~~~^
0_0_38754938_27254.cpp:66:18: note: initializing argument 1 of 'void update(long long int&, long long int, long long int, long long int)'
66 | void update(int &p, int L, int R, int x) {
| ^
|