Submission #1177854

#TimeUsernameProblemLanguageResultExecution timeMemory
1177854trvhung게임 (IOI14_game)C++20
Compilation error
0 ms0 KiB
#include "game.h"

void initialize(int n) {

}

int cnt[1500];

int hasEdge(int u, int v) {
	if (u < v) std::swap(u, v);
	return ++cnt[u] == cnt[u];
}

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:10:25: error: 'swap' is not a member of 'std'
   10 |         if (u < v) std::swap(u, v);
      |                         ^~~~