I'm getting error: no match for 'operator>>' in 'std::cin >> aTable[j]' for
#include <iostream>
using namespace std;
const int NUM_ROWS=15;
const int NUM_COLUMNS=15;
typedef int TwoDimArray[NUM_ROWS][NUM_COLUMNS];
void printTable(int rows, int cols, TwoDimArray aTable);
int main () {
int rows, columns;
TwoDimArray aTable[rows][columns];
cout<<"Enter rows and columns";
cin>>rows>>columns;
for (int i=0; i<rows; i++) {
for (int j=0; j<columns; j++)
cin>>aTable[i][j];//this is the line I am getting this error for.
}
return 0;
}
I can't figure out why I am getting this error.