QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#556642 | #7859. Bladestorm | rotcar08 | Compile Error | / | / | C++14 | 280b | 2024-09-10 19:53:55 | 2024-09-10 19:53:55 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void solve()’: answer.code:5:23: error: ‘n’ was not declared in this scope; did you mean ‘yn’? 5 | scanf("%d%d",&n,&k);B=sqrt(n); | ^ | yn answer.code:5:26: error: ‘k’ was not declared in this scope 5 | scanf("%d%d",&n,&k);B=sqrt(n); | ^ answer.code:5:29: error: ‘B’ was not declared in this scope 5 | scanf("%d%d",&n,&k);B=sqrt(n); | ^ answer.code:6:42: error: ‘a’ was not declared in this scope 6 | for(int i=1;i<=n;i++)scanf("%d",&a[i]); | ^ answer.code:8:17: error: ‘bel’ was not declared in this scope 8 | bel[i]=(i-1)/B+1; | ^~~ answer.code:9:21: error: ‘L’ was not declared in this scope 9 | if(!L[x])L[x]=i;R[x]=i; | ^ answer.code:9:33: error: ‘R’ was not declared in this scope 9 | if(!L[x])L[x]=i;R[x]=i; | ^ answer.code: In function ‘int main()’: answer.code:13:20: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 13 | int T;scanf("%d",&T); | ~~~~~^~~~~~~~~