title: Expected declaration specifiers or '...' before '(' token?
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;windows.h&gt;
  
  /// Global Variables
  HANDLE ConsoleHandle;
  
  int RGB (int R, int G, int B); // line 8
  int Set_Color (int RGB_Fore, int RGB_Back);
  
  int main (void)
  {
    // Get Handle
    ConsoleHandle = GetStdHandle(STD_OUTPUT_HANDLE); 
    char Str [32] = "Happy New Year.\n";
    printf("%s", Str);
    system("pause&gt;nul");
    return 0;
  }
  
  int RGB (int R, int G, int B) // line 21
  {
    return (R*4 + G*2 + B);
  }
  
  int Set_Color (int RGB_Fore, int RGB_Back)
  {
    SetConsoleTextAttribute(ConsoleHandle, RGB_Fore*8 + RGB_Back);
  }
  </code></pre>
  
  <p>The TDM-GCC reported:</p>
  
  <pre><code>| line | Message
  |  08  | error: expected declaration specifiers or '...' before '(' token
  |  21  | error: expected declaration specifiers or '...' before '(' token
  </code></pre>
  
  <p>Why? How to solve this problem? Thanks</p>