Horje
how to scan vector in c++ Code Example
how to scan vector in c++
#include<bits/stdc++.h>
using namespace std;
int main(){
  int k,size;
  cin>>size;
  vector<int>v;
  for(int i = 0;i<size;i++{
    cin>>k;
    v.push_back(k);
  }
      for(auto element:v){
        cout<<element<<" ";
      }
      return 0;
      }




Cpp

Related
play roblox vr on quest 2 Code Example play roblox vr on quest 2 Code Example
c++ rewrite file Code Example c++ rewrite file Code Example
python to c++ transpiler Code Example python to c++ transpiler Code Example
++m in c Code Example ++m in c Code Example
print the elements of the array without using the [] notation in c++ Code Example print the elements of the array without using the [] notation in c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9