제출 #1013472

#제출 시각아이디문제언어결과실행 시간메모리
1013472vjudge1DNA 돌연변이 (IOI21_dna)C++17
컴파일 에러
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;
}

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

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