제출 #876448

#제출 시각아이디문제언어결과실행 시간메모리
876448aykhnGame (IOI14_game)C++17
컴파일 에러
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)];
}

컴파일 시 표준 에러 (stderr) 메시지

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