QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#591158#837. Giant PenguinZ_301Compile Error//C++178.1kb2024-09-26 14:32:172024-09-26 14:32:17

Details

answer.code:158:2: error: stray ‘#’ in program
  158 | }#include<bits/stdc++.h>
      |  ^
answer.code:158:3: error: ‘include’ does not name a type
  158 | }#include<bits/stdc++.h>
      |   ^~~~~~~
answer.code:182:11: error: redefinition of ‘const int N’
  182 | const int N=2e5+10,Z=1e9;
      |           ^
answer.code:25:11: note: ‘const int N’ previously defined here
   25 | const int N=2e5+10,Z=1e9;
      |           ^
answer.code:182:20: error: redefinition of ‘const int Z’
  182 | const int N=2e5+10,Z=1e9;
      |                    ^
answer.code:25:20: note: ‘const int Z’ previously defined here
   25 | const int N=2e5+10,Z=1e9;
      |                    ^
answer.code:183:5: error: redefinition of ‘int n’
  183 | int n;
      |     ^
answer.code:26:5: note: ‘int n’ previously declared here
   26 | int n;
      |     ^
answer.code:184:5: error: redefinition of ‘int qc’
  184 | int qc,ans[N],f1[N],K;
      |     ^~
answer.code:27:5: note: ‘int qc’ previously declared here
   27 | int qc,ans[N],f1[N],K;
      |     ^~
answer.code:184:8: error: redefinition of ‘int ans [200010]’
  184 | int qc,ans[N],f1[N],K;
      |        ^~~
answer.code:27:8: note: ‘int ans [200010]’ previously declared here
   27 | int qc,ans[N],f1[N],K;
      |        ^~~
answer.code:184:15: error: redefinition of ‘int f1 [200010]’
  184 | int qc,ans[N],f1[N],K;
      |               ^~
answer.code:27:15: note: ‘int f1 [200010]’ previously declared here
   27 | int qc,ans[N],f1[N],K;
      |               ^~
answer.code:184:21: error: redefinition of ‘int K’
  184 | int qc,ans[N],f1[N],K;
      |                     ^
answer.code:27:21: note: ‘int K’ previously declared here
   27 | int qc,ans[N],f1[N],K;
      |                     ^
answer.code:185:5: error: redefinition of ‘pii q [200010]’
  185 | pii q[N];
      |     ^
answer.code:28:5: note: ‘pii q [200010]’ previously declared here
   28 | pii q[N];
      |     ^
answer.code:186:5: error: redefinition of ‘int fd(int)’
  186 | int fd(int u) { return f1[u]==u?u:f1[u]=fd(f1[u]); }
      |     ^~
answer.code:29:5: note: ‘int fd(int)’ previously defined here
   29 | int fd(int u) { return f1[u]==u?u:f1[u]=fd(f1[u]); }
      |     ^~
answer.code:187:11: error: redefinition of ‘std::__cxx11::basic_string<int> t [200010]’
  187 | vect<int> t[N];
      |           ^
answer.code:30:11: note: ‘std::__cxx11::basic_string<int> t [200010]’ previously declared here
   30 | vect<int> t[N];
      |           ^
answer.code:188:11: error: redefinition of ‘std::__cxx11::basic_string<std::array<int, 2> > t2 [200010]’
  188 | vect<pii> t2[N];
      |           ^~
answer.code:31:11: note: ‘std::__cxx11::basic_string<std::array<int, 2> > t2 [200010]’ previously declared here
   31 | vect<pii> t2[N];
      |           ^~
answer.code:189:6: error: redefinition of ‘bool vis [200010]’
  189 | bool vis[N];
      |      ^~~
answer.code:32:6: note: ‘bool vis [200010]’ previously declared here
   32 | bool vis[N];
      |      ^~~
answer.code:190:5: error: redefinition of ‘int sz [200010]’
  190 | int sz[N];
      |     ^~
answer.code:33:5: note: ‘int sz [200010]’ previously declared here
   33 | int sz[N];
      |     ^~
answer.code:191:5: error: redefinition of ‘int getrt(int, int, int)’
  191 | int getrt(int u,int fa,int n) {
      |     ^~~~~
answer.code:34:5: note: ‘int getrt(int, int, int)’ previously defined here
   34 | int getrt(int u,int fa,int n) {
      |     ^~~~~
answer.code:200:11: error: redefinition of ‘std::__cxx11::basic_string<int> p1’
  200 | vect<int> p1;
      |           ^~
answer.code:43:11: note: ‘std::__cxx11::basic_string<int> p1’ previously declared here
   43 | vect<int> p1;
      |           ^~
answer.code:201:5: error: redefinition of ‘int col [200010]’
  201 | int col[N];
      |     ^~~
answer.code:44:5: note: ‘int col [200010]’ previously declared here
   44 | int col[N];
      |     ^~~
answer.code:202:6: error: redefinition of ‘void dfs1(int, int)’
  202 | void dfs1(int u,int fa) {
      |      ^~~~
answer.code:45:6: note: ‘void dfs1(int, int)’ previously defined here
   45 | void dfs1(int u,int fa) {
      |      ^~~~
answer.code:208:5: error: redefinition of ‘int id [200010]’
  208 | int id[N];
      |     ^~
answer.code:51:5: note: ‘int id [200010]’ previously declared here
   51 | int id[N];
      |     ^~
answer.code:209:5: error: redefinition of ‘int d [30][200010]’
  209 | int d[30][N];
      |     ^
answer.code:52:5: note: ‘int d [30][200010]’ previously declared here
   52 | int d[30][N];
      |     ^
answer.code:210:6: error: redefinition of ‘void get(int, int*)’
  210 | void get(int u,int *d) {
      |      ^~~
answer.code:53:6: note: ‘void get(int, int*)’ previously defined here
   53 | void get(int u,int *d) {
      |      ^~~
answer.code:227:6: error: redefinition of ‘void solve(int, int, std::__cxx11::basic_string<std::array<int, 3> >, std::__cxx11::basic_string<int>)’
  227 | void solve(int u,int n,vect<a3> e,vect<int> op) {
      |      ^~~~~
answer.co...