Help with type conversion error
<p>When I try to compile my program, I get the following error:</p>

<pre><code>main.cpp: In function ‘int main()’:
main.cpp:67: error: cannot convert ‘int (*)[(((long unsigned int)(((long int)mapSizeY) -      1)) + 1u)]’ to ‘int (*)[10]’ for argument ‘3’ to ‘void initializeMap(int, int, int (*)[10])’
main.cpp:68: error: cannot convert ‘int (*)[(((long unsigned int)(((long int)mapSizeY) - 1)) + 1u)]’ to ‘int (*)[10]’ for argument ‘3’ to ‘void paintMap(int, int, int (*)[10])’
</code></pre>

<p>My code looks like this: </p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

void initializeMap(int mapSizeX, int mapSizeY, int map[][10])
{
    // Map details:
    // 0 = # (wall)
    // 1 = space (free space)
    // 2 = x (player)

    for(int x = 0; x &lt; mapSizeX; x++)
    {
        map[x][0] = 0;
    }

    for(int y = 0; y &lt; (mapSizeY - 2); y++)
    {
        map[0][y] = 0;

        for(int x = 0; x &lt; (mapSizeX - 2); x++)
        {
            map[x][y] = 1;
        }

        map[mapSizeX][y] = 0;
    }

    for(int x = 0; x &lt; mapSizeX; x++)
    {
        map[x][mapSizeY - 1] = 0;
    }
}

void paintMap(int mapSizeX, int mapSizeY, int map[][10])
{
    for(int y = 0; y &lt; mapSizeY; y++)
    {
        for(int x = 0; x &lt; mapSizeX; x++)
        {   
            switch(map[x][y])
            {
                case 0:
                    cout &lt;&lt; "#";
                    break;

                case 1:
                    cout &lt;&lt; " ";
                    break;

                case 2:
                    cout &lt;&lt; "x";
                    break;

            }

            cout &lt;&lt; map[x][y];
        }
        cout &lt;&lt; endl;
    }
}

int main()
{
    int mapSizeX = 10;
    int mapSizeY = 10;
    int map[mapSizeX][mapSizeY];
    initializeMap(mapSizeX, mapSizeY, map);
    paintMap(mapSizeX, mapSizeY, map);

    cout &lt;&lt; endl &lt;&lt; endl;

    return 0;
}
</code></pre>

<p>I've spent an hour trying to solve the issue and about twenty minutes searching for a solution. Can any of you help me out?</p>
