Submission #223714

#TimeUsernameProblemLanguageResultExecution timeMemory
223714Ruxandra985Game (IOI14_game)C++14
Compilation error
0 ms0 KiB
#include "game.h" using namespace std; int lft[1510]; void initialize (int n){ for (int i = 0 ; i < n ; i++) lft[i] = n - 1; } int hasEdge (int u , int v){ if (u > v) swap(u , v); lft[u]--; lft[v]--; if (lft[u] == 0) return 1; if (lft[v] == 0) return 1; return 0; }

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:14:9: error: 'swap' was not declared in this scope
         swap(u , v);
         ^~~~