Submission #587324

#TimeUsernameProblemLanguageResultExecution timeMemory
587324HeyYouNotYouYouQuality Of Living (IOI10_quality)C++14
Compilation error
0 ms0 KiB
#include "quality.h" #include "grader.cpp" #include <bits/stdc++.h> using namespace std; int rectangle(int R, int C, int H, int W, int Q[3001][3001]) { int median = (H*W)/2; int mn=INT_MAX; for(int i = 0 ; i <= R-H ; i ++) { for(int j = 0; j <= C-W ; j ++) { vector<int>ans; for(int p = i ; p <= i+H-1 ; p ++){ for(int k = j ; k <= j+W-1 ; k ++) { ans.push_back(Q[p][k]); } } sort(ans.begin(),ans.end()); mn=min(mn,ans[median]); } } // cout<<mn<<endl; return mn; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccApN64p.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccJTWlrt.o:quality.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status