can some one please fix this error for me ....

Code:#include <iostream> #include <cstdlib> using namespace std; int ma(int n); int main() { int n; cout<<"Enter: "; cin>>n; int matrix[n][n]; //======================= initialise and insert values ========================= cout << "Enter the matrix by rows\n"; for(int row = 0; row < n; row++) for(int col = 0; col < n; col++) cin >> matrix[row][col]; //========================= sum of each row ==================================== cout<<ma(n); system("pause"); return 0; } int ma(int n) { int row; int col; int matrix[row][col]; for(row = 0; row < n; row++) { int sumRow = 0; for(col = 0; col < n; col++) sumRow = sumRow + matrix[row][col]; cout<<"sum of row "<<row+1<<" = "<<sumRow<<endl; } }