was watching this c++ tutorial on youtube :https://www.youtube.com/watch?v=Rub-JsjMhWY (part i'm referring to starts around 20mins in). Was following the video and was wondering why i was getting this error:
error: 'stod' was not declared in this scope.
Wondering why I'm getting this error here is my code thanks.    
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <cstdlib>
using namespace std;
int main(){
    string yourName;
    cout << "whats your name? ";
    getline(cin, yourName);
    cout<< "hello "<<yourName<<endl;
    double numberConstant = 0.57721;
    string numberguess;
    double numberguessDouble;
    cout<< "Guess a number between 1 and 10";
    numberguessDouble = stod(numberguess);
    if (numberguessDouble == numberConstant){
        cout << "You guessed the correct number of " << numberConstant <<endl;
    }
    else
    {
        cout<< numberguessDouble << " is incorrect the number was "<< numberConstant<<endl;
    }
}