QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#93527#5531. ICCdong_liuCompile Error//C++171.4kb2023-04-01 10:02:382024-07-01 04:28:09

詳細信息

answer.code: In function ‘void run(int)’:
answer.code:42:22: error: ‘a’ was not declared in this scope
   42 |       if(query(t,n-t,a,a+t))break;
      |                      ^
answer.code:47:27: error: ‘a’ was not declared in this scope
   47 |       if(query(m-l1+1,n-t,a+l1,b))r1=m;
      |                           ^
answer.code:47:32: error: ‘b’ was not declared in this scope
   47 |       if(query(m-l1+1,n-t,a+l1,b))r1=m;
      |                                ^
answer.code:53:25: error: ‘a’ was not declared in this scope
   53 |       if(query(t,m-l2+1,a,b+l2))r2=m;
      |                         ^
answer.code:53:27: error: ‘b’ was not declared in this scope
   53 |       if(query(t,m-l2+1,a,b+l2))r2=m;
      |                           ^
In file included from /usr/include/c++/13/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:106,
                 from answer.code:1:
answer.code:56:5: error: invalid ‘static_cast’ from type ‘void’ to type ‘bool’
   56 |     assert(setRoad(o[l1], o[l2]));
      |     ^~~~~~