Submission #1297095

#TimeUsernameProblemLanguageResultExecution timeMemory
1297095M_W_13Game (IOI14_game)C++20
Compilation error
0 ms0 KiB
#include "game.h"
#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define st first
#define nd second
#define pb push_back
#define pii pair<int, int>
#define all(a) a.begin(), a.end()

void initialize(int N) {
    
}

int hasEdge(int u, int v) {
    int w = max(u, v);
    cnt[w]++;
    return (c[w] == w);
}

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:19:5: error: 'cnt' was not declared in this scope; did you mean 'int'?
   19 |     cnt[w]++;
      |     ^~~
      |     int
game.cpp:20:13: error: 'c' was not declared in this scope
   20 |     return (c[w] == w);
      |             ^