Skip to content

[BUG] 自定义校验器返回的 FAIl 状态被显示为 WA #248

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

Open
run26oyzr opened this issue May 12, 2025 · 0 comments
Open

[BUG] 自定义校验器返回的 FAIl 状态被显示为 WA #248

run26oyzr opened this issue May 12, 2025 · 0 comments
Labels
整叉劈了 | Bug 有一些不该发生的东西发生了

Comments

@run26oyzr
Copy link

描述一下这个 Bug
自定义校验器返回的 FAIl 状态会被视为 WA。

如何复现

  1. 创建新的题目,设置为自定义校验器,添加一个空的测试数据,对应的文件为空
  2. 创建自定义校验器文件并编译
#include "testlib_for_lemons.h"
int main(int argc, char* argv[]) {
    registerLemonChecker(argc, argv);
    ans.quitf(_wa,"??");
    // ans.readInt();
    // quitf(_fail,"??");
}

使用的 testlib_for_lemons.h 是在 https://github.com/GitPinkRabbit/Testlib-for-Lemons 上下载的最新版

这里的三种方法都无法返回正确结果

  1. 在 source 下添加选手代码
int main(){
    return 0;
}
  1. 点击“选手”,“测试全部”,查看试题测试结果

实际结果
“答案错误”
期望获得的结果
“评测失败”之类的提示信息
(类似在 CF polygon 上返回的 FAIL)

Environment:
环境:

  • Version: 0.3.5
  • OS: 系统:Windows24H2 26120.3950
@run26oyzr run26oyzr added the 整叉劈了 | Bug 有一些不该发生的东西发生了 label May 12, 2025
@run26oyzr run26oyzr changed the title [BUG] [BUG] 自定义校验器返回的 FAIl 状态被显示为 WA May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
整叉劈了 | Bug 有一些不该发生的东西发生了
Projects
None yet
Development

No branches or pull requests

1 participant