제출 #1308279

#제출 시각아이디문제언어결과실행 시간메모리
1308279Rares곤돌라 (IOI14_gondola)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "gondola.h" using namespace std; const int MAXN=1e6+10; const int MOD=1e9+9; int f[MAXN]; int valid (int n, int a[]){ int x=-1; for (int i=1;i<=n;++i){ if (a[i]>n) continue; int crt=a[i]-i; if (crt<0) crt+=n; if (x==-1){ x=crt; } else{ if (x!=crt) return false; } } return true; }

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

/usr/bin/ld: /tmp/ccpe0j34.o: in function `main':
grader.cpp:(.text.startup+0xfc): undefined reference to `replacement'
/usr/bin/ld: grader.cpp:(.text.startup+0x18d): undefined reference to `countReplacement'
collect2: error: ld returned 1 exit status