QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#86865#1212. Navigationfzj2007Compile Error//C++14526b2023-03-11 11:22:532023-03-11 11:22:56

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:56]
  • 评测
  • [2023-03-11 11:22:53]
  • 提交

Anna

#include<bits/stdc++.h>
#include "Annalib.h"
using namespace std;
vector<int> g[100005];
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,0);
}

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);	
}

詳細信息

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]);
      |                 ~~~~~^~~~~~~~~~~~~~
/usr/bin/ld: /tmp/cchYQf6I.o: in function `main':
grader.cpp:(.text.startup+0x250): undefined reference to `Anna(int, int, int, int*, int*)'
/usr/bin/ld: grader.cpp:(.text.startup+0x4df): undefined reference to `Bruno(int, int, int, int, int*, int*)'
collect2: error: ld returned 1 exit status