title: What does the C++ compiler error "looks like a function definition, but there is no parameter list;" mean?
body: <pre><code>#include &lt;iostream&gt;
  #include &lt;fstream&gt;
  
  using namespace std;
  
  int main
  {
      int num1, num2;
      ifstream infile;
      ostream outfile;
  
      infile.open("input.dat");
      outfile.open("output.dat");
  
      infile &gt;&gt; num 1 &gt;&gt; num 2;
  
      outfile &lt;&lt; "Sum = " &lt;&lt; num1 + num2 &lt;&lt; endl;
  
      infile.close()
      outfile.close()
      return 0;
  }
  </code></pre>
  
  <p>This is what I did and when I compile it, I got this error that said</p>
  
  <pre><code>error C2470: 'main' : looks like a function definition, but there is no
  parameter list; skipping apparent body
  </code></pre>
  
  <p>Please don't hate me :( I am new at this computer science....</p>