제출 #216858

#제출 시각아이디문제언어결과실행 시간메모리
216858kshitij_sodaniHorses (IOI15_horses)C++17
컴파일 에러
0 ms0 KiB
#include <iostream>
#include <bits/stdc++.h>
#include <horses.h>
using namespace std;
typedef long long int llo;
#define mp make_pair
#define pb push_back
#define a first
#define b second
#define endl "\n"
llo mod=1000000007;
llo init(int n,int aa[],int bb[]){
	llo ma=0;
	llo no=1;
	for(llo i=0;i<n;i++){
		no*=aa[i];
		//no%=mod;
		ma=max(ma,(no*bb[i]));
	}
	return ma;
}
llo updateX(int pos,int val){
	return 0;
}
llo updateY(int pos,int val){
	return 0;
}
/*int main(){
	return 0;
}*/

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

horses.cpp: In function 'llo init(int, int*, int*)':
horses.cpp:12:5: error: ambiguating new declaration of 'llo init(int, int*, int*)'
 llo init(int n,int aa[],int bb[]){
     ^~~~
In file included from horses.cpp:3:0:
horses.h:4:5: note: old declaration 'int init(int, int*, int*)'
 int init(int N, int X[], int Y[]);
     ^~~~
horses.cpp: In function 'llo updateX(int, int)':
horses.cpp:22:5: error: ambiguating new declaration of 'llo updateX(int, int)'
 llo updateX(int pos,int val){
     ^~~~~~~
In file included from horses.cpp:3:0:
horses.h:5:5: note: old declaration 'int updateX(int, int)'
 int updateX(int pos, int val);
     ^~~~~~~
horses.cpp:22:17: warning: unused parameter 'pos' [-Wunused-parameter]
 llo updateX(int pos,int val){
                 ^~~
horses.cpp:22:25: warning: unused parameter 'val' [-Wunused-parameter]
 llo updateX(int pos,int val){
                         ^~~
horses.cpp: In function 'llo updateY(int, int)':
horses.cpp:25:5: error: ambiguating new declaration of 'llo updateY(int, int)'
 llo updateY(int pos,int val){
     ^~~~~~~
In file included from horses.cpp:3:0:
horses.h:6:5: note: old declaration 'int updateY(int, int)'
 int updateY(int pos, int val);
     ^~~~~~~
horses.cpp:25:17: warning: unused parameter 'pos' [-Wunused-parameter]
 llo updateY(int pos,int val){
                 ^~~
horses.cpp:25:25: warning: unused parameter 'val' [-Wunused-parameter]
 llo updateY(int pos,int val){
                         ^~~