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_17914247_16477.cpp:86:1: error: stray '\346' in program
 <p><span style="font-size:17px"><strong>2. 鎸囬拡鍔ㄦ佸唴瀛樺垎閰嶇増</strong></span>
 ^
0_0_17914247_16477.cpp:86:1: error: stray '\214' in program
0_0_17914247_16477.cpp:86:1: error: stray '\207' in program
0_0_17914247_16477.cpp:86:1: error: stray '\351' in program
0_0_17914247_16477.cpp:86:1: error: stray '\222' in program
0_0_17914247_16477.cpp:86:1: error: stray '\210' in program
0_0_17914247_16477.cpp:86:1: error: stray '\345' in program
0_0_17914247_16477.cpp:86:1: error: stray '\212' in program
0_0_17914247_16477.cpp:86:1: error: stray '\250' in program
0_0_17914247_16477.cpp:86:1: error: stray '\346' in program
0_0_17914247_16477.cpp:86:1: error: stray '\200' in program
0_0_17914247_16477.cpp:86:1: error: stray '\201' in program
0_0_17914247_16477.cpp:86:1: error: stray '\345' in program
0_0_17914247_16477.cpp:86:1: error: stray '\206' in program
0_0_17914247_16477.cpp:86:1: error: stray '\205' in program
0_0_17914247_16477.cpp:86:1: error: stray '\345' in program
0_0_17914247_16477.cpp:86:1: error: stray '\255' in program
0_0_17914247_16477.cpp:86:1: error: stray '\230' in program
0_0_17914247_16477.cpp:86:1: error: stray '\345' in program
0_0_17914247_16477.cpp:86:1: error: stray '\210' in program
0_0_17914247_16477.cpp:86:1: error: stray '\206' in program
0_0_17914247_16477.cpp:86:1: error: stray '\351' in program
0_0_17914247_16477.cpp:86:1: error: stray '\205' in program
0_0_17914247_16477.cpp:86:1: error: stray '\215' in program
0_0_17914247_16477.cpp:86:1: error: stray '\347' in program
0_0_17914247_16477.cpp:86:1: error: stray '\211' in program
0_0_17914247_16477.cpp:86:1: error: stray '\210' in program
0_0_17914247_16477.cpp:89:25: error: stray '#' in program
 <pre class="brush:cpp ">#include<iostream>
                         ^
0_0_17914247_16477.cpp:84:2: error: expected unqualified-id before '<' token
 }</pre>
  ^
0_0_17914247_16477.cpp:97:7: error: redefinition of 'class Node'
 class Node{
       ^
0_0_17914247_16477.cpp:9:7: error: previous definition of 'class Node'
 class Node{
       ^
0_0_17914247_16477.cpp:104:13: error: conflicting declaration 'std::stack<Node*> st'
 stack<Node*>st;
             ^
0_0_17914247_16477.cpp:16:11: note: previous declaration as 'std::stack<int> st'
 stack<int>st;
           ^
0_0_17914247_16477.cpp:105:13: error: conflicting declaration 'std::queue<Node*> qu'
 queue<Node*>qu;
             ^
0_0_17914247_16477.cpp:17:11: note: previous declaration as 'std::queue<int> qu'
 queue<int>qu;
           ^
0_0_17914247_16477.cpp:106:15: error: redefinition of 'char str [10005]'
 char str[10005];
               ^
0_0_17914247_16477.cpp:19:6: note: 'char str [10005]' previously declared here
 char str[10005];
      ^
0_0_17914247_16477.cpp:107:17: error: redefinition of 'int result [10005]'
 int result[10005], resultIndex;
                 ^
0_0_17914247_16477.cpp:20:5: note: 'int result [10005]' previously declared here
 int result[10005], resultIndex;
     ^
0_0_17914247_16477.cpp:107:20: error: redefinition of 'int resultIndex'
 int result[10005], resultIndex;
                    ^
0_0_17914247_16477.cpp:20:20: note: 'int resultIndex' previously declared here
 int result[10005], resultIndex;
                    ^
0_0_17914247_16477.cpp: In function 'void bfs(Node*)':
0_0_17914247_16477.cpp:113:17: error: invalid conversion from 'Node*' to 'std::queue<int>::value_type {aka int}' [-fpermissive]
     qu.push(root);
                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_17914247_16477.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:220:7: note: initializing argument 1 of 'void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; std::queue<_Tp, _Sequence>::value_type = int]'
       push(value_type&& __x)
       ^
0_0_17914247_16477.cpp:117:28: error: invalid conversion from 'int' to 'Node*' [-fpermissive]
         Node* t = qu.front();
                            ^
0_0_17914247_16477.cpp:120:44: error: base operand of '->' is not a pointer
             result[resultIndex++] = t->left->data;
                                            ^
0_0_17914247_16477.cpp:124:45: error: base operand of '->' is not a pointer
             result[resultIndex++] = t->right->data;
                                             ^
0_0_17914247_16477.cpp: In function 'void Solve()':
0_0_17914247_16477.cpp:130:6: error: redefinition of 'void Solve()'
 void Solve(){
      ^
0_0_17914247_16477.cpp:44:6: note: 'void Solve()' previously defined here
 void Solve(){
      ^
0_0_17914247_16477.cpp:139:25: error: invalid conversion from 'Node*' to 'std::stack<int>::value_type {aka int}' [-fpermissive]
             st.push(temp);
                         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
                 from 0_0_17914247_16477.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:194:7: note: initializing argument 1 of 'void std::stack<_Tp, _Sequence>::push(std::stack<_Tp, _Sequence>::value_type&&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; std::stack<_Tp, _Sequence>::value_type = int]'
       push(value_type&& __x)
       ^
0_0_17914247_16477.cpp:142:34: error: invalid conversion from 'int' to 'Node*' [-fpermissive]
             Node* right = st.top();
                                  ^
0_0_17914247_16477.cpp:144:34: error: invalid conversion from 'int' to 'Node*' [-fpermissive]
             Node* left  = st.top();
                                  ^
0_0_17914247_16477.cpp:148:26: error: invalid conversion from 'Node*' to 'int' [-fpermissive]
             parent->left = left;
                          ^
0_0_17914247_16477.cpp:149:27: error: invalid conversion from 'Node*' to 'int' [-fpermissive]
             parent->right = right;
                           ^
0_0_17914247_16477.cpp:150:27: error: invalid conversion from 'Node*' to 'std::stack<int>::value_type {aka int}' [-fpermissive]
             st.push(parent);     
                           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
                 from 0_0_17914247_16477.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:194:7: note: initializing argument 1 of 'void std::stack<_Tp, _Sequence>::push(std::stack<_Tp, _Sequence>::value_type&&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; std::stack<_Tp, _Sequence>::value_type = int]'
       push(value_type&& __x)
       ^
0_0_17914247_16477.cpp: In function 'int main()':
0_0_17914247_16477.cpp:163:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_17914247_16477.cpp:75: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-03 14:45:14, Gzip enabled