map<int,int>* a[maxn];
我想访问第 iii 个 map 的下标为 jjj。
*a[i][j]+=1;
会 CE。
如何解决?
注明:我通过引用解决了这个问题,有没有办法一行就解决。
auto& temp = *a[i]; temp[j]+=1;