QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#573186 | #9308. World Cup | feifange | Compile Error | / | / | C++14 | 490b | 2024-09-18 17:40:25 | 2024-09-18 17:40:26 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int t;
int a[32];
int main(){
cin >> t;
for(int i = 0;i < t;i++){
int sum = 0;
for(int j = 0;j < 32;j++){
cin >> a[j];
if(j > 0){
if(a[0] > a[j])
sum++;
}
}
if(sum < 31) cout << 2 << endl;
else if(sum < 27) cout << 4 << endl;
else if(sum < 13) cout << 8 << endl;
else if(sum < 6) cout << 16 << endl;
else if (cnt < 2) cout << 32 << endl;
else cout << 1 << endl;
}
return 0;
}
詳細信息
answer.code: In function ‘int main()’: answer.code:23:26: error: ‘cnt’ was not declared in this scope; did you mean ‘int’? 23 | else if (cnt < 2) cout << 32 << endl; | ^~~ | int