fork download
  1. #include <vector>
  2.  
  3. struct S {
  4. int a;
  5. int b;
  6. };
  7.  
  8. int main() {
  9. std::vector<S> v;
  10. v.emplace_back(S{1,2});
  11. return 0;
  12. }
Success #stdin #stdout 0s 4552KB
stdin
Standard input is empty
stdout
Standard output is empty