Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vs2022 C++14 运行报错 #131

Open
Fightinggi opened this issue Apr 6, 2023 · 9 comments
Open

vs2022 C++14 运行报错 #131

Fightinggi opened this issue Apr 6, 2023 · 9 comments

Comments

@Fightinggi
Copy link

Test\algorithm_test.h(722,66): error C2059: 语法错误:“)”

@Fightinggi
Copy link
Author

好的谢谢

@YangWeirdly
Copy link

好的谢谢

请问你解决这个问题了吗

@Fightinggi
Copy link
Author

好的谢谢

请问你解决这个问题了吗

algorithm_test.h(722,66)这个库文件这一行的中文注释删除就可以正常测试了

@YangWeirdly
Copy link

我试试看,谢谢

@15536818056
Copy link

改成ANSI好像也行

@JiJunJie04
Copy link

删除中文注释就可以了,真奇怪

@LeBron-Jian
Copy link

我感觉是编译器对注释中的非 ASCII 字符(如中文字符)的处理可能存在差异, 也可以不删除,直接使用 /* 因为提供的是 C++11 的支持,std::is_permutation 可能没有 C++14 的接口 */ 这样也可以编译通过

@Alice12133
Copy link

algorithm_test.h的字符编码通过记事本另存为带有BOM的utf-8,然后用这个新的文件替代原来的旧文件也可以。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants