/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: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: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:118:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<critical.size();i++)
~^~~~~~~~~~~~~~~~