/in/foo.cc: In function 'void spreadA(std::vector<Edge*>*, int, int)':
/in/foo.cc:59:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<nodes[startP].size();i++)
~^~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:61:23: error: request for member 'isPoint' in '(nodes + ((sizetype)(((long unsigned int)startP) * 24ul)))->std::vector<_Tp, _Alloc>::operator[]<Edge*, std::allocator<Edge*> >(((std::vector<Edge*>::size_type)i))', which is of pointer type '__gnu_cxx::__alloc_traits<std::allocator<Edge*> >::value_type {aka Edge*}' (maybe you meant to use '->' ?)
if(nodes[startP][i].isPoint(fromP))
^~~~~~~
/in/foo.cc:63:24: error: request for member 'canGetAfrom' in '(nodes + ((sizetype)(((long unsigned int)startP) * 24ul)))->std::vector<_Tp, _Alloc>::operator[]<Edge*, std::allocator<Edge*> >(((std::vector<Edge*>::size_type)i))', which is of pointer type '__gnu_cxx::__alloc_traits<std::allocator<Edge*> >::value_type {aka Edge*}' (maybe you meant to use '->' ?)
if(!nodes[startP][i].canGetAfrom(startP))
^~~~~~~~~~~
/in/foo.cc:65:21: error: request for member 'getAfrom' in '(nodes + ((sizetype)(((long unsigned int)startP) * 24ul)))->std::vector<_Tp, _Alloc>::operator[]<Edge*, std::allocator<Edge*> >(((std::vector<Edge*>::size_type)i))', which is of pointer type '__gnu_cxx::__alloc_traits<std::allocator<Edge*> >::value_type {aka Edge*}' (maybe you meant to use '->' ?)
nodes[startP][i].getAfrom(startP);
^~~~~~~~
/in/foo.cc:66:35: error: request for member 'getAnotherPoint' in '(nodes + ((sizetype)(((long unsigned int)startP) * 24ul)))->std::vector<_Tp, _Alloc>::operator[]<Edge*, std::allocator<Edge*> >(((std::vector<Edge*>::size_type)i))', which is of pointer type '__gnu_cxx::__alloc_traits<std::allocator<Edge*> >::value_type {aka Edge*}' (maybe you meant to use '->' ?)
spreadA(nodes,nodes[startP][i].getAnotherPoint(startP),startP);
^~~~~~~~~~~~~~~
/in/foo.cc: In function 'void spreadB(std::vector<Edge*>*, int, int)':
/in/foo.cc:73:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<nodes[startP].size();i++)
~^~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:75:23: error: request for member 'isPoint' in '(nodes + ((sizetype)(((long unsigned int)startP) * 24ul)))->std::vector<_Tp, _Alloc>::operator[]<Edge*, std::allocator<Edge*> >(((std::vector<Edge*>::size_type)i))', which is of pointer type '__gnu_cxx::__alloc_traits<std::allocator<Edge*> >::value_type {aka Edge*}' (maybe you meant to use '->' ?)
if(nodes[startP][i].isPoint(fromP))
^~~~~~~
/in/foo.cc:77:24: error: request for member 'canGetBfrom' in '(nodes + ((sizetype)(((long unsigned int)startP) * 24ul)))->std::vector<_Tp, _Alloc>::operator[]<Edge*, std::allocator<Edge*> >(((std::vector<Edge*>::size_type)i))', which is of pointer type '__gnu_cxx::__alloc_traits<std::allocator<Edge*> >::value_type {aka Edge*}' (maybe you meant to use '->' ?)
if(!nodes[startP][i].canGetBfrom(startP))
^~~~~~~~~~~
/in/foo.cc:79:21: error: request for member 'getBfrom' in '(nodes + ((sizetype)(((long unsigned int)startP) * 24ul)))->std::vector<_Tp, _Alloc>::operator[]<Edge*, std::allocator<Edge*> >(((std::vector<Edge*>::size_type)i))', which is of pointer type '__gnu_cxx::__alloc_traits<std::allocator<Edge*> >::value_type {aka Edge*}' (maybe you meant to use '->' ?)
nodes[startP][i].getBfrom(startP);
^~~~~~~~
/in/foo.cc:80:35: error: request for member 'getAnotherPoint' in '(nodes + ((sizetype)(((long unsigned int)startP) * 24ul)))->std::vector<_Tp, _Alloc>::operator[]<Edge*, std::allocator<Edge*> >(((std::vector<Edge*>::size_type)i))', which is of pointer type '__gnu_cxx::__alloc_traits<std::allocator<Edge*> >::value_type {aka Edge*}' (maybe you meant to use '->' ?)
spreadB(nodes,nodes[startP][i].getAnotherPoint(startP),startP);
^~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:108:20: error: invalid conversion from 'int' to 'std::vector<Edge*>*' [-fpermissive]
spreadA(APoints[i]);
~~~~~~~~~^
/in/foo.cc:108:21: error: too few arguments to function 'void spreadA(std::vector<Edge*>*, int, int)'
spreadA(APoints[i]);
^
/in/foo.cc:57:6: note: declared here
void spreadA(vector<Edge*>* nodes, int startP, int fromP=-1)
^~~~~~~
/in/foo.cc:110:20: error: invalid conversion from 'int' to 'std::vector<Edge*>*' [-fpermissive]
spreadB(BPoints[i]);
~~~~~~~~~^
/in/foo.cc:110:21: error: too few arguments to function 'void spreadB(std::vector<Edge*>*, int, int)'
spreadB(BPoints[i]);
^
/in/foo.cc:71:6: note: declared here
void spreadB(vector<Edge*>* nodes, int startP, int fromP=-1)
^~~~~~~
/in/foo.cc:114:11: error: expected primary-expression before '[' token
if(!Edge[i].allGet())
^
/in/foo.cc:118:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<critical.size();i++)
~^~~~~~~~~~~~~~~~