QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#86895 | #1212. Navigation | Dr_Gilbert | Compile Error | / | / | C++20 | 682b | 2023-03-11 14:33:12 | 2023-03-11 14:33:15 |
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 14:33:15]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2023-03-11 14:33:12]
- 提交
Anna
#include <bits/stdc++.h>
#include "Annalib.h"
using namespace std;
vector<vector<int>> G;
void dfs(int x, int fa, int col){
if (fa<x) col^=1;
Flag(x,col);
for (int v:G[x]){
if (v==fa) continue;
dfs(v,x,col);
}return;
}
void Anna(int k, int n, int t, vector<int> u, vector<int> v){
G.resize(n+10);
for (int i=0;i<n-1;i++){
G[u[i]].emplace_back(v[i]);
G[v[i]].emplace_back(u[i]);
}dfs(t,0,0);return;
}
Bruno
#include <bits/stdc++.h>
#include "Brunolib.h"
using namespace std;
void Bruno(int k, int s, int f, int l, vector<int> p, vector<int> q){
for (int i=0;i<l;i++){
if ((s<p[i])^(q[i]^f)) return answer(p[i]),void();
}return answer(s),void();
}
Details
Bruno.code: In function ‘void Bruno(int, int, int, int, std::vector<int>, std::vector<int>)’: Bruno.code:6:47: error: ‘answer’ was not declared in this scope; did you mean ‘Answer’? 6 | if ((s<p[i])^(q[i]^f)) return answer(p[i]),void(); | ^~~~~~ | Answer Bruno.code:7:17: error: ‘answer’ was not declared in this scope; did you mean ‘Answer’? 7 | }return answer(s),void(); | ^~~~~~ | Answer 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]); | ~~~~~^~~~~~~~~~~~~~