QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#329518#5463. Range Closest Pair of Points QueryFantasy_BallCompile Error//C++141.2kb2024-02-16 20:27:112024-02-16 20:27:12

詳細信息

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);
      |                           ~~~~~^~~~~~~~~~~~~~~~~~~~