fork(2) download
  1. #include <vector>
  2. #include <iostream>
  3. #include <algorithm>
  4. using namespace std;
  5.  
  6. struct vec2i{int x;int y;};
  7. struct t_quad{vec2i pos;vec2i size;};
  8.  
  9. int main() {
  10. vector<t_quad> arr;
  11. auto&back=*emplace(arr.end());
  12. cout<<arr.size();
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:11:31: error: ‘emplace’ was not declared in this scope
   auto&back=*emplace(arr.end());
                               ^
stdout
Standard output is empty