제출 #710212

#제출 시각아이디문제언어결과실행 시간메모리
710212BaytoroGap (APIO16_gap)C++17
컴파일 에러
0 ms0 KiB
//#include "gap.h" #include <bits/stdc++.h> #include "grader.cpp" using namespace std; #define ll long long ll a[200005],inf=1e18; ll mx,mn; long long findGap(int T, int N){ //if(T==1){ ll l=0,r=N,x=0,y=inf; while(l<r){ MinMax(x,y,&mn,&mx); a[l++]=mn,a[--r]=mx; x=mn+1; y=mx-1; } ll ans=0; for(int i=0;i<N-1;i++) ans=max(ans,a[i+1]-a[i]); return ans; //} //return 0; }

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

/usr/bin/ld: /tmp/ccCtFTzB.o: in function `MinMax(long long, long long, long long*, long long*)':
grader.cpp:(.text+0x0): multiple definition of `MinMax(long long, long long, long long*, long long*)'; /tmp/ccolXX2B.o:gap.cpp:(.text+0x1c0): first defined here
/usr/bin/ld: /tmp/ccCtFTzB.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccolXX2B.o:gap.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status