int main()
{
int score=0;
for(int i=0;i<10;i++)
{
int sum;
srand((unsigned int)time(NULL));
int a=rand()%10+1;
int b=rand()%(9-a)+1;
cout< cin>>sum;
if(sum==(a+b))
{
score++;
cout<<"正确,当前得分:"<}
else
{
cout<<"错误,正确答案为"< cout<<"当前得分:"<}
}
cout<<"总得分为:"<
return 0;
}