Hi, I am trying to create a program that will take 10 numbers and then print the sum of the all two adjacent numbers and then sum of 1st and last,2nd and 2nd last;here is the code
input.end()-it returns the distance of it from the end of the vector which is of type std::iterator_traits<std::vector<int>::iterator>::difference_type (typedef of some integer type).