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_26970178_21199.cpp:204:2: error: stray '#' in program
 }#include<stdio.h>
  ^
0_0_26970178_21199.cpp:204:3: error: 'include' does not name a type
 }#include<stdio.h>
   ^
0_0_26970178_21199.cpp:211:9: error: redefinition of 'int SP::T'
     int T, node;
         ^
0_0_26970178_21199.cpp:9:9: note: 'int SP::T' previously declared here
     int T, node;
         ^
0_0_26970178_21199.cpp:211:12: error: redefinition of 'int SP::node'
     int T, node;
            ^
0_0_26970178_21199.cpp:9:12: note: 'int SP::node' previously declared here
     int T, node;
            ^
0_0_26970178_21199.cpp:212:12: error: redefinition of 'struct SP::Splay'
     struct Splay
            ^
0_0_26970178_21199.cpp:10:12: error: previous definition of 'struct SP::Splay'
     struct Splay
            ^
0_0_26970178_21199.cpp:222:14: error: invalid type in declaration before ';' token
     }sp[MAXD];
              ^
0_0_26970178_21199.cpp:222:14: error: conflicting declaration 'int SP::sp [200010]'
0_0_26970178_21199.cpp:20:6: note: previous declaration as 'SP::Splay SP::sp [200010]'
     }sp[MAXD];
      ^
0_0_26970178_21199.cpp: In function 'void SP::init()':
0_0_26970178_21199.cpp:223:10: error: redefinition of 'void SP::init()'
     void init()
          ^
0_0_26970178_21199.cpp:21:10: note: 'void SP::init()' previously defined here
     void init()
          ^
0_0_26970178_21199.cpp: At global scope:
0_0_26970178_21199.cpp:230:17: error: redefinition of 'void SP::Splay::update()'
     inline void Splay::update()
                 ^
0_0_26970178_21199.cpp:28:17: note: 'void SP::Splay::update()' previously defined here
     inline void Splay::update()
                 ^
0_0_26970178_21199.cpp:237:17: error: redefinition of 'void SP::Splay::zig(int)'
     inline void Splay::zig(int x)
                 ^
0_0_26970178_21199.cpp:35:17: note: 'void SP::Splay::zig(int)' previously defined here
     inline void Splay::zig(int x)
                 ^
0_0_26970178_21199.cpp:247:17: error: redefinition of 'void SP::Splay::zag(int)'
     inline void Splay::zag(int x)
                 ^
0_0_26970178_21199.cpp:45:17: note: 'void SP::Splay::zag(int)' previously defined here
     inline void Splay::zag(int x)
                 ^
0_0_26970178_21199.cpp:257:10: error: redefinition of 'void SP::Splay::splay(int, int)'
     void Splay::splay(int x, int goal)
          ^
0_0_26970178_21199.cpp:55:10: note: 'void SP::Splay::splay(int, int)' previously defined here
     void Splay::splay(int x, int goal)
          ^
0_0_26970178_21199.cpp: In function 'void SP::newnode(int&)':
0_0_26970178_21199.cpp:281:10: error: redefinition of 'void SP::newnode(int&)'
     void newnode(int &cur)
          ^
0_0_26970178_21199.cpp:79:10: note: 'void SP::newnode(int&)' previously defined here
     void newnode(int &cur)
          ^
0_0_26970178_21199.cpp: In function 'int SP::insert(int&, int, int)':
0_0_26970178_21199.cpp:286:9: error: redefinition of 'int SP::insert(int&, int, int)'
     int insert(int &cur, int fa, int key)
         ^
0_0_26970178_21199.cpp:84:9: note: 'int SP::insert(int&, int, int)' previously defined here
     int insert(int &cur, int fa, int key)
         ^
0_0_26970178_21199.cpp: In function 'int SP::find(int)':
0_0_26970178_21199.cpp:292:9: error: redefinition of 'int SP::find(int)'
     int find(int k)
         ^
0_0_26970178_21199.cpp:90:9: note: 'int SP::find(int)' previously defined here
     int find(int k)
         ^
0_0_26970178_21199.cpp: At global scope:
0_0_26970178_21199.cpp:306:5: error: redefinition of 'int N'
 int N, D, min[4 * MAXD], loc[MAXD][2];
     ^
0_0_26970178_21199.cpp:104:5: note: 'int N' previously declared here
 int N, D, min[4 * MAXD], loc[MAXD][2];
     ^
0_0_26970178_21199.cpp:306:8: error: redefinition of 'int D'
 int N, D, min[4 * MAXD], loc[MAXD][2];
        ^
0_0_26970178_21199.cpp:104:8: note: 'int D' previously declared here
 int N, D, min[4 * MAXD], loc[MAXD][2];
        ^
0_0_26970178_21199.cpp:306:23: error: redefinition of 'int min [800040]'
 int N, D, min[4 * MAXD], loc[MAXD][2];
                       ^
0_0_26970178_21199.cpp:104:11: note: 'int min [800040]' previously declared here
 int N, D, min[4 * MAXD], loc[MAXD][2];
           ^
0_0_26970178_21199.cpp:306:37: error: redefinition of 'int loc [200010][2]'
 int N, D, min[4 * MAXD], loc[MAXD][2];
                                     ^
0_0_26970178_21199.cpp:104:26: note: 'int loc [200010][2]' previously declared here
 int N, D, min[4 * MAXD], loc[MAXD][2];
                          ^
0_0_26970178_21199.cpp: In function 'void update(int)':
0_0_26970178_21199.cpp:307:6: error: redefinition of 'void update(int)'
 void update(int i)
      ^
0_0_26970178_21199.cpp:105:6: note: 'void update(int)' previously defined here
 void update(int i)
      ^
0_0_26970178_21199.cpp: In function 'void init()':
0_0_26970178_21199.cpp:311:6: error: redefinition of 'void init()'
 void init()
      ^
0_0_26970178_21199.cpp:109:6: note: 'void init()' previously defined here
 void init()
      ^
0_0_26970178_21199.cpp: In function 'int find()':
0_0_26970178_21199.cpp:318:5: error: redefinition of 'int find()'
 int find()
     ^
0_0_26970178_21199.cpp:116:5: note: 'int find()' previously defined here
 int find()
     ^
0_0_26970178_21199.cpp: In function 'void insert(int)':
0_0_26970178_21199.cpp:328:6: error: redefinition of 'void insert(int)'
 void insert(int p)
      ^
0_0_26970178_21199.cpp:126:6: note: 'void insert(int)' previously defined here
 void insert(int p)
      ^
0_0_26970178_21199.cpp: In function 'void remove(int)':
0_0_26970178_21199.cpp:365:6: error: redefinition of 'void remove(int)'
 void remove(int i)
      ^
0_0_26970178_21199.cpp:163:6: note: 'void remove(int)' previously defined here
 void remove(int i)
      ^
0_0_26970178_21199.cpp: In function 'void query(int)':
0_0_26970178_21199.cpp:378:6: error: redefinition of 'void query(int)'
 void query(int i)
      ^
0_0_26970178_21199.cpp:176:6: note: 'void query(int)' previously defined here
 void query(int i)
      ^
0_0_26970178_21199.cpp: In function 'void solve()':
0_0_26970178_21199.cpp:384:6: error: redefinition of 'void solve()'
 void solve()
      ^
0_0_26970178_21199.cpp:182:6: note: 'void solve()' previously defined here
 void solve()
      ^
0_0_26970178_21199.cpp: In function 'int main()':
0_0_26970178_21199.cpp:396:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_26970178_21199.cpp:194: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-09-28 12:20:46, Gzip enabled