Submission #103003

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

void initialize(int n) {

}

int hasEdge(int u, int v) {
    if (u < v)
        u = v;
    c[u]++;
    return c[u] == u;
}

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:10:5: error: 'c' was not declared in this scope
     c[u]++;
     ^