Проблема с кодом C++
Выдаёт ошибку: pole: невозможно преобразовать параметр 1 из "int [8][8]" в "int", что делать?
#include
using namespace std;
const int h=8;
const int w=8;
void pole(int mas, int *h,int *w);
void main()
{
int mas[h][w];
pole(mas,h,w);
}
void pole(int mas[h][w], int h,int w)
{
setlocale (LC_CTYPE, ".1251");
int a=8;
for (int i=0; i
if(mas[j]%2)
{
mas[j]=0;
}
else
mas[j]=1;
}
}
}
}
for (int i=0; i
{
cout<<"*";
}
else
cout<<" ";
}
}
cout << '\n';
}
}
cout << "\n\n\n";
}