title: no matching function for call to while passing array
body: <p>I am getting an error while writing a constructor which has some arguments to be passed. Searched previous threads but I am not getting it cleared.</p>
  
  <p>Here is my code :</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;iostream&gt;
  #include&lt;stdlib.h&gt;
  
  using namespace std;
  
  int curr_state;
  //int signal[3],trans_in[7],trans_fin[7],trans_sig[7];
  
  class state_machine
  {
          private :
                  int start,end;
          public :
                  state_machine(const int Q[],const int signals[],const int trans[][10][10],const int start,const int end);
  //              int mystate();
                  int run();
                  int get_signal( );
  
                  int get_state();
                  int change_state();
  };
  
  state_machine::state_machine(const int Q[],const int signals[],const int trans[][10][10],const int start,const int end)
  {
  }     
  
  int main(int argc, char * argv[])
  {   
          state_machine s;
          int Q[5]={1,2,3,4,5};
          int signals[3]={0,1,2};
          int trans[][3][1]={{1,0,2},{1,1,0},{1,2,0},{2,0,3},{2,1,0},{2,2,0},{3,0,5},{3,1,4},{3,2,2},{4,0,2},{4,1,0},{4,2,0},{5,0,0},{5,1,0},{5,2,0}};
          int start=1,end=5;
          //s.state_machine(Q,signals,trans,start,end);
  }   
  </code></pre>
  
  <p>Getting output as :
  <br></p>
  
  <pre><code>state_machine.cpp: In function ‘int main(int, char**)’:&lt;br&gt;
  state_machine.cpp:27:16: error: no matching function for call to ‘state_machine::state_machine()’&lt;br&gt;
  state_machine.cpp:21:1: note: candidates are: state_machine::state_machine(const int*, const int*, const int (*)[10][10], int, int)&lt;br&gt;
  state_machine.cpp:8:1: note:                 state_machine::state_machine(const state_machine&amp;)
  </code></pre>