제출 #624949

#제출 시각아이디문제언어결과실행 시간메모리
624949DrollWolf삶의 질 (IOI10_quality)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef long long int lli; //const int N = 50e5+5; //int arr[N]; int main() { lli r, c, h, w, i, j, k, l, mini; cin>>r>>c>>h>>w; lli arr[r][c]; for(i=0;i<r;i++) { for(j=0;j<c;j++) cin>>arr[i][j]; } mini= INT_MAX; for(i=0;i<=r-h;i++) { for(j=0;j<=c-w;j++) { vector<lli> vect; for(k=i;k<i+h;k++) { for(l=j;l<j+w;l++) vect.push_back(arr[k][l]); } sort(vect.begin(), vect.end()); mini=min(mini, vect[(h*w)/2]); } } cout<<mini; //freopen("diamond.in","r",stdin); //freopen("diamond.out","w",stdout); }

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

/usr/bin/ld: /tmp/ccTgVuMI.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc79kEwJ.o:quality.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccTgVuMI.o: in function `main':
grader.cpp:(.text.startup+0xe9): undefined reference to `rectangle(int, int, int, int, int (*) [3001])'
collect2: error: ld returned 1 exit status