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()
^
|