QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#275789#7875. Queue Sortingucup-team965Compile Error//C++142.1kb2023-12-05 01:46:002023-12-05 01:46:01

詳細信息

answer.code: In function ‘void solve()’:
answer.code:55:22: error: ‘i’ was not declared in this scope
   55 |     for(int pos = 1; i < n; i++) {
      |                      ^
answer.code:61:32: error: ‘r’ was not declared in this scope
   61 |                 l = max(l, 1), r = min(r, a[i + 1]);
      |                                ^