QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#803667#9870. Itemsucup-team3510#Compile Error//C++20202b2024-12-07 17:58:182024-12-07 17:58:25

Judging History

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

  • [2024-12-08 20:33:10]
  • hack成功,自动添加数据
  • (/hack/1273)
  • [2024-12-07 17:58:25]
  • 评测
  • [2024-12-07 17:58:18]
  • 提交

answer

#include<iostream>
using namespace std;
int main()
{
int T,n,m,a[2];
	cin>>T;
	while(T--)
	{
		cin>>n>>m;
		for(int i=1;i<=n;i++)
		{
			cin>>a[i];
		}
		sort(a+1,a+n+1);
	}
	return 0;
}

Details

answer.code: In function ‘int main()’:
answer.code:14:17: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
   14 |                 sort(a+1,a+n+1);
      |                 ^~~~
      |                 short