답안 #680445

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
680445 2023-01-10T21:13:40 Z cadmiumsky 낙하산 고리들 (IOI12_rings) C++14
컴파일 오류
0 ms 0 KB
#include "rings.h"
#include "B.cpp"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

#define inbuf_len 1 << 16
#define outbuf_len 1 << 16

int main() {
  int tmp;

  /* Set input and output buffering */
  char *inbuf, *outbuf;
  inbuf = (char*) malloc(inbuf_len * sizeof(char));
  outbuf = (char*) malloc(outbuf_len * sizeof(char));
  tmp = setvbuf(stdin, inbuf, _IOFBF, inbuf_len);
  tmp = setvbuf(stdout, outbuf, _IOFBF, outbuf_len);

  int N, L;
  tmp = scanf("%d %d", &N, &L);
  assert(tmp == 2);
  Init(N);

  int i;
  for (i = 0; i < L; i++) {
    int A, B;
    tmp = scanf("%d", &A);
    if (A == -1) {
      int critical;
      critical = CountCritical();
      printf("%d\n", critical);
    } else {
      tmp = scanf("%d", &B);
      assert(tmp == 1);
      Link(A, B);
    }
  }

  return 0;

}

Compilation message

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