#include <vector>using namespace std; vector<vector<int> > k; void some_funct() { vector<int> new_v = (k[2].begin(), k[2].end()); } int main () {}
Standard input is empty
prog.cpp: In function ‘void some_funct()’: prog.cpp:7: error: conversion from ‘__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >’ to non-scalar type ‘std::vector<int, std::allocator<int> >’ requested
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!