fork download
  1. #include <algorithm>
  2. #include <vector>
  3.  
  4. struct movementType { int x, y, moves; };
  5.  
  6. int main(int argc, const char* argv[])
  7. {
  8. movementType empty;
  9. empty.x = 5;
  10. empty.y = 6;
  11. empty.moves = 7;
  12. std::vector<movementType> someOtherVector(64);
  13. std::fill_n(someOtherVector.begin(), 64, empty);
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 2808KB
stdin
Standard input is empty
stdout
Standard output is empty