Юлия
Ошибка (с++) error: expected primary-expression before ']' token|
#include
using namespace std;
void print(int m[][5],int a, int s)
{
for(int i = 0; i <= (a - 1); i++)
{
for (int o = 0; o <= (s - 1); o++)
cout << m[o] << " ";
cout << endl;
}
}
int main()
{
const int n1 = 2;
const int n2 = 5;
int a[n1][n2] = {2,3,7,1,7,
1,4,5,6,3 };
print(a[][5],n1,n2);
}
спасибо помогли