为什么是0分?
#include <bits/stdc++.h> using namespace std; int main(){ int a[10],x,n=0; for(int i=0;i<10;i++){ cin>>a[i]; cin>>x; x+=30; } for(int j=0;j<10;j++){ if(x>a[j]){ n++; } } cout<<n; return 0; }
感觉没错。