C++为什么不能通过编译?
查看原帖
C++为什么不能通过编译?
655579
Peizekai楼主2022/4/8 19:03
#include<iostream>
using namespace std;
int a[40],f[10];
int mian(){
	int n;
	cin>>n;
	for(int i=0;i<7;i++){
		int t;
		cin>>t;
		a[t]=1;
	}
	int t=7;
	for(int i=0;i<n;i++){
		for(int j=0;j<7;j++){
			int s;
			cin>>s;
			if(a[s]==1) t--;
		}
		f[t]++;
	}
	for(int i=0;i<7;i++) cout<<f[i]<<' ';
	return 0;
}
2022/4/8 19:03
加载中...