0_0_16378827_6762.cpp:7:1: error: 'Accepted' does not name a type
Accepted
^
0_0_16378827_6762.cpp: In function 'void bfs(int, int, int, int, int)':
0_0_16378827_6762.cpp:41:5: error: expected primary-expression before 'curNode'
curNode, newNode;
^
0_0_16378827_6762.cpp:42:5: error: 'curNode' was not declared in this scope
curNode.x =
^
0_0_16378827_6762.cpp:62:13: error: 'newNode' was not declared in this scope
newNode.x = curNode.x + x[i];
^
0_0_16378827_6762.cpp: In function 'int main()':
0_0_16378827_6762.cpp:114:1: error: expected primary-expression before '}' token
}
^
0_0_16378827_6762.cpp:114:1: error: expected ';' before '}' token
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_16378827_6762.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h: In instantiation of 'void std::deque<_Tp, _Alloc>::_M_destroy_data(std::deque<_Tp, _Alloc>::iterator, std::deque<_Tp, _Alloc>::iterator, const std::allocator<_CharT>&) [with _Tp = node; _Alloc = std::allocator<node>; std::deque<_Tp, _Alloc>::iterator = std::_Deque_iterator<node, node&, node*>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:923:62: required from 'std::deque<_Tp, _Alloc>::~deque() [with _Tp = node; _Alloc = std::allocator<node>]'
0_0_16378827_6762.cpp:47:5: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1918:2: error: invalid use of incomplete type 'std::deque<node, std::allocator<node> >::value_type {aka struct node}'
if (!__has_trivial_destructor(value_type))
^
0_0_16378827_6762.cpp:17:16: error: forward declaration of 'std::deque<node, std::allocator<node> >::value_type {aka struct node}'
typedef struct node Node;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_16378827_6762.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h: In instantiation of 'void std::deque<_Tp, _Alloc>::pop_front() [with _Tp = node; _Alloc = std::allocator<node>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:244:2: required from 'void std::queue<_Tp, _Sequence>::pop() [with _Tp = node; _Sequence = std::deque<node, std::allocator<node> >]'
0_0_16378827_6762.cpp:52:15: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1432:40: error: invalid use of incomplete type 'struct node'
!= this->_M_impl._M_start._M_last - 1)
^
0_0_16378827_6762.cpp:17:16: error: forward declaration of 'struct node'
typedef struct node Node;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_16378827_6762.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1435:6: error: cannot increment a pointer to incomplete type 'node'
++this->_M_impl._M_start._M_cur;
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h: In instantiation of 'void std::_Deque_base<_Tp, _Alloc>::_M_initialize_map(std::size_t) [with _Tp = node; _Alloc = std::allocator<node>; std::size_t = long long unsigned int]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:458:28: required from 'std::_Deque_base<_Tp, _Alloc>::_Deque_base() [with _Tp = node; _Alloc = std::allocator<node>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:788:23: required from 'std::deque<_Tp, _Alloc>::deque() [with _Tp = node; _Alloc = std::allocator<node>]'
0_0_16378827_6762.cpp:47:5: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:589:74: error: invalid application of 'sizeof' to incomplete type 'node'
const size_t __num_nodes = (__num_elements/ __deque_buf_size(sizeof(_Tp))
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:620:31: error: invalid application of 'sizeof' to incomplete type 'node'
% __deque_buf_size(sizeof(_Tp)));
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h: In instantiation of 'void std::_Deque_base<_Tp, _Alloc>::_M_deallocate_node(_Tp*) [with _Tp = node; _Alloc = std::allocator<node>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:647:25: required from 'void std::_Deque_base<_Tp, _Alloc>::_M_destroy_nodes(_Tp**, _Tp**) [with _Tp = node; _Alloc = std::allocator<node>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:571:42: required from 'std::_Deque_base<_Tp, _Alloc>::~_Deque_base() [with _Tp = node; _Alloc = std::allocator<node>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:788:23: required from 'std::deque<_Tp, _Alloc>::deque() [with _Tp = node; _Alloc = std::allocator<node>]'
0_0_16378827_6762.cpp:47:5: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:544:65: error: invalid application of 'sizeof' to incomplete type 'node'
_M_impl._Tp_alloc_type::deallocate(__p, __deque_buf_size(sizeof(_Tp)));
^
|