Submission #876448

#TimeUsernameProblemLanguageResultExecution timeMemory
876448aykhnGame (IOI14_game)C++17
Compilation error
0 ms0 KiB
#include "game.h"
#include <bits/stdc++.h>
 
// author : aykhn
 
using namespace std;
typedef long long ll;
 
#define pb push_back
#define pf push_front
#define ins insert
#define mpr make_pair
#define all(v) v.begin(), v.end()
#define bpc __builtin_popcountll
#define pii pair<ll, ll>
#define pll pair<ll, ll>
#define fi first
#define se second
#define infll 0x3F3F3F3F3F3F3F3F
#define inf 0x3F3F3F3F

int c[1500];
 
void initialize(int N)
{
  	for (int i = 0; i < N; i++) c[i] = i;
}
 
int hasEdge(int u, int v)
{
    return !(--c[max(u, v)];
}

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:31:28: error: expected ')' before ';' token
   31 |     return !(--c[max(u, v)];
      |             ~              ^
      |                            )