0_0_11271084_3154.cpp:13: error: ISO C++ forbids declaration of `nbsp' with no type
0_0_11271084_3154.cpp:13: error: ISO C++ forbids declaration of `nbsp' with no type
0_0_11271084_3154.cpp:13: error: declaration of `int&Edge::nbsp'
0_0_11271084_3154.cpp:13: error: conflicts with previous declaration `int&Edge::nbsp'
0_0_11271084_3154.cpp: In function `void addEdge(int, int, int)':
0_0_11271084_3154.cpp:20: error: `nbsp' undeclared (first use this function)
0_0_11271084_3154.cpp:20: error: (Each undeclared identifier is reported only once for each function it appears in.)
0_0_11271084_3154.cpp: In function `bool compare1(const Edge&, const Edge&)':
0_0_11271084_3154.cpp:29: error: `nbsp' undeclared (first use this function)
0_0_11271084_3154.cpp: In function `bool compare2(const Edge&, const Edge&)':
0_0_11271084_3154.cpp:35: error: `nbsp' undeclared (first use this function)
0_0_11271084_3154.cpp: In function `void dfs(int, int, int)':
0_0_11271084_3154.cpp:40: error: `nbsp' undeclared (first use this function)
0_0_11271084_3154.cpp: In function `int main()':
0_0_11271084_3154.cpp:80: error: `nbsp' undeclared (first use this function)
0_0_11271084_3154.cpp:85: error: name lookup of `i' changed for new ISO `for' scoping
0_0_11271084_3154.cpp:83: error: using obsolete binding at `i'
0_0_11271084_3154.cpp:102: error: name lookup of `i' changed for new ISO `for' scoping
0_0_11271084_3154.cpp:100: error: using obsolete binding at `i'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h: In member function `Edge& Edge::operator=(const Edge&)':
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2148: instantiated from `void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Edge*, _Compare = bool (*)(const Edge&, const Edge&)]'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2220: instantiated from `void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Edge*, _Compare = bool (*)(const Edge&, const Edge&)]'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2593: instantiated from `void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Edge*, _Compare = bool (*)(const Edge&, const Edge&)]'
0_0_11271084_3154.cpp:94: instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2148: error: non-static reference member `int&Edge::nbsp', can't use default assignment operator
|