QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#141051#6530. Programming Contestcy1999Compile Error//C++14372b2023-08-17 08:26:112023-08-17 08:26:13

Judging History

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

  • [2023-08-17 08:26:13]
  • 评测
  • [2023-08-17 08:26:11]
  • 提交

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(){
      |              ^