title: Passing matrix to a function. "invalid conversion from 'int (*)[columns]' to 'int' [-fpermissive]"
body: <p>Can't pass a matrix to a function, it seems to me that the problem has something to do with "columns", but I am not sure.
  Keep in mind that I shouldn't use pointers or addresses.
  If you have any comments about the quality of my code, please, tell me!
  Here are all the errors: <a href="https://s12.postimg.org/5iuoci4bx/Untitled.png" rel="nofollow noreferrer">https://s12.postimg.org/5iuoci4bx/Untitled.png</a></p>
  
  <pre><code>    [#include &lt;stdio.h&gt;
  #include &lt;conio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;iostream&gt;
  #include &lt;time.h&gt;
  #include &lt;stack&gt;
  void random_create(void);
  int random_eval(const int, int, int);
  using namespace std;
  int main() {
      random_create();
      system("pause");
  }
  
  void random_create (void)
  {
      const int Low = 0, High = 1000; unsigned int rows, columns;
      cout&lt;&lt;"Number of rows = "; cin&gt;&gt;rows;
      cout&lt;&lt;"Number of columns = "; cin&gt;&gt;columns;
      int a[rows][columns];
      srand((unsigned)time(NULL));
      cout&lt;&lt;"Randomly generated matrix of size "&lt;&lt;rows&lt;&lt;":"&lt;&lt;columns;
      for (int i = 0; i&lt;rows; i++){
        cout&lt;&lt;endl;   
        for (int j = 0; j&lt;columns; j++){
          a[i][j] = Low + rand() % (High - Low + 1);
          cout&lt;&lt;a[i][j]&lt;&lt;"   ";
      }
      cout&lt;&lt;endl;
      }
    random_eval ( a, rows, columns);
  }
  int random_eval(const int array, int rows, int columns){
      std::stack&lt;int&gt; stackMin;
      std::stack&lt;int&gt; stackMax;
      stackMin.push(100000);
      stackMax.push(0);
   for (int i=0; i&lt;rows; i++){
      for (int j = 0; j&lt;columns; j++){
      if (array[i][j]&gt; stackMax.top()){
          stackMax.pop();
          stackMax.push(array[i][j]);
       }
       else if (array[i][j]&lt;stackMin.top()){
          stackMin.pop();
          stackMin.push(array[i][j]);
       }
   }
  }
   cout&lt;&lt;"The biggest element in this array is "&lt;&lt;stackMax.top()&lt;&lt;endl;
   cout&lt;&lt;"The smallest element in this array is "&lt;&lt;stackMin.top()&lt;&lt;endl;
  }
  </code></pre>