0_0_38959849_26616.cpp: In function 'int fun(int&)':
0_0_38959849_26616.cpp:25:98: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
25 | if(num[ind] != '4' && !(ind > 0 && num[ind] == '2' && num[ind--] == '6')) ans += fun(ind + 1);
| ~~~~^~~
0_0_38959849_26616.cpp:19:14: note: initializing argument 1 of 'int fun(int&)'
19 | int fun(int &ind){
| ~~~~~^~~
0_0_38959849_26616.cpp: In function 'int main()':
0_0_38959849_26616.cpp:43:30: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
43 | int bb = fun(0);
| ^
0_0_38959849_26616.cpp:19:14: note: initializing argument 1 of 'int fun(int&)'
19 | int fun(int &ind){
| ~~~~~^~~
0_0_38959849_26616.cpp:44:36: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
44 | num = to_string1(a - 1);
| ~~^~~
0_0_38959849_26616.cpp:10:24: note: initializing argument 1 of 'std::string to_string1(int&)'
10 | string to_string1(int &u){
| ~~~~~^
0_0_38959849_26616.cpp:45:30: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
45 | int aa = fun(0);
| ^
0_0_38959849_26616.cpp:19:14: note: initializing argument 1 of 'int fun(int&)'
19 | int fun(int &ind){
| ~~~~~^~~
|