title: C++: 'set' and 'vector' "undeclared despite #include statements
body: <p>I am using Netbeans 7.1 on Ubuntu 11.04.</p>
  
  <p>The following call</p>
  
  <pre><code>set&lt; Triangle &gt; V;
  </code></pre>
  
  <p>gives the error message</p>
  
  <pre><code>error: ‘set’ was not declared in this scope
  </code></pre>
  
  <p>and the following call</p>
  
  <pre><code>vector&lt; Triangle &gt; ans;
  </code></pre>
  
  <p>gives the error message</p>
  
  <pre><code>error: ‘vector’ was not declared in this scope
  </code></pre>
  
  <p>This despite my having</p>
  
  <pre><code>#include &lt;vector&gt;
  #include &lt;set&gt;
  #include &lt;map&gt;
  </code></pre>
  
  <p>at the beginning of the C++ file.</p>
  
  <p>At help resolving this would be greatly appreciated.<br>
  Peter.</p>