Problem segmenttree2
User Nur47
Submission Time 2023-01-04 15:28:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree2.cpp: In function ‘int main()’:
segmenttree2.cpp:118:11: error: cannot bind non-const lvalue reference of type ‘int&’ to an rvalue of type ‘int’
118 | fastscan(n); fastscan(q);
| ^
segmenttree2.cpp:84:20: note: initializing argument 1 of ‘void fastscan(int&)’
84 | void fastscan(int &number)
| ~~~~~^~~~~~
segmenttree2.cpp:118:24: error: cannot bind non-const lvalue reference of type ‘int&’ to an rvalue of type ‘int’
118 | fastscan(n); fastscan(q);
| ^
segmenttree2.cpp:84:20: note: initializing argument 1 of ‘void fastscan(int&)’
84 | void fastscan(int &number)
| ~~~~~^~~~~~
segmenttree2.cpp:122:18: error: cannot bind non-const lvalue reference of type ‘int&’ to an rvalue of type ‘int’
122 | fastscan(t);
| ^
segmenttree2.cpp:84:20: note: initializing argument 1 of ‘void fastscan(int&)’
84