답안 #871864

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
871864 2023-11-11T18:14:50 Z Mr_Ph Speedrun (RMI21_speedrun) C++14
컴파일 오류
0 ms 0 KB
#include "speedrun.h"
#include <bits/stdc++.h>
#include "grader.cpp"
using namespace std;
int lol,st;
void assignHints(int subtask, int n, int a[], int b[]) { 
    setHintLen(n);
    for(int i=0;i<n-1;i++)
    {
        setHint(a[i],b[i],1);
        setHint(b[i],a[i],1);
    }
    lol=0;
}
void dfs(int node,int parent)
{
    for(int i=1;i<=lol;i++)
    {
        if(i==parent)continue;
        if(getHint(i))
        {
            goTo(i);
            dfs(i,node);
        }
    }
    if(node!=st)
        goTo(parent);
}
void speedrun(int subtask, int n, int start) { /* your solution here */
    st=start;
    dfs(st,0);
}

Compilation message

speedrun.cpp:3:10: fatal error: grader.cpp: No such file or directory
    3 | #include "grader.cpp"
      |          ^~~~~~~~~~~~
compilation terminated.