답안 #940230

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
940230 2024-03-07T06:49:54 Z vjudge1 미술 수업 (IOI13_artclass) C++17
컴파일 오류
0 ms 0 KB
#include<bits/stdc++.h>
// #include"dreaming.h"
using namespace std;
int style(int H,int W,int R[500][500],int G[500][500],int B[500][500]){
    bool ans=1;
    for(int i=0;i<H;i++){
        int mn=INT_MAX;
        int mx=-INT_MAX;
        for(int j=0;j<W;j++){
            int u=R[i][j]+G[i][j]+B[i][j];
            mx=max(mx,u);
            mn=min(mn,u);
        }
        if(mx-mn>100){
            ans=0;
        }
    }
    return (ans?4:1);
}
/*



When the light is running low
And the shadows start to grow
And the places that you know
Seem like fantasy

There's a Light inside your soul
That still shining in the cold
With the truth
The promise in our hearts

Don't forget
I'm with you in the dark
*/

Compilation message

/usr/bin/ld: /tmp/ccmMOqw1.o: in function `main':
grader.c:(.text.startup+0x200): undefined reference to `style'
collect2: error: ld returned 1 exit status