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_22212203_30753.cpp:89:2: error: stray '#' in program
 }#include <iostream>
  ^
0_0_22212203_30753.cpp:89:3: error: 'include' does not name a type
 }#include <iostream>
   ^
0_0_22212203_30753.cpp:95:11: error: redefinition of 'const int maxn'
 const int maxn = 4500;
           ^
0_0_22212203_30753.cpp:7:11: note: 'const int maxn' previously defined here
 const int maxn = 4500;
           ^
0_0_22212203_30753.cpp:96:14: error: redefinition of 'double x [4500]'
 double x[maxn], sum[maxn];
              ^
0_0_22212203_30753.cpp:8:8: note: 'double x [4500]' previously declared here
 double x[maxn], sum[maxn];
        ^
0_0_22212203_30753.cpp:96:25: error: redefinition of 'double sum [4500]'
 double x[maxn], sum[maxn];
                         ^
0_0_22212203_30753.cpp:8:17: note: 'double sum [4500]' previously declared here
 double x[maxn], sum[maxn];
                 ^
0_0_22212203_30753.cpp:97:14: error: redefinition of 'int flag [4500]'
 int flag[maxn];
              ^
0_0_22212203_30753.cpp:9:5: note: 'int flag [4500]' previously declared here
 int flag[maxn];
     ^
0_0_22212203_30753.cpp:98:5: error: redefinition of 'int num_x'
 int num_x;
     ^
0_0_22212203_30753.cpp:10:5: note: 'int num_x' previously declared here
 int num_x;
     ^
0_0_22212203_30753.cpp:99:8: error: redefinition of 'struct Node'
 struct Node {
        ^
0_0_22212203_30753.cpp:11:8: error: previous definition of 'struct Node'
 struct Node {
        ^
0_0_22212203_30753.cpp:107:12: error: invalid type in declaration before ';' token
 }line[maxn];
            ^
0_0_22212203_30753.cpp:107:12: error: conflicting declaration 'int line [4500]'
0_0_22212203_30753.cpp:19:2: note: previous declaration as 'Node line [4500]'
 }line[maxn];
  ^
0_0_22212203_30753.cpp: In function 'int find(double, int)':
0_0_22212203_30753.cpp:109:5: error: redefinition of 'int find(double, int)'
 int find(double val, int n) {
     ^
0_0_22212203_30753.cpp:21:5: note: 'int find(double, int)' previously defined here
 int find(double val, int n) {
     ^
0_0_22212203_30753.cpp: In function 'void push_up(int, int, int)':
0_0_22212203_30753.cpp:123:6: error: redefinition of 'void push_up(int, int, int)'
 void push_up(int node, int left, int right) {
      ^
0_0_22212203_30753.cpp:35:6: note: 'void push_up(int, int, int)' previously defined here
 void push_up(int node, int left, int right) {
      ^
0_0_22212203_30753.cpp: In function 'void update(int, int, int, int, int, int)':
0_0_22212203_30753.cpp:132:6: error: redefinition of 'void update(int, int, int, int, int, int)'
 void update(int node, int left, int right, int begin, int end, int val) {
      ^
0_0_22212203_30753.cpp:44:6: note: 'void update(int, int, int, int, int, int)' previously defined here
 void update(int node, int left, int right, int begin, int end, int val) {
      ^
0_0_22212203_30753.cpp: In function 'int main()':
0_0_22212203_30753.cpp:146:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_22212203_30753.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-10-06 17:52:26, Gzip enabled