fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. std::cout<<sizeof(double)<<std::endl;
  6.  
  7. vector<double> vec{1,2,3,4,5,6};
  8.  
  9. auto it = vec.begin();
  10.  
  11. it++;
  12. vector<double> vec2{it,vec.end()};
  13. std::cout<<vec2.size()<<" "<<vec2[0]<<std::endl;
  14. // your code goes here
  15. return 0;
  16. }
Success #stdin #stdout 0s 4504KB
stdin
Standard input is empty
stdout
8
5 2