제출 #232357

#제출 시각아이디문제언어결과실행 시간메모리
232357jam_xd_Gondola (IOI14_gondola)C++17
컴파일 에러
0 ms0 KiB
#include "ricehub.h" #include <bits/stdc++.h> int besthub(int R, int L, int X[], long long B) { int rhub = 1;//thub=0; int operaciones = 0, c_hub=0; multiset<int>dinamic_multiset; for(int i=0;i<X.size();i++){ if(rhub <= X[i]){ for(int j=X[i];j>=rhub;j++){ operaciones++; if(operaciones >= B){ dinamic_multiset.insert(c_hub); operaciones=0; c_hub=0; break; } } c_hub++; } if(rhub >= X[i]){ for(int j=X[i];j<=rhub;j++){ operaciones++; if(operaciones>=B){ dinamic_multiset.insert(c_hub); operaciones = 0; c_hub=0; break; } } c_hub++; } } multiset<int>::iterator it = dinamic_multiset.end(); for(it = dinamic_multiset.begin(); it != dinamic_multiset.end(); it++){ if(it != dinamic_multiset.end())R = (*it); } ///////////////////////////////////////////////////////////////////// /*for(int i=1;i<=L;i++){ }*/ return R; }

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

gondola.cpp:1:10: fatal error: ricehub.h: No such file or directory
 #include "ricehub.h"
          ^~~~~~~~~~~
compilation terminated.