0_0_17478677_22105.cpp: In function 'bool inbound(node, int, int)':
0_0_17478677_22105.cpp:59:23: error: 'INF' was not declared in this scope
if(k.g[x][y]==INF||k.g[x][y]==12) return false;
^
0_0_17478677_22105.cpp: In function 'long long int getval(node)':
0_0_17478677_22105.cpp:73:27: error: 'INF' was not declared in this scope
if(k.g[i][j]!=INF)
^
0_0_17478677_22105.cpp: At global scope:
0_0_17478677_22105.cpp:82:12: error: conflicting declaration 'std::queue<data> que'
queue<data>que;
^
0_0_17478677_22105.cpp:51:12: note: previous declaration as 'std::queue<node> que'
queue<node>que;
^
0_0_17478677_22105.cpp: In function 'void bfs(int)':
0_0_17478677_22105.cpp:100:15: error: no matching function for call to 'std::queue<node>::push(data&)'
que.push(p);
^
0_0_17478677_22105.cpp:100:15: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from 0_0_17478677_22105.cpp:6:
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 'data' 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 'data' to 'std::queue<node>::value_type&& {aka node&&}'
0_0_17478677_22105.cpp:103:28: error: conversion from 'node' to non-scalar type 'data' requested
data now=que.front();
^
0_0_17478677_22105.cpp:142:24: error: no matching function for call to 'std::queue<node>::push(data&)'
que.push(ne);
^
0_0_17478677_22105.cpp:142:24: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from 0_0_17478677_22105.cpp:6:
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 'data' 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 'data' to 'std::queue<node>::value_type&& {aka node&&}'
0_0_17478677_22105.cpp:164:24: error: no matching function for call to 'std::queue<node>::push(data&)'
que.push(ne);
^
0_0_17478677_22105.cpp:164:24: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from 0_0_17478677_22105.cpp:6:
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 'data' 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 'data' to 'std::queue<node>::value_type&& {aka node&&}'
|