0_0_34161149_8788.cpp: In function 'bool bfs(int, char)':
0_0_34161149_8788.cpp:20:42: error: conversion from 'std::pair<int, int>' to non-scalar type 'std::queue<std::pair<int, int> >' requested
queue<pair<int,int>> x=que.front();
^
0_0_34161149_8788.cpp:24:14: error: 'class std::queue<std::pair<int, int> >' has no member named 'second'
if(x.second>1) {
^
0_0_34161149_8788.cpp:28:20: error: 'class std::queue<std::pair<int, int> >' has no member named 'first'
if(s[x.first][i]!=chk||v[i]) continue;
^
0_0_34161149_8788.cpp:31:27: error: 'class std::queue<std::pair<int, int> >' has no member named 'second'
que.push({y,x.second+1});
^
0_0_34161149_8788.cpp:31:36: error: no matching function for call to 'std::queue<std::pair<int, int> >::push(<brace-enclosed initializer list>)'
que.push({y,x.second+1});
^
0_0_34161149_8788.cpp:31:36: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
from 0_0_34161149_8788.cpp:1:
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 = 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)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:215:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::pair<int, int>&}'
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 = 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)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:220:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}'
|