제출 #1330132

#제출 시각아이디문제언어결과실행 시간메모리
1330132alexaaa쌀 창고 (IOI11_ricehub)C++20
컴파일 에러
0 ms0 KiB
#include "ricehub.h"
using namespace std;
#include<bits/st
int besthub(int R, int L, int X[], long long B)
{
  int max_count = 0;
  for(int i = 1; i <= L; i ++){
    int count = 0;
    int total = 0;
    priority_queue<int,vector<int>,greater<int>> q;
    for(int j = 0; j < R; j++){
      q.push(abs(i-X[j]));

    }
    for(int m = 0; m < R; m++){
      total += q.top();
      q.pop();
      if(total > B){
        max_count = max(count, max_count);
        break;
      }
      count ++;


    }
  }
  return max_count;
}

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

ricehub.cpp:3:17: error: missing terminating > character
    3 | #include<bits/st
      |                 ^
ricehub.cpp:3:9: fatal error: bits/st: No such file or directory
    3 | #include<bits/st
      |         ^
compilation terminated.