C ++的内置std :: __ gcd()函数在Mac OS Xcode上不起作用 [英] inbuilt std::__gcd() function for c++ is not working on Mac OS Xcode

查看:46
本文介绍了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;

}

请帮帮我

推荐答案

您可以使用 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