QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#302800#7796. Axis-Aligned AreaPhantomThreshold#Compile Error//C++20265b2024-01-11 13:23:412024-01-11 13:23:42

Judging History

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

  • [2024-01-11 13:23:42]
  • 评测
  • [2024-01-11 13:23:41]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a[11];
	long long ans=0;
	for(int i=1;i<=4;i++)
		cin>>a[i];
	do
	{
		ans=max(ans,1ll*min(a[1],a[2])*min(a[3],a[4]));
	}
	while(next_permutation(a+1,a+5c));
	cout<<ans<<endl;
	return 0;
}

Details

answer.code: In function ‘int main()’:
answer.code:13:38: error: unable to find numeric literal operator ‘operator""c’
   13 |         while(next_permutation(a+1,a+5c));
      |                                      ^~
answer.code:13:38: note: use ‘-fext-numeric-literals’ to enable more built-in suffixes