queue存放的数据类型为二维数组怎么处理

#include <stdio.h>
#include <string.h>
#include <iostream>
using namespace std;
#include <queue>

int a[3][3] = {
    {1,2,3},
    {4,5,6},
    {7,8,9}
};

typedef int t[3][3];
queue<t> q;

int main()
{
    q.push(a);

    return 0;
}

img

问题解决啦,把塞二维数组改成塞结构体或者类就可以了,再把二维数组放进类或者结构体里。