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

This is the latest submission verdict.

  • [2024-09-18 04:01:06]
  • Judged
  • [2024-09-18 04:01:06]
  • Submitted

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);
      |                     ^~~~