제출 #1048655

#제출 시각아이디문제언어결과실행 시간메모리
1048655AndreasKRice Hub (IOI11_ricehub)C++14
컴파일 에러
0 ms0 KiB
#include <ricehub.h>
#include <bits\stdc++.h>
using namespace std;

int besthub(int R, int L, int X[], long long B)
{
  int mx=0;
    for (int c=1;c<=L;c++){
        vector <int> a;
        for (int r=0;r<R;r++)
            a.push_back(abs(X[r]-c));
        sort(a.begin(),a.end());
        int ttl=0;
        int b=B;
        for (int r=0;r<R;r++){
            if (a[r]<=b){
                b-=a[r];
                ttl++;
            }
        }
        mx=max(mx,ttl);
    }
    return mx;
}

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

ricehub.cpp:2:10: fatal error: bits\stdc++.h: No such file or directory
    2 | #include <bits\stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.