0_0_38642177_9174.cpp: In function 'int main()':
0_0_38642177_9174.cpp:82:13: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
seg_rst(1, L, 1, L, 2);
^
0_0_38642177_9174.cpp:55:6: note: in passing argument 1 of 'void seg_rst(int&, int, int, int, int, int)'
void seg_rst(int &x, int L, int R, int l, int r, int k) {
^~~~~~~
|