//https://www.acwing.com/problem/content/14/
13. 找出数组中重复的数字
include[HTML_REMOVED]
int main()
{
int n;
int nums[n];
scanf(“%d”,&n);
for(int i=0;i<=n-1;i)
{
scanf(“%d\n”,&nums[i]);
}
for(int h=0;h<=n-1;h)
{
for(int j=0;j<=n-1;j++)
{
if(nums[h]-nums[j]==0)
{
printf(“%d”,nums[h]);
}
else
return -1;
}
}
return 0;
}