QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#66353 | #5015. 树 | hjl666 | Compile Error | / | / | C++14 | 257b | 2022-12-08 11:54:44 | 2022-12-08 11:54:46 |
Judging History
你现在查看的是最新测评结果
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2022-12-08 11:54:46]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2022-12-08 11:54:44]
- 提交
answer
#include"tree.h"
int ask(int u,std::vector<int>v);
void answer(int u,int v);
void solver(int n,int A,int B){
for(int i=1;i<=n;i++){
for(int j=i+1;j<=n;j++){
vector<int>V;V.pb(j);
int res=ask(i,V);
if(res==1)answer(i,j);
}
}
}
详细
implementer.cpp: In function ‘void regduj260135279::init()’: implementer.cpp:32:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 32 | scanf("%d",&n); | ~~~~~^~~~~~~~~ implementer.cpp:45:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 45 | scanf("%d%d",&u,&v); | ~~~~~^~~~~~~~~~~~~~ answer.code: In function ‘void solver(int, int, int)’: answer.code:10:25: error: ‘vector’ was not declared in this scope; did you mean ‘std::vector’? 10 | vector<int>V;V.pb(j); | ^~~~~~ | std::vector In file included from /usr/include/c++/11/vector:67, from /usr/include/c++/11/queue:61, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:86, from tree.h:1, from answer.code:1: /usr/include/c++/11/bits/stl_vector.h:389:11: note: ‘std::vector’ declared here 389 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ answer.code:10:32: error: expected primary-expression before ‘int’ 10 | vector<int>V;V.pb(j); | ^~~ answer.code:10:38: error: ‘V’ was not declared in this scope 10 | vector<int>V;V.pb(j); | ^