Submission #1013472

#TimeUsernameProblemLanguageResultExecution timeMemory
1013472vjudge1Mutating DNA (IOI21_dna)C++17
Compilation error
0 ms0 KiB
#include "dungeons.h" #include <vector> #include <bits/stdc++.h> using namespace std; int n; vector<int> s, p, w, l; void init(int N, std::vector<int> S, std::vector<int> P, std::vector<int> W, std::vector<int> L) { n = N, s = S, p = P, w = W, l = L; return; } long long simulate(int x, int z) { long long ans = z; while(x != n){ if(ans >= s[x]) { ans += s[x]; x = w[x]; } else { ans += p[x]; x = l[x]; } } return ans; }

Compilation message (stderr)

dna.cpp:1:10: fatal error: dungeons.h: No such file or directory
    1 | #include "dungeons.h"
      |          ^~~~~~~~~~~~
compilation terminated.