Submission #1304852

#TimeUsernameProblemLanguageResultExecution timeMemory
1304852cansu_mutluPresent (RMI21_present)C++20
Compilation error
0 ms0 KiB
#include<bits/stdc++.h>
#include "speedrun.h"
using namespace std;
int n = 0,cnt = 0;
vector<int> vis;
void assignHints(int subtask, int N, int A[], int B[])
{
    n = N;
    setHintLen(n);
    for(int i=1;i<n;i++)
    {
        int u = A[i],v = B[i];
        setHint(u,v,true);
        setHint(v,u,true);
    }
    //return;
}
void dfs(int s,int anne)
{
    vis[s] = 1;
   
    for(int x=1;x<=n;x++)
    {
        if(x!=anne && vis[x]== 0 && getHint(x))
        {
            vis[x] = 1;
            goTo(x);
            dfs(x,s);
            goTo(s);
        }
    }
}
void speedrun(int subtask, int N, int start)
{
    n = N;
    vis.resize(n+1,0);
    getLength();
    dfs(start,0);
    //return;
}

Compilation message (stderr)

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