title: Visual studio gives multiple errors when I try to compile C
body: <pre><code>#include &lt;stdio.h&gt;
  int main(void){
  
  int aNumber; 
  printf( "Enter a number:"); 
  scanf( "%d", &amp;aNumber); 
  printf( "You entered %d", aNumber ); 
  getchar();
  
  return 0;
  }
  </code></pre>
  
  <p>Hey I'm really new to coding and was trying to compile a simple C program using Visual Studio Express. I know for sure there is no syntax error with this code but it persists in giving me errors. </p>
  
  <blockquote>
    <p>Error 4 error C2143: syntax error : missing ';' before 'return' </p>
    
    <p>Warning 3 warning C4024: 'printf' : different types for formal and
    actual parameter 1</p>
    
    <p>Warning 1  warning C4996: 'scanf': This function or
    variable may be unsafe. Consider using scanf_s instead. To disable
    deprecation, use _CRT_SECURE_NO_WARNINGS.  See online help for
    details.</p>
    
    <p>Warning 2 warning  C4047: 'function' : 'const char *' differs
    in levels of indirection from 'int'</p>
    
    <p>Warning 3 warning  C4024: 'printf'
    : different types for formal and actual parameter 1 </p>
  </blockquote>
  
  <p>I don't understand the issue.</p>