Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ALEX ENACHE
- #include <algorithm>
- #include <vector>
- using namespace std;
- //#include <iostream>
- #include <fstream>
- ifstream cin ("input");ofstream cout ("output");
- void sum (int &a , int b){
- a = a + b;
- }
- int main() {
- /*int x = 2 , y = 3;
- sum(x , y);
- cout<<x;*/
- //freopen("input", "r", stdin);freopen("output", "w", stdout);
- //int n; // val max = 2147483647
- //long long n;
- //float n; //sau double
- //char n;
- /*string s;
- cin>>s;
- string aux;
- cin>>aux;
- string now = s + '#' + aux;
- cout<<now;*/
- //vector < int > a(100); -> vector de marime 100
- //vector < int > a[100]; -> 100 de vectori
- vector < int > a;
- //a.resize(100);
- a.push_back(1);
- a.push_back(2);
- a.push_back(3);
- /*cout<<a[2]<<'\n'; //1 2 3
- a.pop_back(); //1 2
- a.push_back(4); //1 2 4
- cout<<a[2]<<'\n';*/
- for (auto &x : a){
- x = 0;
- }
- for (auto x : a){
- cout<<x<<" ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement