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_38790277_2470.cpp:144:15: error: redefinition of 'constexpr const long long int maxn'
  144 | constexpr int maxn=2e5+10,inf=INT_MAX;
      |               ^~~~
0_0_38790277_2470.cpp:7:15: note: 'constexpr const long long int maxn' previously defined here
    7 | constexpr int maxn=2e5+10,inf=INT_MAX;
      |               ^~~~
0_0_38790277_2470.cpp:144:27: error: redefinition of 'constexpr const long long int inf'
  144 | constexpr int maxn=2e5+10,inf=INT_MAX;
      |                           ^~~
0_0_38790277_2470.cpp:7:27: note: 'constexpr const long long int inf' previously defined here
    7 | constexpr int maxn=2e5+10,inf=INT_MAX;
      |                           ^~~
0_0_38790277_2470.cpp:145:5: error: redefinition of 'long long int n'
  145 | int n,tot=1,s,t,cnt;
      |     ^
0_0_38790277_2470.cpp:8:5: note: 'long long int n' previously declared here
    8 | int n,tot=1,s,t,cnt;
      |     ^
0_0_38790277_2470.cpp:145:7: error: redefinition of 'long long int tot'
  145 | int n,tot=1,s,t,cnt;
      |       ^~~
0_0_38790277_2470.cpp:8:7: note: 'long long int tot' previously defined here
    8 | int n,tot=1,s,t,cnt;
      |       ^~~
0_0_38790277_2470.cpp:145:13: error: redefinition of 'long long int s'
  145 | int n,tot=1,s,t,cnt;
      |             ^
0_0_38790277_2470.cpp:8:13: note: 'long long int s' previously declared here
    8 | int n,tot=1,s,t,cnt;
      |             ^
0_0_38790277_2470.cpp:145:15: error: redefinition of 'long long int t'
  145 | int n,tot=1,s,t,cnt;
      |               ^
0_0_38790277_2470.cpp:8:15: note: 'long long int t' previously declared here
    8 | int n,tot=1,s,t,cnt;
      |               ^
0_0_38790277_2470.cpp:145:17: error: redefinition of 'long long int cnt'
  145 | int n,tot=1,s,t,cnt;
      |                 ^~~
0_0_38790277_2470.cpp:8:17: note: 'long long int cnt' previously declared here
    8 | int n,tot=1,s,t,cnt;
      |                 ^~~
0_0_38790277_2470.cpp:146:5: error: redefinition of 'long long int head [200010]'
  146 | int head[maxn],d[maxn],dist[maxn],Q[maxn],work[maxn];
      |     ^~~~
0_0_38790277_2470.cpp:9:5: note: 'long long int head [200010]' previously declared here
    9 | int head[maxn],d[maxn],dist[maxn],Q[maxn],work[maxn];
      |     ^~~~
0_0_38790277_2470.cpp:146:16: error: redefinition of 'long long int d [200010]'
  146 | int head[maxn],d[maxn],dist[maxn],Q[maxn],work[maxn];
      |                ^
0_0_38790277_2470.cpp:9:16: note: 'long long int d [200010]' previously declared here
    9 | int head[maxn],d[maxn],dist[maxn],Q[maxn],work[maxn];
      |                ^
0_0_38790277_2470.cpp:146:24: error: redefinition of 'long long int dist [200010]'
  146 | int head[maxn],d[maxn],dist[maxn],Q[maxn],work[maxn];
      |                        ^~~~
0_0_38790277_2470.cpp:9:24: note: 'long long int dist [200010]' previously declared here
    9 | int head[maxn],d[maxn],dist[maxn],Q[maxn],work[maxn];
      |                        ^~~~
0_0_38790277_2470.cpp:146:35: error: redefinition of 'long long int Q [200010]'
  146 | int head[maxn],d[maxn],dist[maxn],Q[maxn],work[maxn];
      |                                   ^
0_0_38790277_2470.cpp:9:35: note: 'long long int Q [200010]' previously declared here
    9 | int head[maxn],d[maxn],dist[maxn],Q[maxn],work[maxn];
      |                                   ^
0_0_38790277_2470.cpp:146:43: error: redefinition of 'long long int work [200010]'
  146 | int head[maxn],d[maxn],dist[maxn],Q[maxn],work[maxn];
      |                                           ^~~~
0_0_38790277_2470.cpp:9:43: note: 'long long int work [200010]' previously declared here
    9 | int head[maxn],d[maxn],dist[maxn],Q[maxn],work[maxn];
      |                                           ^~~~
