제출 #338637

#제출 시각아이디문제언어결과실행 시간메모리
338637blueQuality Of Living (IOI10_quality)C++17
컴파일 에러
0 ms0 KiB
#include "quality.h" #include <vector> #include <algorithm> using namespace std; int quality(int R, int C, int H, int W, int Q[3001][3001]) { int res = 0; vector<int> temp; for(int i = H-1; i < R; i++) { for(int j = W-1; j < C; j++) { temp.clear(); for(int x = i-H+1; x <= i; x++) { for(int y = j-W+1; y <= j; y++) { temp.push_back(Q[x][y]); } } sort(temp.begin(), temp.end()); res = max(res, temp[temp.size()/2]); } } return res; }

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

/tmp/ccStn1t7.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