Submission #768158

#TimeUsernameProblemLanguageResultExecution timeMemory
768158caganyanmazBoxes with souvenirs (IOI15_boxes)C++17
Compilation error
0 ms0 KiB
#include <bit/stdc++.h> #define int int64_t using namespace std; map<int, int> left, right; int mid; void safe_insert(map<int, int>& m, int val) { if (m.find(val) == m.end()) m[val] = 0; m[val]++; } int delivery(int32_t N, int32_t K, int32_t L, int32_t p[]) { for (int i = 0; i < N; i++) if (p[i] > L / 2) safe_insert(right, p[i]); if (p[i] < L / 2) safe_insert(left, p[i]); else mid++; return 0; }

Compilation message (stderr)

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