Submission #624949

#TimeUsernameProblemLanguageResultExecution timeMemory
624949DrollWolfQuality Of Living (IOI10_quality)C++17
Compilation error
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); }

Compilation message (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