fork download
  1. #include <vector>
  2.  
  3. int main()
  4. {
  5. std::vector<std::vector<int>> v;
  6. v.push_back();
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:6:17: error: no matching function for call to ‘std::vector<std::vector<int> >::push_back()’
prog.cpp:6:17: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from prog.cpp:1:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::value_type = std::vector<int>]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::value_type = std::vector<int>]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   candidate expects 1 argument, 0 provided
stdout
Standard output is empty