title: Error: "expression must have integral or unscoped enum type"
body: <p>So guys I'm new I tried looking up a solution however, I didn't really understand it that well, I'm writing shorthand to understand how they can be replaced with other pieces of code, so I ran across the modulus to which I added however it gives a  <strong>"expression must have integral or unscoped enum type"</strong>.</p>
  
  <p>I don't know enum type is exactly, they code doesn't run?</p>
  
  <pre><code>#include&lt;iostream&gt;
  #include&lt;string&gt;
  using namespace std;
  
  int main() {
  
      double b, x, y, z, a, c;
  
      c, b, x, y, z, a, c = 100;
      x += 5;
      y -= 2;
      z *= 10;
      a /= b;
      c %= 3; // "c" seems to be giving out that error?
  
  
      cout &lt;&lt; b &lt;&lt; x &lt;&lt; y &lt;&lt; z &lt;&lt; a &lt;&lt; c;
  
  
      return 0;
  }
  </code></pre>
  
  <p>the problem here is that "c" gives the <strong>"expression must have integral or unscoped enum type"</strong> error.</p>
  
  <p>I know what the modulus does, it gives the remainder of the division between 2 numbers, however I'm stumped in this case because should it gives a remainder? Is it syntactically wrong?</p>