QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#66368#5015. 树hjl666Compile Error//C++14302b2022-12-08 12:01:142022-12-08 12:01:22

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 12:01:22]
  • 评测
  • [2022-12-08 12:01:14]
  • 提交

answer

#include"tree.h"
#include<bits/stdc++.h>
using namespace std;
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:11:40: error: ‘class std::vector<int>’ has no member named ‘pb’
   11 |                         vector<int>V;V.pb(j);
      |                                        ^~