scanf in CLion

#include <stdio.h>

int main() {
int i;

printf("Enter an integer :");

return 0;

in this program, it's not letting me to use scanf. It says, "Clang-Tidy: 'scanf' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead"

Please sign in to leave a comment.