title: Gradescope is showing my code is incorrect , question and code is below
body: <p>Write a program that inputs four numbers separated by spaces.  The program should count how many odd and even numbers there are. The program should then output one of three possibilities depending on how many even and odd numbers are entered:</p>
  <p>more evens
  more odds
  same number of evens and odds</p>
  <p>For example, an execution could look like this:</p>
  <p>Please enter 4 positive integers, separated by a space: 2 3 5 7
  more odds</p>
  <p>Code:</p>
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main()
  {
      int num1, num2, num3, num4;
      cout &lt;&lt; &quot;Plese enter 4 positive integers, seperated by space:&quot; &lt;&lt; endl;
      cin &gt;&gt; num1 &gt;&gt; num2 &gt;&gt; num3 &gt;&gt; num4;
      if ((num1 % 2 == 0) &amp;&amp; (num2 % 2 == 0) &amp;&amp; (num3 % 2 == 0) &amp;&amp; (num4 % 2 == 0)) {
          cout &lt;&lt; &quot;more evens&quot; &lt;&lt; endl;
      }
      else if ((num1 % 2 != 0) &amp;&amp; (num2 % 2 == 0) &amp;&amp; (num3 % 2 == 0) &amp;&amp; (num4 % 2 == 0)) {
          cout &lt;&lt; &quot;more evens&quot; &lt;&lt; endl;
      }
      else if ((num1 % 2 == 0) &amp;&amp; (num2 % 2 != 0) &amp;&amp; (num3 % 2 == 0) &amp;&amp; (num4 % 2 == 0)) {
          cout &lt;&lt; &quot;more evens&quot; &lt;&lt; endl;
      }
      else if ((num1 % 2 == 0) &amp;&amp; (num2 % 2 == 0) &amp;&amp; (num3 % 2 != 0) &amp;&amp; (num4 % 2 == 0)) {
          cout &lt;&lt; &quot;more evens&quot; &lt;&lt; endl;
      }
      else if ((num1 % 2 == 0) &amp;&amp; (num2 % 2 == 0) &amp;&amp; (num3 % 2 == 0) &amp;&amp; (num4 % 2 != 0)) {
          cout &lt;&lt; &quot;more evens&quot; &lt;&lt; endl;
      }
      else if ((num1 % 2 != 0) &amp;&amp; (num2 % 2 != 0) &amp;&amp; (num3 % 2 == 0) &amp;&amp; (num4 % 2 == 0)) {
          cout &lt;&lt; &quot;same number of odds and evens&quot; &lt;&lt; endl;
      }
      else if ((num1 % 2 != 0) &amp;&amp; (num2 % 2 == 0) &amp;&amp; (num3 % 2 != 0) &amp;&amp; (num4 % 2 == 0)) {
          cout &lt;&lt; &quot;same number of odds and evens&quot; &lt;&lt; endl;
      }
      else if ((num1 % 2 != 0) &amp;&amp; (num2 % 2 == 0) &amp;&amp; (num3 % 2 == 0) &amp;&amp; (num4 % 2 != 0)) {
          cout &lt;&lt; &quot;same number of odds and evens&quot; &lt;&lt; endl;
      }
      else if ((num1 % 2 == 0) &amp;&amp; (num2 % 2 != 0) &amp;&amp; (num3 % 2 != 0) &amp;&amp; (num4 % 2 == 0)) {
          cout &lt;&lt; &quot;same number of odds and evens&quot; &lt;&lt; endl;
      }
      else if ((num1 % 2 == 0) &amp;&amp; (num2 % 2 == 0) &amp;&amp; (num3 % 2 != 0) &amp;&amp; (num4 % 2 != 0)) {
          cout &lt;&lt; &quot;same number of odds and evens&quot; &lt;&lt; endl;
      }
      else if ((num1 % 2 != 0) &amp;&amp; (num2 % 2 != 0) &amp;&amp; (num3 % 2 != 0) &amp;&amp; (num4 % 2 == 0)) {
          cout &lt;&lt; &quot;more odds&quot; &lt;&lt; endl;
      }
      else if ((num1 % 2 != 0) &amp;&amp; (num2 % 2 != 0) &amp;&amp; (num3 % 2 == 0) &amp;&amp; (num4 % 2 != 0)) {
          cout &lt;&lt; &quot;more odds&quot; &lt;&lt; endl;
      }
      else if ((num1 % 2 != 0) &amp;&amp; (num2 % 2 == 0) &amp;&amp; (num3 % 2 != 0) &amp;&amp; (num4 % 2 != 0)) {
          cout &lt;&lt; &quot;more odds&quot; &lt;&lt; endl;
      }
      else if ((num1 % 2 == 0) &amp;&amp; (num2 % 2 != 0) &amp;&amp; (num3 % 2 != 0) &amp;&amp; (num4 % 2 != 0)) {
          cout &lt;&lt; &quot;more odds&quot; &lt;&lt; endl;
      }
      else {
          cout &lt;&lt; &quot;more odds&quot; &lt;&lt; endl;
      }
      return 0;
  }
  </code></pre>