F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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)
      ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 04:38:16, Gzip enabled