title: stoi and stoll in c++
body: <p>I have #include(string) in my declaratives at the top of the program but when I try to run stoi(string) or stoll(string) i get the following error. I am running Cygwin g++ v4.5.3.</p>
  
  <blockquote>
    <p>Z:\G\CSCE 437>g++ convert.cpp -o conv
    convert.cpp: In function <code>void transfer(std::string*)':
    convert.cpp:103:36: error:</code>stoll' was not declared in this scope
    convert.cpp:116:35: error: `stoi' was not declared in this scope</p>
  </blockquote>
  
  <pre><code>    fileTime[numRec] = stoll(result[0]);    //converts string to Long Long
      if(numRec = 0){
         beginningTime = fileTime[0];
      }
      fileTime[numRec] = timeDiff;
      hostName[numRec] = result[1];
      diskNum[numRec] = stoi(result[2]);
      type[numRec] = result[3];
      offset[numRec] = stoi(result[4]);
      fileSize[numRec] = stoi(result[5]);
      responseTime[numRec] = stoi(result[6]);`
  </code></pre>
  
  <p>Where result is an array of strings.</p>