F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_38661013_9514.cpp:95:2: error: stray '#' in program
 }#include <iostream>
  ^
0_0_38661013_9514.cpp:95:3: error: 'include' does not name a type
 }#include <iostream>
   ^~~~~~~
0_0_38661013_9514.cpp:108:11: error: redefinition of 'const int MaxN'
 const int MaxN = 2e5 + 5;
           ^~~~
0_0_38661013_9514.cpp:14:11: note: 'const int MaxN' previously defined here
 const int MaxN = 2e5 + 5;
           ^~~~
0_0_38661013_9514.cpp:109:17: error: redefinition of 'const long long int MOD'
 const long long MOD = 1e9 + 7;
                 ^~~
0_0_38661013_9514.cpp:15:17: note: 'const long long int MOD' previously defined here
 const long long MOD = 1e9 + 7;
                 ^~~
0_0_38661013_9514.cpp:110:20: error: redefinition of 'std::vector<int> mp [200005]'
 vector<int> mp[MaxN];
                    ^
0_0_38661013_9514.cpp:16:13: note: 'std::vector<int> mp [200005]' previously declared here
 vector<int> mp[MaxN];
             ^~
0_0_38661013_9514.cpp:111:18: error: redefinition of 'long long int dp [200005]'
 long long dp[MaxN];
                  ^
0_0_38661013_9514.cpp:17:11: note: 'long long int dp [200005]' previously declared here
 long long dp[MaxN];
           ^~
0_0_38661013_9514.cpp:113:6: error: redefinition of 'void dfs1(int, int)'
 void dfs1(int po, int fa) {
      ^~~~
0_0_38661013_9514.cpp:19:6: note: 'void dfs1(int, int)' previously defined here
 void dfs1(int po, int fa) {
      ^~~~
0_0_38661013_9514.cpp:126:11: error: redefinition of 'long long int ans'
 long long ans = 0;
           ^~~
0_0_38661013_9514.cpp:32:11: note: 'long long int ans' previously defined here
 long long ans = 0;
           ^~~
0_0_38661013_9514.cpp:128:6: error: redefinition of 'void dfs2(int, int)'
 void dfs2(int po, int fa) {
      ^~~~
0_0_38661013_9514.cpp:34:6: note: 'void dfs2(int, int)' previously defined here
 void dfs2(int po, int fa) {
      ^~~~
0_0_38661013_9514.cpp:149:11: error: redefinition of 'long long int quickmin(long long int, long long int)'
 long long quickmin(long long A, long long N) {
           ^~~~~~~~
0_0_38661013_9514.cpp:55:11: note: 'long long int quickmin(long long int, long long int)' previously defined here
 long long quickmin(long long A, long long N) {
           ^~~~~~~~
0_0_38661013_9514.cpp:164:6: error: redefinition of 'void solve()'
 void solve() {
      ^~~~~
0_0_38661013_9514.cpp:70:6: note: 'void solve()' previously defined here
 void solve() {
      ^~~~~
0_0_38661013_9514.cpp:183:5: error: redefinition of 'int main()'
 int main() {
     ^~~~
0_0_38661013_9514.cpp:89:5: note: 'int main()' previously defined here
 int main() {
     ^~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-17 13:53:33, Gzip enabled