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_22628215_9467.cpp:74:2: error: stray '#' in program
 }#include<bits/stdc++.h>
  ^
0_0_22628215_9467.cpp:74:3: error: 'include' does not name a type
 }#include<bits/stdc++.h>
   ^
0_0_22628215_9467.cpp:77:11: error: redefinition of 'const int maxn'
 const int maxn=1005;
           ^
0_0_22628215_9467.cpp:4:11: note: 'const int maxn' previously defined here
 const int maxn=1005;
           ^
0_0_22628215_9467.cpp:78:11: error: redefinition of 'const int INF'
 const int INF=1e9+7;
           ^
0_0_22628215_9467.cpp:5:11: note: 'const int INF' previously defined here
 const int INF=1e9+7;
           ^
0_0_22628215_9467.cpp:80:8: error: redefinition of 'struct node'
 struct node{
        ^
0_0_22628215_9467.cpp:7:8: error: previous definition of 'struct node'
 struct node{
        ^
0_0_22628215_9467.cpp:82:11: error: invalid type in declaration before ';' token
 }e[2*maxn];
           ^
0_0_22628215_9467.cpp:82:11: error: conflicting declaration 'int e [2010]'
0_0_22628215_9467.cpp:9:2: note: previous declaration as 'node e [2010]'
 }e[2*maxn];
  ^
0_0_22628215_9467.cpp:84:5: error: redefinition of 'int n'
 int n,m,tot;
     ^
0_0_22628215_9467.cpp:11:5: note: 'int n' previously declared here
 int n,m,tot;
     ^
0_0_22628215_9467.cpp:84:7: error: redefinition of 'int m'
 int n,m,tot;
       ^
0_0_22628215_9467.cpp:11:7: note: 'int m' previously declared here
 int n,m,tot;
       ^
0_0_22628215_9467.cpp:84:9: error: redefinition of 'int tot'
 int n,m,tot;
         ^
0_0_22628215_9467.cpp:11:9: note: 'int tot' previously declared here
 int n,m,tot;
         ^
0_0_22628215_9467.cpp:85:12: error: redefinition of 'int dp [1005]'
 int dp[maxn],head[maxn];
            ^
0_0_22628215_9467.cpp:12:5: note: 'int dp [1005]' previously declared here
 int dp[maxn],head[maxn];
     ^
0_0_22628215_9467.cpp:85:23: error: redefinition of 'int head [1005]'
 int dp[maxn],head[maxn];
                       ^
0_0_22628215_9467.cpp:12:14: note: 'int head [1005]' previously declared here
 int dp[maxn],head[maxn];
              ^
0_0_22628215_9467.cpp: In function 'void Inite()':
0_0_22628215_9467.cpp:87:6: error: redefinition of 'void Inite()'
 void Inite(){
      ^
0_0_22628215_9467.cpp:14:6: note: 'void Inite()' previously defined here
 void Inite(){
      ^
0_0_22628215_9467.cpp: In function 'void addedge(int, int, int)':
0_0_22628215_9467.cpp:92:6: error: redefinition of 'void addedge(int, int, int)'
 void addedge(int u,int v,int w){
      ^
0_0_22628215_9467.cpp:19:6: note: 'void addedge(int, int, int)' previously defined here
 void addedge(int u,int v,int w){
      ^
0_0_22628215_9467.cpp: In function 'void DFS(int, int, int)':
0_0_22628215_9467.cpp:99:6: error: redefinition of 'void DFS(int, int, int)'
 void DFS(int pa,int u,int limit){
      ^
0_0_22628215_9467.cpp:26:6: note: 'void DFS(int, int, int)' previously defined here
 void DFS(int pa,int u,int limit){
      ^
0_0_22628215_9467.cpp: In function 'bool check(int)':
0_0_22628215_9467.cpp:113:6: error: redefinition of 'bool check(int)'
 bool check(int limit){
      ^
0_0_22628215_9467.cpp:40:6: note: 'bool check(int)' previously defined here
 bool check(int limit){
      ^
0_0_22628215_9467.cpp: In function 'void Solve()':
0_0_22628215_9467.cpp:119:6: error: redefinition of 'void Solve()'
 void Solve(){
      ^
0_0_22628215_9467.cpp:46:6: note: 'void Solve()' previously defined here
 void Solve(){
      ^
0_0_22628215_9467.cpp: In function 'int main()':
0_0_22628215_9467.cpp:131:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_22628215_9467.cpp:58:5: note: 'int main()' previously defined here
 int main()
     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 01:23:01, Gzip enabled