QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#45256#4563. Radio TowersMaMengQiCompile Error//C++171.3kb2022-08-22 15:36:302022-08-22 15:36:31

Details

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){
      |                   ^