title: Invalid Operands to binary / (have 'int *' and 'int')?
body: <p>Every time I try this:</p>
  <pre><code>long crypt(int *integer)
  {
      printf(&quot;Enter five digit integer:\n&quot;);  
      scanf(&quot;%i&quot;,integer);
      
      int digit1=integer/10000;
      int digit2=(integer%10000)/1000;
      int digit3=(integer%1000)/100;
      int digit4=(integer%100)/10;
      int digit5=(integer%10)/1;
  
      const char *digit1c[10];
      const char *digit2c[10];
      const char *digit3c[10];
      const char *digit4c[10];
      const char *digit5c[10];
  
      /...
  }
  </code></pre>
  <p>(There's more but this seems to be the problem, I'll add the rest by request.)</p>
  <p>then it return this error:</p>
  <pre><code>math2.h:44:20: error: invalid operands to binary / (have ‘int *’ and ‘int’)
  math2.h:45:21: error: invalid operands to binary % (have ‘int *’ and ‘int’)
  math2.h:46:21: error: invalid operands to binary % (have ‘int *’ and ‘int’)
  math2.h:47:21: error: invalid operands to binary % (have ‘int *’ and ‘int’)
  math2.h:48:21: error: invalid operands to binary % (have ‘int *’ and ‘int’)
  </code></pre>
  <p>I know it has something to do with the operators I used to initialize the digits and I did try changing their type to <code>int *</code> but that didn't work.
  So what's happening here exactly?</p>