0_0_38790277_2470.cpp:147:6: error: redefinition of 'bool vis [200010]'
  147 | bool vis[maxn];
      |      ^~~
0_0_38790277_2470.cpp:10:6: note: 'bool vis [200010]' previously declared here
   10 | bool vis[maxn];
      |      ^~~
0_0_38790277_2470.cpp:148:8: error: redefinition of 'struct Node'
  148 | struct Node{
      |        ^~~~
0_0_38790277_2470.cpp:11:8: note: previous definition of 'struct Node'
   11 | struct Node{
      |        ^~~~
0_0_38790277_2470.cpp:150:2: error: conflicting declaration 'int e [200010]'
  150 | }e[maxn];
      |  ^
0_0_38790277_2470.cpp:13:2: note: previous declaration as 'Node e [200010]'
   13 | }e[maxn];
      |  ^
0_0_38790277_2470.cpp:151:8: error: redefinition of 'struct node'
  151 | struct node{
      |        ^~~~
0_0_38790277_2470.cpp:14:8: note: previous definition of 'struct node'
   14 | struct node{
      |        ^~~~
0_0_38790277_2470.cpp:153:2: error: conflicting declaration 'int eg [200010]'
  153 | }eg[maxn];
      |  ^~
0_0_38790277_2470.cpp:16:2: note: previous declaration as 'node eg [200010]'
   16 | }eg[maxn];
      |  ^~
0_0_38790277_2470.cpp:154:13: error: redefinition of 'std::vector<std::pair<long long int, long long int> > g [200010]'
  154 | vector<pii> g[maxn];
      |             ^
0_0_38790277_2470.cpp:17:13: note: 'std::vector<std::pair<long long int, long long int> > g [200010]' previously defined here
   17 | vector<pii> g[maxn];
      |             ^
0_0_38790277_2470.cpp:155:6: error: redefinition of 'void add_edge(long long int, long long int, long long int)'
  155 | void add_edge(int u,int v,int w){
      |      ^~~~~~~~
0_0_38790277_2470.cpp:18:6: note: 'void add_edge(long long int, long long int, long long int)' previously defined here
   18 | void add_edge(int u,int v,int w){
      |      ^~~~~~~~
0_0_38790277_2470.cpp:162:6: error: redefinition of 'bool bfs()'
  162 | bool bfs(){
      |      ^~~
0_0_38790277_2470.cpp:25:6: note: 'bool bfs()' previously defined here
   25 | bool bfs(){
      |      ^~~
0_0_38790277_2470.cpp:179:5: error: redefinition of 'long long int dfs(long long int, long long int)'
  179 | int dfs(int x,int flow){
      |     ^~~
0_0_38790277_2470.cpp:42:5: note: 'long long int dfs(long long int, long long int)' previously defined here
   42 | int dfs(int x,int flow){
      |     ^~~
0_0_38790277_2470.cpp:194:5: error: redefinition of 'long long int dinic_flow()'
  194 | int dinic_flow(){
      |     ^~~~~~~~~~
0_0_38790277_2470.cpp:57:5: note: 'long long int dinic_flow()' previously defined here
   57 | int dinic_flow(){
      |     ^~~~~~~~~~
0_0_38790277_2470.cpp:206:6: error: redefinition of 'void dij(long long int)'
  206 | void dij(int s){
      |      ^~~
0_0_38790277_2470.cpp:69:6: note: 'void dij(long long int)' previously defined here
   69 | void dij(int s){
      |      ^~~
0_0_38790277_2470.cpp:225:6: error: redefinition of 'void bfs_mind(long long int)'
  225 | void bfs_mind(int s){
      |      ^~~~~~~~
0_0_38790277_2470.cpp:88:6: note: 'void bfs_mind(long long int)' previously defined here
   88 | void bfs_mind(int s){
      |      ^~~~~~~~
0_0_38790277_2470.cpp:245:6: error: redefinition of 'void solve()'
  245 | void solve(){
      |      ^~~~~
0_0_38790277_2470.cpp:108:6: note: 'void solve()' previously defined here
  108 | void solve(){
      |      ^~~~~
0_0_38790277_2470.cpp:265:8: error: redefinition of 'int main()'
  265 | signed main(){
      |        ^~~~
0_0_38790277_2470.cpp:128:8: note: 'int main()' previously defined here
  128 | signed 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-26 14:44:19, Gzip enabled