'Visual studio error: implicit declaration of function

why is this error coming implicit declaration of function 'scanf_s'. scanf is not working in visual studio even after writing scanf_s instead of scanf?.

#include<stdio.h>
int main()
{
    printf("hello\n");
    int a;
    scanf_s("%d", &a);
    printf("\n%d",a);
    return 0;
}

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source