답안 #96398

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
96398 2019-02-09T09:42:23 Z figter001 게임 (IOI14_game) C++14
컴파일 오류
0 ms 0 KB
#include "game.h"
#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
const int manx = 2000;

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

Compilation message

game.cpp:9:9: error: 'maxn' was not declared in this scope
 int cnt[maxn];
         ^~~~
game.cpp:9:9: note: suggested alternative: 'manx'
 int cnt[maxn];
         ^~~~
         manx
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:11:14: error: 'cnt' was not declared in this scope
     return ++cnt[max(u,v)] == max(u,v);
              ^~~
game.cpp:11:14: note: suggested alternative: 'int'
     return ++cnt[max(u,v)] == max(u,v);
              ^~~
              int