fork download
  1. #include<iostream>
  2. #include<vector>
  3. using namespace std;
  4. int main(){
  5. vector<int> v;
  6. v.push_pack(x);
  7. cin>>x;
  8. cout<<v[0];
  9.  
  10.  
  11. return 0;
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:6:3: error: no member named 'push_pack' in 'std::vector<int, std::allocator<int> >'
v.push_pack(x);
~ ^
prog.cpp:6:13: error: use of undeclared identifier 'x'
v.push_pack(x);
            ^
prog.cpp:7:6: error: use of undeclared identifier 'x'
cin>>x;
     ^
3 errors generated.
stdout
Standard output is empty