Submission #1231566

#TimeUsernameProblemLanguageResultExecution timeMemory
1231566tamzid나일강 (IOI24_nile)C++20
Compilation error
0 ms0 KiB
#include "nile.h" #include <bit/stdc++.h> using namespace std; using ll = long long; std::vector<long long> calculate_costs(std::vector<int> W, std::vector<int> A, std::vector<int> B, std::vector<int> E) { int n = (int)W.size(); int Q = (int)E.size(); std::vector<long long> R(Q, 0); ll s = 0; for(int i=0;i<n;++i) { s = s + (1LL * b[i]); } if(n % 2 == 0) { for(int i=0;i<Q;++i) R[i] = s; } else { ll c = 1e18; for(int i=0;i<n;++i) { c = min(c,a[i] - b[i]); } s += c; for(int i=0;i<Q;++i) R[i] = s; } return R; }

Compilation message (stderr)

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