QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#329518#5463. Range Closest Pair of Points QueryFantasy_BallCompile Error//C++141.2kb2024-02-16 20:27:112024-02-16 20:27:12

Details

answer.code: In function ‘int main()’:
answer.code:35:21: error: ‘j’ was not declared in this scope
   35 |                 for(j=1;j<i;j++) ins(j,dis(i,j));
      |                     ^
answer.code:23:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   23 |         scanf("%d%d",&n,&q);
      |         ~~~~~^~~~~~~~~~~~~~
answer.code:24:32: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   24 |         for(i=1;i<=n;i++) scanf("%d%d",&x[i],&y[i]);
      |                           ~~~~~^~~~~~~~~~~~~~~~~~~~
answer.code:25:32: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   25 |         for(i=1;i<=q;i++) scanf("%d%d",&l[i],&r[i]),Q[r[i]].emplace_back(i);
      |                           ~~~~~^~~~~~~~~~~~~~~~~~~~