#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
//srand(unsignde int(time(null)));写错了
srand((unsigned int)time(NULL));//NULL必须大写;
int n = 0;
int res=rand();
int j = 0;
for (j=0;j<=9;j++)
{
scanf("%d", &n);
if (n == res)
{
printf("你猜对了\n");
break;
}
else if (n < res)
{
printf("你猜小了\n");
}
else
printf("你猜大了\n");
}
return 0;
}