제출 #1174087

#제출 시각아이디문제언어결과실행 시간메모리
1174087Lithanium미술 수업 (IOI13_artclass)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int dt[505][505]; int getR(int RGB) { return (RGB >> 16) & 0xFF; } int getG(int RGB) { return (RGB >> 8) & 0xFF; } int getB(int RGB) { return RGB & 0xFF; } void solve(int test) { int R, C; cin >> R >> C; double green = 0; for (int i = 1; i <= R; i ++) { for (int j = 1; j <= C; j ++) { cin >> dt[i][j]; green += getG(dt[i][j]); } } green /= (double)R*C; if (75.0 < green and green < 105.0) cout << "2\n"; else cout << "1\n"; } int main() { ios_base::sync_with_stdio(false); cin.tie(0); int T; cin >> T; for (int i = 1; i <= T; i ++) solve(i); }

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

/usr/bin/ld: /tmp/cce1CRl4.o: in function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'; /tmp/ccTxtVmj.o:artclass.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cce1CRl4.o: in function `main':
grader.c:(.text.startup+0x202): undefined reference to `style'
collect2: error: ld returned 1 exit status