제출 #1341155

#제출 시각아이디문제언어결과실행 시간메모리
1341155aykhnArt Exhibition (JOI18_art)C11
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>

using namespace std;

#define int long long
#define inf 0x3F3F3F3F
 
const int MXN = 4e5 + 5;

signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  array<int, 2> a[n];
  for (auto &[i, j] : a) cin >> i >> j;
  sort(a, a + n);
  int sum = 0, res = 0;
  for (auto &[x, y] : a) {
    sum = max(sum + y, x + y);
    res = max(res, sum - x);
  }
  cout << res << '\n';
}

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

art.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.