error: 'atoi' is not a member of 'std'
<p>I've searched high and low but nothing answers this specific issue. I am doing a coding assignment that functions perfectly as I want it to. However, per our instructors directions, we are not allowed to included the entire standard library, only specific functions (string, cout, etc.)</p>

<p>If I include 'stdlib.h' my code functions perfectly. If I remove that inclusion, I receive errors on these lines:</p>

<pre><code>lid = atoi((input.substr(0, index1)).c_str());
</code></pre>

<blockquote>
  <p>error: 'atoi' was not declared in this scope</p>
</blockquote>

<pre><code>lgpa = atof((input.substr(index1 + 1, (index2 - index1 - 1))).c_str());
</code></pre>

<blockquote>
  <p>error: 'atof' was not declared in this scope</p>
</blockquote>

<p>I have attempted to include these functions directly and receive the following errors:</p>

<pre><code>lid = std::atoi((input.substr(0, index1)).c_str());
</code></pre>

<blockquote>
  <p>error: 'atoi' is not a member of 'std'</p>
</blockquote>

<pre><code>lgpa = std::atof((input.substr(index1 + 1, (index2 - index1 - 1))).c_str());
</code></pre>

<blockquote>
  <p>error: 'atof' is not a member of 'std'</p>
</blockquote>

<p>Any constructive input would be very much appreciated.</p>