제출 #138203

#제출 시각아이디문제언어결과실행 시간메모리
138203Sorting말 (IOI15_horses)C++14
17 / 100
29 ms8284 KiB
#include <bits/stdc++.h> using namespace std; const long long mod = 1e9 + 7; const int N = 5e5 + 7; int n, *x, *y; long long init(int _n, int _x[], int _y[]){ n = _n; x = _x; y = _y; long long curr = 1, ans = 0; for(int i = 0; i < n; i++){ curr *= x[i]; ans = max(curr * y[i], ans); } return ans; } long long updateX(int pos, int val){ } long long updateY(int pos, int val){ }

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

horses.cpp: In function 'long long int updateX(int, int)':
horses.cpp:27:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
horses.cpp:25:23: warning: unused parameter 'pos' [-Wunused-parameter]
 long long updateX(int pos, int val){
                       ^~~
horses.cpp:25:32: warning: unused parameter 'val' [-Wunused-parameter]
 long long updateX(int pos, int val){
                                ^~~
horses.cpp: In function 'long long int updateY(int, int)':
horses.cpp:31:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
horses.cpp:29:23: warning: unused parameter 'pos' [-Wunused-parameter]
 long long updateY(int pos, int val){
                       ^~~
horses.cpp:29:32: warning: unused parameter 'val' [-Wunused-parameter]
 long long 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...