title: Control may reach end of non-void function (checking for valid date)
body: <pre><code> bool isValidDate(int month, int day, int year) {
  if(year &lt;= 1752){
      if(month &lt;= 9 &amp;&amp; month &lt;= 13){
          return false;
      }
      else{
      }
  }
  else{
      if((month == 9 || month == 4 || month == 6 || month == 11) &amp;&amp; (day &lt;= 30)){
          return true;
      }
      else if((month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) &amp;&amp; (day &lt;= 31)){
          return true;
      }
      else if(isLeapYear(year)){
          if((month == 2) &amp;&amp; (day &lt;= 29)){
              return true;
          }
      }
      else if(!isLeapYear(year)){
          if((month == 2) &amp;&amp; (day &lt;= 28)){
              return true;
          }
      }
      else{
          return false;
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I'm trying to make it so that if users enter any date before Sept. 13, 1752, it will return false. And also if the days have to be correct according to the month while taking into account leap years for the month of February. But I keep getting an error. Help much needed.</p>