QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#45256#4563. Radio TowersMaMengQiCompile Error//C++171.3kb2022-08-22 15:36:302022-08-22 15:36:31

详细

answer.code: In function ‘int max_towers(int, int, int)’:
answer.code:44:38: error: expected ‘;’ before ‘{’ token
   44 |                 if(a[mid]<=(a[pos]-D){
      |                                      ^
      |                                      ;
answer.code:47:18: error: expected primary-expression before ‘else’
   47 |                 }else rS = mid+1;
      |                  ^~~~
answer.code:47:18: error: expected ‘)’ before ‘else’
   47 |                 }else rS = mid+1;
      |                  ^~~~
      |                  )
answer.code:44:19: note: to match this ‘(’
   44 |                 if(a[mid]<=(a[pos]-D){
      |                   ^