代码在下面看下代码错误在哪儿

问题相关代码,请勿粘贴截图

#include
#include
int main()
{
int a[10] = { 0 };
int i=0, j=0;

for (i = 0; i<10; i++)
{
    scanf("%d",&a[i]);
}
for (i = 0; i<10; i++)
{
    int x = 0;
    for (j = 0; j<10; j++)
    {
        if (a[i]j])
        {
            x = a[i];
            a[i] = a[j];
            a[j] = x;
        }
    }
}
printf("\n");
for (i = 0; i<10; i++)
{
    printf("%d ", a[i]);
}
_getch();
return 0;

}

运行结果及报错内容

错误 1 error C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\backup\documents\visual studio 2013\projects\xxxxxxx\xxxxxxx\main.cpp 10 1 xxxxxxx

我想要达到的结果

从小到大输出10个数

'scanf': This function or variable may be unsafe. Consider using scanf_s instead.
这报错告诉你了,scanf 改scanf_s