title: error: redefinition of 'int main()' even if "int main()" apperas only once
body: <p>I was working on a problem on Pbinfo: <a href="https://www.pbinfo.ro/probleme/898/sumfactcif" rel="nofollow noreferrer">https://www.pbinfo.ro/probleme/898/sumfactcif</a> but each time I tried to run my code it said:</p>
  <pre><code>sumfactcif.cpp: In function 'int main()':
  sumfactcif.cpp:35:5: error: redefinition of 'int main()'
   int main(){
  
       ^
  sumfactcif.cpp:25:5: error: 'int main()' previously defined here
   int main()
  
       ^
  </code></pre>
  <p>I don't know what to do because in my IDE(Codebloks) the code has no errors.
  Here's the code if you can help me:</p>
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int sumfactcif(int x)
  {
     int p,p1=0;
     while(x&gt;0)
     {
         int u=x%10;
         p=1;
         for(int i=1;i&lt;=u;i++)
         {
             p=p*i;
         }
         p1=p1+p;
         x=x/10;
     }
     return p1;
  }
  
  int main()
  {
      int x,fct;
      cin&gt;&gt;x;
      fct=sumfactcif(x);
      cout&lt;&lt;fct;
  }
  </code></pre>
  <p>Thanks!</p>