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