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_23248514_31448.cpp:139:16: error: redefinition of 'struct TNode'
 typedef struct TNode{
                ^
0_0_23248514_31448.cpp:11:16: error: previous definition of 'struct TNode'
 typedef struct TNode{ 
                ^
0_0_23248514_31448.cpp:147:6: error: invalid type in declaration before ';' token
 }Node;
      ^
0_0_23248514_31448.cpp:147:6: error: conflicting declaration 'typedef int Node'
0_0_23248514_31448.cpp:19:2: note: previous declaration as 'typedef struct TNode Node'
 }Node; 
  ^
0_0_23248514_31448.cpp:149:5: error: redefinition of 'int sum'
 int sum = 0;
     ^
0_0_23248514_31448.cpp:21:5: note: 'int sum' previously defined here
 int sum = 0; 
     ^
0_0_23248514_31448.cpp: In function 'Node* newnd(char*)':
0_0_23248514_31448.cpp:152:7: error: redefinition of 'Node* newnd(char*)'
 Node* newnd(char *ch)
       ^
0_0_23248514_31448.cpp:25:7: note: 'Node* newnd(char*)' previously defined here
 Node* newnd(char *ch) 
       ^
0_0_23248514_31448.cpp: In function 'Node* addnd(Node*, char*)':
0_0_23248514_31448.cpp:177:7: error: redefinition of 'Node* addnd(Node*, char*)'
 Node* addnd(Node *nd, char *ch)
       ^
0_0_23248514_31448.cpp:51:7: note: 'Node* addnd(Node*, char*)' previously defined here
 Node* addnd(Node *nd, char *ch) 
       ^
0_0_23248514_31448.cpp: In function 'void Inorder(Node*)':
0_0_23248514_31448.cpp:216:7: error: redefinition of 'void Inorder(Node*)'
 void  Inorder(Node* root)
       ^
0_0_23248514_31448.cpp:91:7: note: 'void Inorder(Node*)' previously defined here
 void  Inorder(Node* root) 
       ^
0_0_23248514_31448.cpp: In function 'int main()':
0_0_23248514_31448.cpp:235:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_23248514_31448.cpp:111: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-07-09 00:07:44, Gzip enabled