0_0_30235305_22171.cpp: In function 'int main()':
0_0_30235305_22171.cpp:105:25: error: invalid initialization of non-const reference of type 'std::string& {aka std::basic_string<char>&}' from an rvalue of type 'std::string {aka std::basic_string<char>}'
if(cmp(b,div(c,a),val)){
^
0_0_30235305_22171.cpp:50:6: note: in passing argument 2 of 'bool cmp(std::string&, std::string&, int&)'
bool cmp(string& x1,string& x2,int &value)
^
0_0_30235305_22171.cpp:118:24: error: invalid initialization of non-const reference of type 'std::string& {aka std::basic_string<char>&}' from an rvalue of type 'std::string {aka std::basic_string<char>}'
if(cmp(b,div(c,a),val)){
^
0_0_30235305_22171.cpp:50:6: note: in passing argument 2 of 'bool cmp(std::string&, std::string&, int&)'
bool cmp(string& x1,string& x2,int &value)
^
0_0_30235305_22171.cpp:134:25: error: invalid initialization of non-const reference of type 'std::string& {aka std::basic_string<char>&}' from an rvalue of type 'std::string {aka std::basic_string<char>}'
if(cmp(a,div(c,b),val)){
^
0_0_30235305_22171.cpp:50:6: note: in passing argument 2 of 'bool cmp(std::string&, std::string&, int&)'
bool cmp(string& x1,string& x2,int &value)
^
0_0_30235305_22171.cpp:146:25: error: invalid initialization of non-const reference of type 'std::string& {aka std::basic_string<char>&}' from an rvalue of type 'std::string {aka std::basic_string<char>}'
if(cmp(a,div(c,b),val)){
^
0_0_30235305_22171.cpp:50:6: note: in passing argument 2 of 'bool cmp(std::string&, std::string&, int&)'
bool cmp(string& x1,string& x2,int &value)
^
|