Why C++ function returns invalid value?
C++ returns invalid value in the following code:

    #include <iostream>
    #include <vector>
    
    using namespace std;
    
    int f(){
        vector< int * > v[2];
        return 1;
        v[1].push_back(NULL);
    }
    
    int main(){
        cout << f();
    }

console shows:

205960



When I commnet line after return, it works fine:

    #include <iostream>
    #include <vector>
    
    using namespace std;
    
    int f(){
        vector< int * > v[2];
        return 1;
        //v[1].push_back(NULL);
    }
    
    int main(){
        cout << f();
    }

console shows:

1


I am using code::blocks with mingw32-g++.exe compiler.
Why C++ function returns invalid value?
===

C++ returns invalid value in the following code:

    #include <iostream>
    #include <vector>
    
    using namespace std;
    
    int f(){
        vector< int * > v[2];
        return 1;
        v[1].push_back(NULL);
    }
    
    int main(){
        cout << f();
    }

console shows:

205960



When I commnet line after return, it works fine:

    #include <iostream>
    #include <vector>
    
    using namespace std;
    
    int f(){
        vector< int * > v[2];
        return 1;
        //v[1].push_back(NULL);
    }
    
    int main(){
        cout << f();
    }

console shows:

1


I am using code::blocks with mingw32-g++.exe compiler.