You can only write declarations outside of a method scope, so when you write:
map[1][1] = {x};
That is an invalid statement because it is not a declaration. In order to use that, put it inside the main() method, like:
int main()
{
map[1][1] = x;
return 0;
}
However, since you did not initialize x with any value, it will be some random value or you may get a warning about using an uninitialized variable.