fork download
  1. #include <vector>
  2.  
  3. int main() {
  4. int const bar[] = {1, 3, 4};
  5. std::vector<int> foo(bar, bar + 3);
  6. int hage = * foo.begin();
  7. int hoge = foo.at(1);
  8. }
Success #stdin #stdout 0s 3012KB
stdin
Standard input is empty
stdout
Standard output is empty