I'm using Visual Studio 2017. I have a problem in writing GCD code and I can't find out any mistake. The errors are "identifier not found", and "gcd is unidentified". Here is my code:
#include "stdafx.h"
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
cout << __gcd(12, 40);
}