C ++的内置std :: __ gcd()函数在Mac OS Xcode上不起作用
问题描述:
内置__gcd()函数在Xcode macOS上不起作用.我在Xcode(macOS Catalina)上运行了以下代码,它显示了错误使用未声明的标识符'__gcd'".
Inbuilt __gcd() function is not working on Xcode macOS. I have run the following code on Xcode (macOS Catalina) it shows an error "Use of undeclared identifier '__gcd' ".
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
cout << "gcd(6, 20) = " << __gcd(6, 20) << endl;
return 0;
}
请帮帮我