title: C++- error C2144 syntax error : 'int' should be preceded by ';'
body: <p>I'm trying to compile this C++ code:</p>
  
  <pre><code>#include &lt;stdlib.h&gt;
  #include &lt;stdio.h&gt;   
  #include &lt;string.h&gt;
  #include "general_configuration.h"
  #include "helper_functions.h"
  
  #define LINE_LEN 80
  
  // file_with_as_ext returns 1 if the input has .as extension
  int file_with_as_ext(char* input)
  {
    char* dot_value = strchr(input, '.');
    if (dot_value == NULL)
      return 0;
    else
    {
      if (strcmp(dot_value,".as") == 0)
        return 1;
    }
  }
  </code></pre>
  
  <p>But I'm getting the error <code>"C2144: syntax error : 'int' should be preceded by ';'"</code></p>
  
  <p>And I can't understand why, because <code>#define</code> doesn't need <code>';'</code> at the end.</p>