QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#787607#4561. Catfish Farmwang23Compile Error//C++146.9kb2024-11-27 13:27:492024-11-27 13:27:50

詳細信息

answer.code:156:10: error: redefinition of ‘const ll maxn’
  156 | const ll maxn=3e5+5;
      |          ^~~~
answer.code:15:10: note: ‘const ll maxn’ previously defined here
   15 | const ll maxn=3e5+5;
      |          ^~~~
answer.code:157:10: error: redefinition of ‘const ll offset’
  157 | const ll offset=2e5;
      |          ^~~~~~
answer.code:16:10: note: ‘const ll offset’ previously defined here
   16 | const ll offset=2e5;
      |          ^~~~~~
answer.code:158:10: error: redefinition of ‘const ll inf’
  158 | const ll inf=1e18;
      |          ^~~
answer.code:17:10: note: ‘const ll inf’ previously defined here
   17 | const ll inf=1e18;
      |          ^~~
answer.code:159:11: error: redefinition of ‘const long long int base’
  159 | const int base=550;
      |           ^~~~
answer.code:18:11: note: ‘const long long int base’ previously defined here
   18 | const int base=550;
      |           ^~~~
answer.code:160:10: error: redefinition of ‘const ll mod’
  160 | const ll mod=998244353;
      |          ^~~
answer.code:19:10: note: ‘const ll mod’ previously defined here
   19 | const ll mod=998244353;
      |          ^~~
answer.code:162:5: error: redefinition of ‘long long int n’
  162 | int n,m,dp[maxn][2];
      |     ^
answer.code:21:5: note: ‘long long int n’ previously declared here
   21 | int n,m,dp[maxn][2];
      |     ^
answer.code:162:7: error: redefinition of ‘long long int m’
  162 | int n,m,dp[maxn][2];
      |       ^
answer.code:21:7: note: ‘long long int m’ previously declared here
   21 | int n,m,dp[maxn][2];
      |       ^
answer.code:162:9: error: redefinition of ‘long long int dp [300005][2]’
  162 | int n,m,dp[maxn][2];
      |         ^~
answer.code:21:9: note: ‘long long int dp [300005][2]’ previously declared here
   21 | int n,m,dp[maxn][2];
      |         ^~
answer.code:163:5: error: redefinition of ‘pii b [300005]’
  163 | pii b[maxn];
      |     ^
answer.code:22:5: note: ‘pii b [300005]’ previously defined here
   22 | pii b[maxn];
      |     ^
answer.code:164:5: error: redefinition of ‘long long int pre [300005]’
  164 | int pre[maxn];
      |     ^~~
answer.code:23:5: note: ‘long long int pre [300005]’ previously declared here
   23 | int pre[maxn];
      |     ^~~
answer.code:165:8: error: redefinition of ‘struct fish’
  165 | struct fish
      |        ^~~~
answer.code:24:8: note: previous definition of ‘struct fish’
   24 | struct fish
      |        ^~~~
answer.code:173:14: error: redefinition of ‘std::vector<fish> a’
  173 | vector<fish> a;
      |              ^
answer.code:32:14: note: ‘std::vector<fish> a’ previously declared here
   32 | vector<fish> a;
      |              ^
answer.code:175:8: error: redefinition of ‘struct Segment_tree’
  175 | struct Segment_tree
      |        ^~~~~~~~~~~~
answer.code:34:8: note: previous definition of ‘struct Segment_tree’
   34 | struct Segment_tree
      |        ^~~~~~~~~~~~
answer.code:197:2: error: conflicting declaration ‘int tree1’
  197 | }tree1,tree2,tree3;
      |  ^~~~~
answer.code:56:2: note: previous declaration as ‘Segment_tree tree1’
   56 | }tree1,tree2,tree3;
      |  ^~~~~
answer.code:197:8: error: conflicting declaration ‘int tree2’
  197 | }tree1,tree2,tree3;
      |        ^~~~~
answer.code:56:8: note: previous declaration as ‘Segment_tree tree2’
   56 | }tree1,tree2,tree3;
      |        ^~~~~
answer.code:197:14: error: conflicting declaration ‘int tree3’
  197 | }tree1,tree2,tree3;
      |              ^~~~~
answer.code:56:14: note: previous declaration as ‘Segment_tree tree3’
   56 | }tree1,tree2,tree3;
      |              ^~~~~
answer.code:199:5: error: redefinition of ‘pii id(long long int, long long int, long long int)’
  199 | pii id(int u,int l,int r)
      |     ^~
answer.code:58:5: note: ‘pii id(long long int, long long int, long long int)’ previously defined here
   58 | pii id(int u,int l,int r)
      |     ^~
answer.code:206:11: error: redefinition of ‘long long int max_weights(int32_t, int32_t, std::vector<int>, std::vector<int>, std::vector<int>)’
  206 | long long max_weights(int32_t N, int32_t M, std::vector<int32_t> X, std::vector<int32_t> Y, std::vector<int32_t> W) {
      |           ^~~~~~~~~~~
answer.code:65:11: note: ‘long long int max_weights(int32_t, int32_t, std::vector<int>, std::vector<int>, std::vector<int>)’ previously defined here
   65 | long long max_weights(int32_t N, int32_t M, std::vector<int32_t> X, std::vector<int32_t> Y, std::vector<int32_t> W) {
      |           ^~~~~~~~~~~