spj编译失败
  • 板块灌水区
  • 楼主Genshin_ZFYX
  • 当前回复8
  • 已保存回复8
  • 发布时间2024/4/17 21:00
  • 上次更新2024/4/18 10:24:17
查看原帖
spj编译失败
1073342
Genshin_ZFYX楼主2024/4/17 21:00

我写了个 spj,用 dev-c++ 编译失败了,然后我又试了个最简单的 spj,也失败了……

错误信息:[Error] #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

#include "testlib.h"

int main(int argc, char * argv[]) {
    setName("compares two signed integers");
    registerTestlibCmd(argc, argv);
    int ja = ans.readInt();
    int pa = ouf.readInt();
    if (ja != pa)
        quitf(_wa, "expected %d, found %d", ja, pa);
    quitf(_ok, "answer is %d", ja);
}
2024/4/17 21:00
加载中...