fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int ia[]={0,1,2,3,4,5,6,7,8,9};
  7. int *beg=begin(ia);
  8. int *last=end(ia);
  9. std::cout<<(*last)<<std::endl;
  10. std::cout<<(*beg)<<std::endl;
  11. std::cout<<(*last-*beg)<<std::endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 4392KB
stdin
Standard input is empty
stdout
0
0
0