제출 #1322543

#제출 시각아이디문제언어결과실행 시간메모리
1322543jahinahnaf축제 (IOI25_festival)C++20
컴파일 에러
0 ms0 KiB
#include "festival.h"
#include <bits\stdc++.h>
#define all(x) (x).begin(), (x).end()

using namespace std;

std::vector<int> max_coupons(int A, std::vector<int> P, std::vector<int> T)
{
  vector<int> Z;
  vector<pair<int, int>> C;
  for (int i = 0; i < P.size(); i++)
  {
    C.push_back({i, P[i]});
  }
  sort(all(C), [](const auto &a, const auto &b)
       { return a.second > b.second; });
       int i = 0;
  while (A > 0){
    if (A - C[i].second >= 0){
      A -= C[i].second;
      Z.push_back(C[i].first);
    }
    i++;
  }
  return Z;
}

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

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