QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#571695#1148. GameiframeCompile Error//C++17177b2024-09-18 04:01:062024-09-18 04:01:06

Judging History

你现在查看的是最新测评结果

  • [2024-09-18 04:01:06]
  • 评测
  • [2024-09-18 04:01:06]
  • 提交

answer

#include "game.h"

int deg[200005];
void initialize (int n) {
    return ;
}

int hasEdge (int x, int y) {
    if (x > y) std::swap (x, y);
    return ++deg[y] == y;
}

Details

answer.code: In function ‘int hasEdge(int, int)’:
answer.code:9:21: error: ‘swap’ is not a member of ‘std’
    9 |     if (x > y) std::swap (x, y);
      |                     ^~~~