QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#329518 | #5463. Range Closest Pair of Points Query | Fantasy_Ball | Compile Error | / | / | C++14 | 1.2kb | 2024-02-16 20:27:11 | 2024-02-16 20:27:12 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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); | ~~~~~^~~~~~~~~~~~~~~~~~~~