I want to print the values of the multi-dimensional vector a using pass by pointer. Can anyone please let me know what is wrong in my program? I am getting a lot of errors.
#include <iostream>
#include <vector>
using namespace std;
class foo{
    private:
    vector <int> v;
    public:
    foo(vector<vector <int> >**);
};
foo :: foo(vector<vector<int> >** a)
{
    cout << a[0][0] <<endl;
    
    //cout<<a->size()<<endl;
}
int main()
{
    vector<vector<int>> a{{1,2,3,4},{5,6,7,8}};
    foo f(&a);
    
}
Thank you!
 
    