제출 #673444

#제출 시각아이디문제언어결과실행 시간메모리
673444S2speedGap (APIO16_gap)C++17
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> #include "gap.h" using namespace std; #pragma GCC optimize ("Ofast") #define all(x) x.begin() , x.end() #define sze(x) (ll)(x.size()) typedef long long ll; const ll maxn = 1e5 + 17 , md = 1e9 + 7; ll a[maxn] , mn , mx; ll findGap(ll T , ll n){ ll x = 0 , y = n , pn = 0 , px = 1e18; while(x < y){ MinMax(pn , px , &mn , &mx); a[x++] = mn; a[--y] = mx; pn = mn + 1; px = mx - 1; } ll ans = 0; for(ll i = 0 ; i < n - 1 ; i++){ ans = max(ans , a[i + 1] - a[i]); } return ans; }

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

/usr/bin/ld: /tmp/ccoOmrZp.o: in function `main':
grader.cpp:(.text.startup+0x1b7): undefined reference to `findGap(int, int)'
collect2: error: ld returned 1 exit status