제출 #641061

#제출 시각아이디문제언어결과실행 시간메모리
641061BenmathHorses (IOI15_horses)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include<horses.h> using namespace std; int init(int N, int X[], int Y[]) { int pro=1; int maxi=0; for(int i=0;i<N;i++){ pro=pro*X[i]; int pro1=pro*Y[i]; if(pro1>maxi){ maxi=pro1; } } return maxi; } /* int main() { cout << "Hello world!" << endl; return 0; } */

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

/usr/bin/ld: /tmp/ccNy6gwo.o: in function `main':
grader.c:(.text.startup+0x113): undefined reference to `updateX(int, int)'
/usr/bin/ld: grader.c:(.text.startup+0x16d): undefined reference to `updateY(int, int)'
collect2: error: ld returned 1 exit status