QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#86863 | #1212. Navigation | fzj2007 | Compile Error | / | / | C++14 | 519b | 2023-03-11 11:22:16 | 2023-03-11 11:22:18 |
Judging History
你现在查看的是最新测评结果
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2023-03-11 11:22:18]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2023-03-11 11:22:16]
- 提交
Anna
#include<bits/stdc++.h>
#include "Annalib.h"
using namespace std;
vector<int> g[N];
inline void dfs(int x,int fa){
Flag(x,x<fa);
for(auto v:g[x]) dfs(v,x);
}
inline void Anna(int id,int n,int t,int U[],int V[]){
for(int i=0;i<n-1;i++) g[U[i]].emplace_back(V[i]),g[V[i]].emplace_back(U[i]);
dfs(t);
}
Bruno
#include<bits/stdc++.h>
#include "Brunolib.h"
using namespace std;
inline void Bruno(int id,int s,int v,int num,int P[],int Q[]){
for(int i=0;i<num;i++)
if((P[i]>s)==Q[i]) s=i;
Answer(s);
}
详细
Anna.code:4:15: error: ‘N’ was not declared in this scope 4 | vector<int> g[N]; | ^ Anna.code: In function ‘void dfs(int, int)’: Anna.code:7:20: error: ‘g’ was not declared in this scope 7 | for(auto v:g[x]) dfs(v,x); | ^ Anna.code: In function ‘void Anna(int, int, int, int*, int*)’: Anna.code:10:32: error: ‘g’ was not declared in this scope 10 | for(int i=0;i<n-1;i++) g[U[i]].emplace_back(V[i]),g[V[i]].emplace_back(U[i]); | ^ Anna.code:11:12: error: too few arguments to function ‘void dfs(int, int)’ 11 | dfs(t); | ~~~^~~ Anna.code:5:13: note: declared here 5 | inline void dfs(int x,int fa){ | ^~~ grader.cpp: In function ‘int main(int, char**)’: grader.cpp:144:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 144 | scanf("%d%d%d%d", &K, &S, &F, &L); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ grader.cpp:146:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 146 | scanf("%d", &P_[i]); | ~~~~~^~~~~~~~~~~~~~ grader.cpp:150:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 150 | scanf("%d", &Q_[i]); | ~~~~~^~~~~~~~~~~~~~