C ++的内置std :: __ gcd()函数在Mac OS Xcode上不起作用 [英] inbuilt std::__gcd() function for c++ is not working on Mac OS Xcode
本文介绍了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;
}
请帮帮我
推荐答案
您可以使用
这篇关于C ++的内置std :: __ gcd()函数在Mac OS Xcode上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文