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_20763494_4241.cpp: In function 'void run(int, int)':
0_0_20763494_4241.cpp:221:73: 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>}'
   int a_play = GetCommand(play(Alist1, Alist2, Blist1, Blist2, vs[a], 0));
                                                                         ^
0_0_20763494_4241.cpp:89:5: note: in passing argument 1 of 'int GetCommand(std::string&)'
 int GetCommand(string& comm){
     ^
0_0_20763494_4241.cpp:222:73: 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>}'
   int b_play = GetCommand(play(Blist1, Blist2, Alist1, Alist2, vs[b], 0));
                                                                         ^
0_0_20763494_4241.cpp:89:5: note: in passing argument 1 of 'int GetCommand(std::string&)'
 int GetCommand(string& comm){
     ^


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