Submission #1124333

#TimeUsernameProblemLanguageResultExecution timeMemory
1124333codexistentGame (IOI14_game)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#include "game.h"
using namespace std;

void initialize(int n) {

}

int ct[1500];
int hasEdge(int u, int v) {
    return ++ct[max(u, v)] == max(a, b);
}

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:11:35: error: 'a' was not declared in this scope
   11 |     return ++ct[max(u, v)] == max(a, b);
      |                                   ^
game.cpp:11:38: error: 'b' was not declared in this scope
   11 |     return ++ct[max(u, v)] == max(a, b);
      |                                      ^