제출 #41873

#제출 시각아이디문제언어결과실행 시간메모리
41873funcsrHorses (IOI15_horses)C++14
17 / 100
28 ms8820 KiB
#include "horses.h" #include <vector> #include <iostream> #include <algorithm> #include <queue> #define rep(i, n) for (int i=0; i<(n); i++) using namespace std; int N; int init(int NN, int X[], int Y[]) { N = NN; int mx = 0; int x = 1; rep(i, N) { x *= X[i]; mx = max(mx, x*Y[i]); } return mx; } int updateX(int pos, int val) { return 0; } int updateY(int pos, int val) { return 0; }

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

horses.cpp:21:17: warning: unused parameter 'pos' [-Wunused-parameter]
 int updateX(int pos, int val) {
                 ^
horses.cpp:21:26: warning: unused parameter 'val' [-Wunused-parameter]
 int updateX(int pos, int val) {
                          ^
horses.cpp:25:17: warning: unused parameter 'pos' [-Wunused-parameter]
 int updateY(int pos, int val) {
                 ^
horses.cpp:25:26: warning: unused parameter 'val' [-Wunused-parameter]
 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...