/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:27:69: error: expected ';' before 'for'
   27 |                 for(int j=max(1,i-T);j<i;++j) ans=min(ans,calc(i,j))
      |                                                                     ^
      |                                                                     ;
   28 |                 for(int j=i+1;j<=min(n,i+T);++j) ans=min(ans,calc(i,j));
      |                 ~~~                                                  
foo.cc:28:31: error: 'j' was not declared in this scope
   28 |                 for(int j=i+1;j<=min(n,i+T);++j) ans=min(ans,calc(i,j));
      |                               ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1012 清帝之惑之雍正
语言
C++
递交时间
2023-11-08 09:11:30
评测时间
2023-11-08 09:11:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes