Thanks for your attention! Errors occur when using "." and the below are my code.
using namespace std;
#include <vector>
#include <iostream>
void main() {
vector<int> v;
vector<int>* pv = &v;
v.push_back(1);
pv->push_back(2);
//*pv.push_back(2); //error1
for (auto it = v.begin(); it != v.end(); it++) { cout << *it << endl; }
for (auto it = pv->begin(); it != pv->end(); it++) { cout << *it << endl; }
//for (auto it = *pv.begin(); it != *pv.end(); it++) { cout << *it << endl; } //error2
cout << typeid(pv->begin()).name() << endl;
//cout << typeid(*pv.begin()).name() << endl; //error3
}