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_14285451_11788.cpp:19:2: error: conflicting declaration 'node k'
 }k,p;
  ^
0_0_14285451_11788.cpp:13:5: note: previous declaration as 'int k'
 int k,x1,x2,y11,y2;
     ^
0_0_14285451_11788.cpp: In function 'int bfs()':
0_0_14285451_11788.cpp:23:7: error: request for member 'x' in 'k', which is of non-class type 'int'
     k.x=x1;
       ^
0_0_14285451_11788.cpp:24:7: error: request for member 'y' in 'k', which is of non-class type 'int'
     k.y=y11;
       ^
0_0_14285451_11788.cpp:25:7: error: request for member 't' in 'k', which is of non-class type 'int'
     k.t=0;
       ^
0_0_14285451_11788.cpp:26:7: error: request for member 'w' in 'k', which is of non-class type 'int'
     k.w=-1;
       ^
0_0_14285451_11788.cpp:27:12: error: 'p1' was not declared in this scope
     q.push(p1);
            ^
0_0_14285451_11788.cpp:32:14: error: request for member 'x' in 'k', which is of non-class type 'int'
         if(k.x==x2&&k.y==y2)
              ^
0_0_14285451_11788.cpp:32:23: error: request for member 'y' in 'k', which is of non-class type 'int'
         if(k.x==x2&&k.y==y2)
                       ^
0_0_14285451_11788.cpp:38:14: error: no match for 'operator=' (operand types are 'node' and 'int')
             p=k;
              ^
0_0_14285451_11788.cpp:38:14: note: candidates are:
0_0_14285451_11788.cpp:14:8: note: node& node::operator=(const node&)
 struct node
        ^
0_0_14285451_11788.cpp:14:8: note:   no known conversion for argument 1 from 'int' to 'const node&'
0_0_14285451_11788.cpp:14:8: note: node& node::operator=(node&&)
0_0_14285451_11788.cpp:14:8: note:   no known conversion for argument 1 from 'int' to 'node&&'
0_0_14285451_11788.cpp:42:23: error: request for member 'w' in 'k', which is of non-class type 'int'
             if(p.w!=k.w&&k.w!=-1){p.t++;}
                       ^
0_0_14285451_11788.cpp:42:28: error: request for member 'w' in 'k', which is of non-class type 'int'
             if(p.w!=k.w&&k.w!=-1){p.t++;}
                            ^
0_0_14285451_11788.cpp:43:49: error: 'p2' was not declared in this scope
             if(p.x>=0&&p.x<n&&p.y>=0&&p.y<m&&mp[p2.x][p2.y]=='.'&&p.t<=k)
                                                 ^
0_0_14285451_11788.cpp:48:26: error: no matching function for call to 'std::queue<node>::push(int)'
                  q.push(2);
                          ^
0_0_14285451_11788.cpp:48:26: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_14285451_11788.cpp:7:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:215:7: note: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = node; _Sequence = std::deque<node, std::allocator<node> >; std::queue<_Tp, _Sequence>::value_type = node]
       push(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:215:7: note:   no known conversion for argument 1 from 'int' to 'const value_type& {aka const node&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:220:7: note: void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = node; _Sequence = std::deque<node, std::allocator<node> >; std::queue<_Tp, _Sequence>::value_type = node]
       push(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:220:7: note:   no known conversion for argument 1 from 'int' to 'std::queue<node>::value_type&& {aka node&&}'


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-11-18 12:15:22, Gzip enabled