title: What is "expected unqualified-id" error in C++?
body: <p>Im trying to learn stl:bitmap, but I'm getting the following error:
  Headers added
  - bitset
  - string</p>
  
  <p>Ive searched other SO posts for this error, but they are not related to bitset. </p>
  
  <p>My Code</p>
  
  <pre><code>int main(){
      bitset&lt;size&gt; bs;
      bitset&lt;10&gt; bs2(45);
      bitset&lt;13&gt; bs3("1100101");
  
      cout &lt;&lt; "bs: " &lt;&lt; bs &lt;&lt; endl;
      cout &lt;&lt; "bs1: " &lt;&lt; bs2 &lt;&lt; endl;
      cout &lt;&lt; "bs2: " &lt;&lt; bs3 &lt;&lt; endl;
      cout &lt;&lt; endl;
  
      cout &lt;&lt; "bs has " &lt;&lt; bs.count() &lt;&lt; " set bits" &lt;&lt; endl;
  
      cout &lt;&lt; bs.size() &lt;&lt; endl;
      cout &lt;&lt; bs2.size() &lt;&lt; endl;
      cout &lt;&lt; bs3.size() &lt;&lt; endl;
  }
  </code></pre>
  
  <p>My Error: Error in the last 3 cout statements.</p>
  
  <pre><code>$ g++ test.cpp 
  test.cpp:28:16: error: expected unqualified-id
      cout &lt;&lt; bs.size() &lt;&lt; endl;
                 ^
  test.cpp:6:14: note: expanded from macro 'size'
  #define size 16
               ^
  test.cpp:29:17: error: expected unqualified-id
      cout &lt;&lt; bs2.size() &lt;&lt; endl;
                  ^
  test.cpp:6:14: note: expanded from macro 'size'
  #define size 16
               ^
  test.cpp:30:17: error: expected unqualified-id
      cout &lt;&lt; bs3.size() &lt;&lt; endl;
                  ^
  test.cpp:6:14: note: expanded from macro 'size'
  #define size 16
               ^
  3 errors generated.
  $ 
  </code></pre>