QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#707968#8939. Permutationucup-team5027Compile Error//C++141.1kb2024-11-03 18:29:572024-11-03 18:29:58

详细

answer.code: In function ‘int solve(int, int, int)’:
answer.code:22:17: error: ‘mid’ was not declared in this scope
   22 |                 mid=(2*l+3*r)/5;
      |                 ^~~
answer.code:30:17: error: ‘mid’ was not declared in this scope
   30 |                 mid=min((3*l+2*r)/5,r-1);
      |                 ^~~