title: ERROR: '::main' must return 'int'
body: <p>This my main function:  </p>
  
  <pre><code>void main(int argc, char **argv)
  {
      if (argc &gt;= 4)
      {
          ProcessScheduler *processScheduler;
          std::cout &lt;&lt;
              "Running algorithm: " &lt;&lt; argv[2] &lt;&lt;
              "\nWith a CSP of: " &lt;&lt; argv[3] &lt;&lt;
              "\nFilename: " &lt;&lt; argv[1] &lt;&lt;
              std::endl &lt;&lt; std::endl;
  
          if (argc == 4)
          {
              processScheduler = new ProcessScheduler(
                  argv[2],
                  atoi(argv[3])
              );
          }
          else
          {
              processScheduler = new ProcessScheduler(
                  argv[2],
                  atoi(argv[3]),
                  atoi(argv[4]),
                  atoi(argv[5])
              );
          }
          processScheduler -&gt; LoadFile(argv[1]);
          processScheduler -&gt; RunProcesses();
  
          GanntChart ganntChart(*processScheduler);
          ganntChart.DisplayChart();
          ganntChart.DisplayTable();
          ganntChart.DisplaySummary();
  
          system("pause");
  
          delete processScheduler;
      }
      else
      {
          PrintUsage();
      }
  }
  </code></pre>
  
  <p>The error I get when I compile is this:</p>
  
  <blockquote>
    <p>Application.cpp:41:32: error: '::main' must return 'int'</p>
  </blockquote>
  
  <p>It's a void function how can I return int and how do I fix it?</p>