제출 #582268

#제출 시각아이디문제언어결과실행 시간메모리
582268wdjpngGondola (IOI14_gondola)C++17
컴파일 에러
0 ms0 KiB
#include "gondola.h"
#include "friend.h"
#include <bits/stdc++.h>

#define int long long
#define rep(i,n) for(int i = 0; i < n; i++)
#define all(a) a.begin(), a.end()

using namespace std;
int N =1e5+1;

signed valid(signed n, signed inputSeq[])
{
  int minn = 1e18, mini=-1;
  rep(i,n) if(inputSeq[i]<minn) {minn=inputSeq[i]; mini=i;}
  vector<int>x(n);
  rep(i,n) x[i]=inputSeq[(i+mini)%n];
  rep(i,n) if(x[i]!=i+1&&x[i]<=n) return 0;
  return 1; 
}

//----------------------

signed replacement(signed n, signed gondolaSeq[], signed replacementSeq[])
{
  return -2;
}

//----------------------

signed countReplacement(signed n, signed inputSeq[])
{
  return -3;
}

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

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