|
|
g++ -std=c++11 st5.cpp -o ssst5.cpp: In function ‘std::vector<int> get_touching_rectangles(Rectangle, std::vector<Rectangle>)’: st5.cpp:58:12: error: could not convert ‘ret’ from ‘std::vector<Rectangle>’ to ‘std::vector<int>’ |
|
|
terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check Aborted |
|
|
terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check Aborted |
|
|
st5.cpp: In function ‘int main()’: st5.cpp:78:23: error: no match for ‘operator<<’ in ‘std::cin << Coordinages’ st5.cpp:78:23: note: candidates are: In file included from /usr/include/c++/4.7/string:54:0, from /usr/include/c++/4.7/bits/locale_classes.h:42, from /usr/include/c++/4.7/bits/ios_base.h:43, from /usr/include/c++/4.7/ios:43, from /usr/include/c++/4.7/ostream:40, from /usr/include/c++/4.7/iostream:40, from st5.cpp:1: /usr/include/c++/4.7/bits/basic_string.h:2750:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) /usr/include/c++/4.7/bits/basic_string.h:2750:5: note: template argument deduction/substitution failed: st5.cpp:78:23: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’ In file included from /usr/include/c++/4.7/iostream:40:0, from st5.cpp:1: /usr/include/c++/4.7/ostream:469:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT) /usr/include/c++/4.7/ostream:469:5: note: template argument deduction/substitution failed: st5.cpp:78:23: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’ In file included from /usr/include/c++/4.7/iostream:40:0, from st5.cpp:1: /usr/include/c++/4.7/ostream:474:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char) /usr/include/c++/4.7/ostream:474:5: note: template argument deduction/substitution failed: st5.cpp:78:23: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’ In file included from /usr/include/c++/4.7/iostream:40:0, from st5.cpp:1: /usr/include/c++/4.7/ostream:480:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char) /usr/include/c++/4.7/ostream:480:5: note: template argument deduction/substitution failed: st5.cpp:78:23: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’ In file included from /usr/include/c++/4.7/iostream:40:0, from st5.cpp:1: /usr/include/c++/4.7/ostream:486:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, signed char) /usr/include/c++/4.7/ostream:486:5: note: template argument deduction/substitution failed: st5.cpp:78:23: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’ In file included from /usr/include/c++/4.7/iostream:40:0, from st5.cpp:1: /usr/include/c++/4.7/ostream:491:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, unsigned char) /usr/include/c++/4.7/ostream:491:5: note: template argument deduction/substitution failed: st5.cpp:78:23: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’ In file included from /usr/include/c++/4.7/iostream:40:0, from st5.cpp:1: /usr/include/c++/4.7/ostream:511:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*) /usr/include/c++/4.7/ostream:511:5: note: template argument deduction/substitution failed: st5.cpp:78:23: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’ In file included from /usr/include/c++/4.7/ostream:607:0, from /usr/include/c++/4.7/iostream:40, from st5.cpp:1: /usr/include/c++/4.7/bits/ostream.tcc:323:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const char*) /usr/include/c++/4.7/bits/ostream.tcc:323:5: note: template argument deduction/substitution failed: st5.cpp:78:23: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’ In file included from /usr/include/c++/4.7/iostream:40:0, from st5.cpp:1: /usr/include/c++/4.7/ostream:528:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*) /usr/include/c++/4.7/ostream:528:5: note: template argument deduction/substitution failed: st5.cpp:78:23: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’ In file included from /usr/include/c++/4.7/iostream:40:0, from st5.cpp:1: /usr/include/c++/4.7/ostream:541:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const signed char*) /usr/include/c++/4.7/ostream:541:5: note: template argument deduction/substitution failed: st5.cpp:78:23: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’ In file included from /usr/include/c++/4.7/iostream:40:0, from st5.cpp:1: /usr/include/c++/4.7/ostream:546:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const unsigned char*) /usr/include/c++/4.7/ostream:546:5: note: template argument deduction/substitution failed: st5.cpp:78:23: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’ In file included from /usr/include/c++/4.7/iostream:40:0, from st5.cpp:1: /usr/include/c++/4.7/ostream:600:5: note: template<class _CharT, class _Traits, class _Tp> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const _Tp&) /usr/include/c++/4.7/ostream:600:5: note: template argument deduction/substitution failed: st5.cpp:78:23: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’ |