제출 #594396

#제출 시각아이디문제언어결과실행 시간메모리
594396shrimbSplit the sequence (APIO14_sequence)C++17
컴파일 에러
0 ms0 KiB
#include "game.h"

int cnt[1501];

void initialize(int n) {
    for (int i = 1 ; i <= n ; i++) cnt[i] = n - 1;
}

int hasEdge(int u, int v) {
    if (--cnt[u] == 1 || --cnt[v] == 1) return 1;
    else return 0;
}

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

sequence.cpp:1:10: fatal error: game.h: No such file or directory
    1 | #include "game.h"
      |          ^~~~~~~~
compilation terminated.