Submission #974768

#TimeUsernameProblemLanguageResultExecution timeMemory
974768HasanV11010238Cave (IOI13_cave)C++17
Compilation error
0 ms0 KiB
#include "cave.h" #include <bits\stdc++.h> int f(int N, int ar[], int cl[]){ int anscl[N]; for (int i = 0; i < N; i++){ anscl[i] = 1 - cl[i]; if (ar[i] == -1){ cl[i] = 1 - cl[i]; ar[i] = tryCombination(cl); cl[i] = 1 - cl[i]; } } answer(cl, ar); } void exploreCave(int N) { int ar[N], cl[N]; for (int i = 0; i < N; i++){ cl[i] = 0; ar[i] = -1; } int def = 0, bes = tryCombination(cl); printf("%d\n", bes); for (int in = 0; bes != -1; in++){ int i = in % N; if (ar[i] == -1){ cl[i] = 1 - cl[i]; int tr = tryCombination(cl); if (tr > bes || tr == -1){ ar[i] = bes; bes = tr; } else if (tr == bes){ cl[i] = 1 - cl[i]; } else{ ar[i] = tr; cl[i] = 1 - cl[i]; } } } f(N, ar, cl); }

Compilation message (stderr)

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