제출 #180605

#제출 시각아이디문제언어결과실행 시간메모리
180605FieryPhoenix곤돌라 (IOI14_gondola)C++11
컴파일 에러
0 ms0 KiB
#include <iostream> #include <vector> #include <algorithm> #include <cmath> #include <cstdio> #include <map> #include <queue> #include <set> #include <iomanip> #include <deque> #include <cassert> #include <ctime> #include <cstring> #include <cstdlib> #include <chrono> #include <ctime> #include <random> #include <stack> #include <unordered_set> #include <unordered_map> #include <iterator> #include <climits> #include "gondola.h" using namespace std; mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); typedef long long ll; typedef long double ld; #define INF 2001001001 #define MOD 1000000007 int valid(int N, int arr[]){ set<int>st; int pos=-1; for (int i=0;i<N;i++){ if (st.count(arr[i])) return 0; st.insert(arr[i]); if (arr[i]<=N) pos=i; } if (pos==-1) return 1; for (int i=0;i<N;i++){ int j=(pos+i)%N; int target=arr[pos]+i; if (target>N) target-=N; if (arr[j]<=N && arr[j]!=target) return 0; } return 1; }

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

/tmp/cc196qc7.o: In function `main':
grader.cpp:(.text.startup+0xc3): undefined reference to `countReplacement'
grader.cpp:(.text.startup+0x106): undefined reference to `replacement'
collect2: error: ld returned 1 exit status