fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. struct A
  6. {
  7. int a;
  8. int b;
  9. };
  10.  
  11. int main() {
  12. // your code goes here
  13.  
  14. A* a = new A[2];
  15.  
  16. std::vector<A> = {{1,2},{3,4}};
  17.  
  18. return 0;
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:16:17: error: expected unqualified-id
        std::vector<A> = {{1,2},{3,4}};
                       ^
1 error generated.
stdout
Standard output is empty