제출 #1000086

#제출 시각아이디문제언어결과실행 시간메모리
1000086jer033말 (IOI15_horses)C++17
17 / 100
12 ms8284 KiB
#include "horses.h"
#include <bits/stdc++.h>
using ll = long long;
using namespace std;
const ll MOD = 1'000'000'007;

int init(int N, int X[], int Y[]) {
	int best = 0;
	int curr = 1;
	for (int i=0; i<N; i++)
	{
		curr = curr*X[i];
		best = max(best, curr*Y[i]);
	}
	return best;
}

int updateX(int pos, int val) {	
	//X[pos] = val;
	return 1;
}

int updateY(int pos, int val) {
	//Y[pos] = val;
}

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

horses.cpp: In function 'int updateX(int, int)':
horses.cpp:18:17: warning: unused parameter 'pos' [-Wunused-parameter]
   18 | int updateX(int pos, int val) {
      |             ~~~~^~~
horses.cpp:18:26: warning: unused parameter 'val' [-Wunused-parameter]
   18 | int updateX(int pos, int val) {
      |                      ~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:25:1: warning: no return statement in function returning non-void [-Wreturn-type]
   25 | }
      | ^
horses.cpp:23:17: warning: unused parameter 'pos' [-Wunused-parameter]
   23 | int updateY(int pos, int val) {
      |             ~~~~^~~
horses.cpp:23:26: warning: unused parameter 'val' [-Wunused-parameter]
   23 | int updateY(int pos, int val) {
      |                      ~~~~^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...