QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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;
}
Details
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(){ | ^