/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:29:21: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
   scan(a,begin,t,p,q);
                     ^
foo.cc:4:6: note:   initializing argument 4 of 'void scan(std::__cxx11::string, int, int, int&, int&)'
 void scan(string a,int begin,int t,int &p,int &q){
      ^~~~
foo.cc:35:29: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
  scan(a,begin,a.length(),p,q);
                             ^
foo.cc:4:6: note:   initializing argument 4 of 'void scan(std::__cxx11::string, int, int, int&, int&)'
 void scan(string a,int begin,int t,int &p,int &q){
      ^~~~
foo.cc:43:21: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
   scan(a,begin,t,p,q);
                     ^
foo.cc:4:6: note:   initializing argument 4 of 'void scan(std::__cxx11::string, int, int, int&, int&)'
 void scan(string a,int begin,int t,int &p,int &q){
      ^~~~
foo.cc:49:29: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
  scan(a,begin,a.length(),p,q);
                             ^
foo.cc:4:6: note:   initializing argument 4 of 'void scan(std::__cxx11::string, int, int, int&, int&)'
 void scan(string a,int begin,int t,int &p,int &q){
      ^~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1217 乒乓球
语言
C++
递交时间
2021-03-05 23:08:39
评测时间
2021-03-05 23:08:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes