QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#772057#9564. Hey, Have You Seen My Kangaroo?ucup-team232Compile Error//C++141.7kb2024-11-22 16:45:202024-11-22 16:45:20

详细

answer.code: In function ‘int main()’:
answer.code:14:18: error: ‘ufs’ was not declared in this scope; did you mean ‘ffs’?
   14 |         iota(all(ufs),1);
      |                  ^~~
answer.code:3:27: note: in definition of macro ‘all’
    3 | #define all(c) std::begin(c),std::end(c)
      |                           ^
answer.code:14:9: error: ‘iota’ was not declared in this scope; did you mean ‘std::iota’?
   14 |         iota(all(ufs),1);
      |         ^~~~
      |         std::iota
In file included from /usr/include/c++/13/numeric:62,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:58,
                 from answer.code:1:
/usr/include/c++/13/bits/stl_numeric.h:88:5: note: ‘std::iota’ declared here
   88 |     iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value)
      |     ^~~~
answer.code:15:23: warning: comma-separated list in using-declaration only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   15 |         using std::cin,std::cerr,std::cout;
      |                       ^
answer.code:15:33: warning: comma-separated list in using-declaration only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   15 |         using std::cin,std::cerr,std::cout;
      |                                 ^
answer.code:24:11: error: missing template arguments before ‘mp’
   24 |         V mp(n+2,vi(m+2));
      |           ^~
answer.code:25:18: error: ‘mp’ was not declared in this scope; did you mean ‘m’?
   25 |         auto tim=mp,vis=mp;
      |                  ^~
      |                  m
answer.code:26:11: error: missing template arguments before ‘dep’
   26 |         V dep(n+2,vi(m+2,-1));
      |           ^~~
answer.code:27:11: error: missing template arguments before ‘pos’
   27 |         V pos(n+2,V<pii>(m+2));
      |           ^~~
answer.code:32:22: error: ‘pos’ was not declared in this scope; did you mean ‘pow’?
   32 |                 if(c)pos[i][j]=pii(i,j);
      |                      ^~~
      |                      pow
answer.code:34:19: error: ‘pos’ was not declared in this scope; did you mean ‘ipos’?
   34 |         auto ipos=pos;
      |                   ^~~
      |                   ipos
answer.code:37:24: error: ‘a’ was not declared in this scope
   37 |                 switch(a[_]){
      |                        ^
answer.code:45:38: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   45 |                                 auto&[x,y]=pos[i][j];
      |                                      ^
answer.code:47:43: error: ‘y2’ was not declared in this scope; did you mean ‘x2’?
   47 |                                 if(mp[x2][y2]){
      |                                           ^~
      |                                           x2
answer.code:59:60: error: ‘vis’ was not declared in this scope; did you mean ‘vi’?
   59 |                         for(int j=1;j<=m;++j)if(mp[i][j]&&!vis[x][y]){
      |                                                            ^~~
      |                                                            vi
answer.code:59:64: error: ‘x’ was not declared in this scope
   59 |                         for(int j=1;j<=m;++j)if(mp[i][j]&&!vis[x][y]){
      |                                                                ^
answer.code:59:67: error: ‘y’ was not declared in this scope
   59 |                         for(int j=1;j<=m;++j)if(mp[i][j]&&!vis[x][y]){
      |                                                                   ^
answer.code:61:37: error: redeclaration of ‘int x’
   61 |                                 int x=i,y=j;
      |                                     ^
answer.code:59:64: note: ‘<typeprefixerror>x’ previously declared here
   59 |                         for(int j=1;j<=m;++j)if(mp[i][j]&&!vis[x][y]){
      |                                                                ^
answer.code:61:41: error: redeclaration of ‘int y’
   61 |                                 int x=i,y=j;
      |                                         ^
answer.code:59:67: note: ‘<typeprefixerror>y’ previously declared here
   59 |                         for(int j=1;j<=m;++j)if(mp[i][j]&&!vis[x][y]){
      |                                                                   ^
answer.code:71:49: error: ‘dep’ was not declared in this scope
   71 |                                                 dep[x][y]=0;
      |                                                 ^~~
answer.code:76:43: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   76 |                                 for(auto&&[x,y]:pth)if(!~dep[x][y]){
      |                                           ^
answer.code:76:58: error: ‘dep’ was not declared in this scope
   76 |                                 for(auto&&[x,y]:pth)if(!~dep[x][y]){
      |                                                          ^~~
answer.code:77:45: warning: structur...