I am using visual studio 2017 and I have run across a problem. When trying to use std::gcd
it gives me an error error C2039: 'gcd': is not a member of 'std'
Here's my code:
#include "pch.h"
#include <iostream>
#include <numeric>
int main() {
std::cout << std::gcd(10, 5);
return 1;
}