Submission #1000086

#TimeUsernameProblemLanguageResultExecution timeMemory
1000086jer033Horses (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; }

Compilation message (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...