QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#567506#9308. World CupLeon#Compile Error//C++14414b2024-09-16 12:22:272024-09-16 12:22:28

Judging History

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

  • [2024-09-16 12:22:28]
  • 评测
  • [2024-09-16 12:22:27]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#define int long long 
void solve()
{
	int me;
	cin>>me;
	int re=1;
	for(int i=0;i<32;i++)
	{
		int x;
		cin>>x;
		if(me>x)re++;
	}
	if(re==1)cout<<1;
	else if(re<=5)cout<<2;
	else if(re<=19)cout<<4;
	else if(re<=26)cout<<8;
	else if(re<=30)cout<<16;
	else cout<<32l
	
}
signed main()
{
	int t;
	cin>>t;
	while(t--)
	solve();
	return 0;
 } 

Details

answer.code: In function ‘void solve()’:
answer.code:20:23: error: expected ‘;’ before ‘}’ token
   20 |         else cout<<32l
      |                       ^
      |                       ;
   21 | 
   22 | }
      | ~