QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#236557 | #2810. Speedrun | Ahmed57# | Compile Error | / | / | C++23 | 740b | 2023-11-04 06:03:55 | 2024-05-20 18:53:09 |
Judging History
你现在查看的是测评时间为 2024-05-20 18:53:09 的历史记录
- [2024-06-05 09:14:58]
- 管理员手动重测本题所有提交记录
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2024-05-20 18:53:09]
- 管理员手动重测本题所有提交记录
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2023-11-04 06:03:55]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [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); | ~~~~~~^~~~~~~~~~~~~~~~~~~