QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#236557#2810. SpeedrunAhmed57#Compile Error//C++23740b2023-11-04 06:03:552024-05-20 18:53:09

Judging History

你现在查看的是测评时间为 2024-05-20 18:53:09 的历史记录

  • [2024-06-05 09:14:58]
  • 管理员手动重测本题所有提交记录
  • [2024-05-20 18:53:09]
  • 管理员手动重测本题所有提交记录
  • [2023-11-04 06:03:55]
  • 评测
  • [2023-11-04 06:03:55]
  • 提交

speedrun

#include <bits/stdc++.h>
#include "speedrun.h"
#include "grader.cpp"
using namespace std;


void assignHints(int subtask,int N,int A[],int B[]){
    vector<int> adj[N+1];
    setHintLen(N);
    for(int i = 1;i<N;i++){
        adj[A[i]].push_back(B[i]);
        adj[B[i]].push_back(A[i]);
    }
    for(int i = 1;i<=N;i++){
        for(int j = 0;j<adj[i].size();j++){
            setHint(i,adj[i][j],1);
        }
    }
}
void dfs(int i,int pr,int n){
    for(int j = 1;j<=n;j++){
        if(j==pr)continue;
        if(getHint(j)){
            goTo(j);
            dfs(j,i,n);
            goTo(i);
        }
    }
}
void speedrun(int subtask, int N, int start){
    int n =getLength();
    dfs(start,0,n);
}

Details

speedrun.code:3:10: fatal error: grader.cpp: No such file or directory
    3 | #include "grader.cpp"
      |          ^~~~~~~~~~~~
compilation terminated.
grader_speedrun.cpp: In function ‘int readvalue()’:
grader_speedrun.cpp:9:9: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |   fscanf(input, "%d", &val);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~