error: expected unqualified-id before '<' token|
<p>I'm getting the following errors:</p>

<pre><code>preprocessor_directives.cpp|15|error: expected unqualified-id before '&lt;' token|
preprocessor_directives.cpp|26|error: expected `;' before "int"|
||=== Build finished: 2 errors, 0 warnings ===|
</code></pre>



<pre><code>#include &lt;iostream&gt;

using namespace std;

// Avoid. Using #define for constants
#define MY_CONST1 1000

// Use. Equivalent constant definition
const int MY_CONST2 = 2000;

// Avoid. Using #define for function like macros
#define SQR1(x) (x*x)

// Use. Equivalent funtion definition
inline template &lt;typename T&gt;
T SQR2 ( T a ) {
    return a*a;
}
// Writing #define in multiple lines
#define MAX(a,b) \
((a) &gt; (b) ? (a) : (b))

// Compile time flags
#define DEBUG

int main()
{
    cout &lt;&lt; "SQR1 = " &lt;&lt; SQR1(10) &lt;&lt; endl;
    cout &lt;&lt; "SQR2 = " &lt;&lt; SQR2(10) &lt;&lt; endl;
    cout &lt;&lt; "MAX = " &lt;&lt; MAX(10,11) &lt;&lt; endl;
    cout &lt;&lt; "MY_CONST1 = " &lt;&lt; MY_CONST1 &lt;&lt; endl;
    cout &lt;&lt; "MY_CONST2 = " &lt;&lt; MY_CONST2 &lt;&lt; endl;

    return 0;
}
</code></pre>
