这是为什么?
查看原帖
这是为什么?
816079
zhubaot楼主2023/1/9 15:24
#include<bits/stdc++.h>
using namespace std;
long long n;
struct student{
	long long a,b,c,z1,z2;
}a[1010];
int pd(student x){
	if(x.z1>140&&x.z2>=800){
		return 1;
	}
	return 0;
}
int main(){
	cin>>n;
	for(long long i=1;i<=n;i++){
		cin>>a[i].a>>a[i].b>>a[i].c;
		a[i].z1=a[i].b+a[i].c;
		a[i].z2=a*3+b*7;
	}
	for(long long i=1;i<=n;i++){
		if(pd(a[i])==1)cout<<"Excellent";
		else cout<<"Not excellent";
	}
	return 0;
}

这为啥编译失败?

2023/1/9 15:24
加载中...