/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void bfs(int, int, int, int, int)':
/in/foo.cc:53:5: error: 'qx' was not declared in this scope
     qx[1]=sx,qy[1]=sy,dis[sx][sy]=1;
     ^~
/in/foo.cc:53:14: error: 'qy' was not declared in this scope
     qx[1]=sx,qy[1]=sy,dis[sx][sy]=1;
              ^~
/in/foo.cc:53:23: error: 'dis' was not declared in this scope
     qx[1]=sx,qy[1]=sy,dis[sx][sy]=1;
                       ^~~
/in/foo.cc:54:12: error: no matching function for call to 'std::queue<std::pair<int, int> >::push()'
     q.push()
            ^
In file included from /usr/include/c++/6/queue:64:0,
                 from /in/foo.cc:6:
/usr/include/c++/6/bits/stl_queue.h:242:7: note: candidate: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]
       push(const value_type& __x)
       ^~~~
/usr/include/c++/6/bits/stl_queue.h:242:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/6/bits/stl_queue.h:247:7: note: candidate: void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]
       push(value_type&& __x)
       ^~~~
/usr/include/c++/6/bits/stl_queue.h:247:7: note:   candidate expects 1 argument, 0 provided
/in/foo.cc:66:15: error: 'mvx' was not declared in this scope
         tx=bx+mvx[i],ty=by+mvy[i];
               ^~~
/in/foo.cc:66:28: error: 'mvy' was not declared in this scope
         tx=bx+mvx[i],ty=by+mvy[i];
                            ^~~
/in/foo.cc:70:35: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
     add(bx*120+by*4+fx,sx*120+sy*4+fx^1,1);//情况2:交换空格与目标棋子的位置
                        ~~~~~~~~~~~^~~
/in/foo.cc:51:11: warning: unused variable 'ta' [-Wunused-variable]
     int i,ta=1,he=1,xx,yy,tx,ty;
           ^~
/in/foo.cc:51:16: warning: unused variable 'he' [-Wunused-variable]
     int i,ta=1,he=1,xx,yy,tx,ty;
                ^~
/in/foo.cc:51:21: warning: unused variable 'xx' [-Wunused-variable]
     int i,ta=1,he=1,xx,yy,tx,ty;
                     ^~
/in/foo.cc:51:24: warning: unused variable 'yy' [-Wunused-variable]
     int i,ta=1,he=1,xx,yy,tx,ty;
                        ^~

信息

递交者
类型
递交
题目
P1846 华容道
语言
C++
递交时间
2018-06-02 16:36:25
评测时间
2018-06-02 16:36:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes