"error: conversion from 'int' to non-scalar type 'COORD' requested"
<p>I get this solitary error while trying to compile the following code in code::blocks.<br>
The error is occurring 8 lines down.</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;windows.h&gt;
using namespace std;

int main()
{
HANDLE screen = GetStdHandle(STD_OUTPUT_HANDLE);
COORD pos = (40, 3);
SetConsoleCursorPosition(screen, pos);
cout &lt;&lt; "O" &lt;&lt; endl;
Sleep(500);

for (int tossIt = 1; tossIt &lt;= 3; tossIt++)
{
    while (pos.Y &lt;= 20)
    {
        SetConsoleCursorPosition(screen, pos);
        cout &lt;&lt; "|" &lt;&lt; endl;
        pos.Y++;
        SetConsoleCursorPosition(screen, pos);
        cout &lt;&lt; "O" &lt;&lt; endl;
        Sleep(100);
    }
    while (pos.Y &gt; 3)
    {
        SetConsoleCursorPosition(screen, pos);
        cout &lt;&lt; " " &lt;&lt; endl;
        pos.Y--;
        SetConsoleCursorPosition(screen, pos);
        cout &lt;&lt; "O" &lt;&lt; endl;
        Sleep(100);
    }
}
return 0;
}
</code></pre>
