QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#728684#8951. 澡堂HuluoboCompile Error//C++142.4kb2024-11-09 15:39:462024-11-09 15:39:49

詳細信息

answer.code: In member function ‘ll Ds::eval(int, int, ll)’:
answer.code:16:54: error: ‘T’ was not declared in this scope
   16 |                 return x*(r-l+1)+(ll)(r-l+1)*(r-l)/2*T-(sum[r]-sum[l-1]);
      |                                                      ^
answer.code: In member function ‘int Ds::nxt(int, ll)’:
answer.code:22:46: error: ‘T’ was not declared in this scope
   22 |                         if(query(i,mid)<=x-i*T)l=mid+1;
      |                                              ^
answer.code: In member function ‘ll Ds::query(int, int, ll&)’:
answer.code:32:51: error: ‘T’ was not declared in this scope
   32 |                 if(i>r)ans=eval(l,r,x),x+=(r-l+1)*T;
      |                                                   ^
answer.code:43:74: error: ‘T’ was not declared in this scope
   43 |                         ans+=dep[i]-dep[k]+eval(k,r,t[k]),x=t[k]+(r-k+1)*T;
      |                                                                          ^
answer.code: In member function ‘void Ds::init()’:
answer.code:50:42: error: ‘T’ was not declared in this scope
   50 |                         stb[0][i]=t[i]-i*T,sum[i]=sum[i-1]+t[i];
      |                                          ^