I made this very simple program:
   int a;
   scanf("%i", &a);
   int tab[a];
And there there is the rest of program which works fine when I compile in DevC++. But when I use this:
   int a;
   scanf_s("%i", &a);
   int tab[a];
in Visual Studio 2015 there is a error. I have no idea whats wrong with that.
 
     
    