Submission #65642

#TimeUsernameProblemLanguageResultExecution timeMemory
65642KubalionzzaleGame (IOI14_game)C++14
Compilation error
0 ms0 KiB
#include "game.h"

int cnt[1600] = { 0 };
int max = n;
void initialize(int n) {
    max = n * (n - 1);
}

int hasEdge(int u, int v) {

    if (cnt[u] == max - 2 || cnt[v] == max - 2)
        return 1;
    else
        return 0;
}

Compilation message (stderr)

game.cpp:4:11: error: 'n' was not declared in this scope
 int max = n;
           ^