제출 #307260

#제출 시각아이디문제언어결과실행 시간메모리
307260vipghn2003말 (IOI15_horses)C++14
0 / 100
29 ms4472 KiB
#include<bits/stdc++.h> using namespace std; long long init(int N,int X[],int Y[]) { long long res; for(int i=0;i<N;i++) { long long cur=1; int id=-1; for(int j=i+1;j<N;j++) { cur*=X[j]; if(cur*Y[j]>=Y[i]) { id=j; break; } } if(id==-1) { res=Y[i]; for(int j=0;j<=i;j++) res*=X[i]; } else i=id-1; } return res; } long long updateX(int pos,int val) { return 0; } long long updateY(int pos,int val) { return 0; } /* int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } */

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

horses.cpp: In function 'long long int updateX(int, int)':
horses.cpp:31:23: warning: unused parameter 'pos' [-Wunused-parameter]
   31 | long long updateX(int pos,int val)
      |                   ~~~~^~~
horses.cpp:31:31: warning: unused parameter 'val' [-Wunused-parameter]
   31 | long long updateX(int pos,int val)
      |                           ~~~~^~~
horses.cpp: In function 'long long int updateY(int, int)':
horses.cpp:36:23: warning: unused parameter 'pos' [-Wunused-parameter]
   36 | long long updateY(int pos,int val)
      |                   ~~~~^~~
horses.cpp:36:31: warning: unused parameter 'val' [-Wunused-parameter]
   36 | long long updateY(int pos,int val)
      |                           ~~~~^~~
horses.cpp: In function 'long long int init(int, int*, int*)':
horses.cpp:28:12: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
   28 |     return res;
      |            ^~~
#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...