title: "Access is denied" GCC C compile
body: <p>I know there have been similar questions but none of them seem to solve my problem. After successfully compiling my code, I got an "Access is denied." message from my command prompt after trying to run it (picture below).</p>
  
  <p><img src="https://i.stack.imgur.com/iFs1v.png" alt="Command Prompt Message"></p>
  
  <p>The code I'm trying to run in a file named <strong>dummyC.c</strong> is:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main (void) {
      printf("Hello");
  }
  </code></pre>
  
  <p>For context, I'm using Windows 10 64-bit. The GCC version (<code>GCC -v</code>) is MinGW 9.2.0, also in the attached picture. Is there any way I could solve this?</p>
  
  <p><strong>EDIT: The problem was my Avast antivirus flagging the output file <code>a.exe</code> as a Trojan or a virus. The problem was solved after I temporarily disabled all Avast shields.</strong></p>