QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#93526#5531. ICCdong_liuCompile Error//C++171.4kb2023-04-01 10:01:512024-07-01 04:28:09

詳細信息

answer.code: In function ‘void run(int)’:
answer.code:20:16: error: ‘N’ was not declared in this scope
   20 |   static int c[N];
      |                ^
answer.code:22:23: error: ‘c’ was not declared in this scope
   22 |   for(int i=0;i<n;i++)c[i]=i,v[i].push_back(i);
      |                       ^
answer.code:22:30: error: ‘v’ was not declared in this scope
   22 |   for(int i=0;i<n;i++)c[i]=i,v[i].push_back(i);
      |                              ^
answer.code:27:10: error: ‘c’ was not declared in this scope
   27 |       if(c[j]==j)
      |          ^
answer.code:28:9: error: ‘u’ was not declared in this scope
   28 |         u[k++]=j;
      |         ^
answer.code:31:14: error: ‘u’ was not declared in this scope
   31 |         swap(u[i],u[rng()%(i+1)]);
      |              ^
answer.code:34:19: error: ‘v’ was not declared in this scope
   34 |         for(int j:v[u[i]])
      |                   ^
answer.code:34:21: error: ‘u’ was not declared in this scope
   34 |         for(int j:v[u[i]])
      |                     ^
answer.code:35:11: error: ‘o’ was not declared in this scope
   35 |           o[m++]=j+1;
      |           ^
answer.code:38:19: error: ‘v’ was not declared in this scope
   38 |         for(int j:v[u[i]])
      |                   ^
answer.code:38:21: error: ‘u’ was not declared in this scope
   38 |         for(int j:v[u[i]])
      |                     ^
answer.code:39:11: error: ‘o’ was not declared in this scope
   39 |           o[m++]=j;
      |           ^
answer.code:40:22: error: ‘a’ was not declared in this scope
   40 |       if(query(t,n-t,a,a+t))break;
      |                      ^
answer.code:45:27: error: ‘a’ was not declared in this scope
   45 |       if(query(m-l1+1,n-t,a+l1,b))r1=m;
      |                           ^
answer.code:45:32: error: ‘b’ was not declared in this scope
   45 |       if(query(m-l1+1,n-t,a+l1,b))r1=m;
      |                                ^
answer.code:46:12: error: ‘l1m’ was not declared in this scope; did you mean ‘l1’?
   46 |       else l1m+1;
      |            ^~~
      |            l1
answer.code:51:25: error: ‘a’ was not declared in this scope
   51 |       if(query(t,m-l2+1,a,b+l2))r2=m;
      |                         ^
answer.code:51:27: error: ‘b’ was not declared in this scope
   51 |       if(query(t,m-l2+1,a,b+l2))r2=m;
      |                           ^
In file included from /usr/include/c++/13/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:106,
                 from answer.code:1:
answer.code:54:20: error: ‘o’ was not declared in this scope
   54 |     assert(setRoad(o[l1], o[l2]));
      |                    ^
answer.code:55:11: error: ‘c’ was not declared in this scope
   55 |     int p=c[o[l1]],q=c[o[l2]];
      |           ^
answer.code:56:15: error: ‘v’ was not declared in this scope
   56 |     for(int i:v[q]){
      |               ^
answer.code:56:17: error: ‘q’ was not declared in this scope
   56 |     for(int i:v[q]){
      |                 ^
answer.code:60:5: error: ‘v’ was not declared in this scope
   60 |     v[q].clear();
      |     ^
answer.code:60:7: error: ‘q’ was not declared in this scope
   60 |     v[q].clear();
      |       ^
answer.code:62:23: error: ‘v’ was not declared in this scope
   62 |   for(int i=0;i<n;i++)v[i].clear();
      |                       ^