QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#141051 | #6530. Programming Contest | cy1999 | Compile Error | / | / | C++14 | 372b | 2023-08-17 08:26:11 | 2023-08-17 08:26:13 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define int long long
int y,y2,n,s[110];
bool ok[10010];
signed main(){
int t;cin>>t;
while(t--){
cin>>y;
cin>>n;
for(int i=1;i<=n;i++) cin>>s[i];
cin>>y2;
for(int i=y;i<=y2;i++) ok[i]=0;
for(int i=1;i<=n;i++) ok[s[i]]=1;
int cnt=0;
for(int i=y;i<=y2;i++){
if(ok[i]) continue;
}
詳細信息
answer.code: In function ‘int main()’: answer.code:22:2: error: expected ‘}’ at end of input 22 | } | ^ answer.code:11:19: note: to match this ‘{’ 11 | while(t--){ | ^ answer.code:22:2: error: expected ‘}’ at end of input 22 | } | ^ answer.code:9:14: note: to match this ‘{’ 9 | signed main(){ | ^