Bidimensional:
#include <iostream>
using namespace std;
int main()
{
int a[10][10], n, m;
cin >> n >> m;
for (int i = 0; i < n; ++i)
{
for (int j = 0; j < m; ++j)
{
cin >> a[i][j];
}
}
for (int i = 0; i < n; ++i)
{
for (int j = 0; j < m; ++j)
{
cout << a[i][j] << " ";
}
cout << '\n';
}
}
Unidimensional:
#include <iostream>
using namespace std;
int main()
{
int a[10], n;
cin >> n;
for (int i = 0; i < n; ++i)
{
cin >> a[i];
}
for (int i = 0; i < n; ++i)
{
cout << a[i] << " ";
}
}