QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#567506 | #9308. World Cup | Leon# | Compile Error | / | / | C++14 | 414b | 2024-09-16 12:22:27 | 2024-09-16 12:22:28 |
Judging History
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 | } | ~