QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#553241#9241. SphinxJohnAlfnov#Compile Error//C++14512b2024-09-08 11:07:452024-09-08 11:07:46

Judging History

你现在查看的是最新测评结果

  • [2024-09-08 11:07:46]
  • 评测
  • [2024-09-08 11:07:45]
  • 提交

answer

#include<bits/stdc++.h>
#ifdef ONLINE_JUDGE
#include "sphinx.h"
#endif
using namespace std;
#ifndef ONLINE_JUDGE
int perform_experiment(vector<int>E){
	return 0;
}
#endif
vector<int>find_colours(int N,vector<int>X,vector<int>Y){
	vector<int>C(N),G(N);
	if(N<=50){
		for(int i=0;i<N;++i){
			for(int j=0;j<N;++j){
				for(int k=0;k<N;++k)C[k]=(k==i?-1:j);
				int a=perform_experiment(C);
				if(a==2)G[i]=j;
			}
		}
	}
	return G;
}
#ifndef ONLINE_JUDGE
int main(){
	return 0;
}
#endif

Details

implementer.cpp: In function ‘int {anonymous}::sz(const C&)’:
implementer.cpp:26:52: error: ‘size’ is not a member of ‘std’; did you mean ‘size_t’?
   26 | template<class C> int sz(const C& c) { return std::size(c); }
      |                                                    ^~~~
      |                                                    size_t