Początkujący, prosty program
#include <stdio.h>
#define MWG 60
int main(void)
{
int minuty, gg;
printf("Podaj liczbe minut: \n");
scanf("%d", &minuty);
gg=0;
while ((minuty/MWG)>0)
{
gg+=1;
minuty-=MWG;
}
printf("%d:%d\n", gg, minuty);
return 0;
}
W Visualu wywala bład:
Błąd 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. ConsoleApplication2 C:\Users\48881\source\repos\ConsoleApplication2\ConsoleApplication2\ConsoleApplication2.cpp 14
Ostrzeżenie C6031 Ignorowana wartość zwrotna: „scanf”. ConsoleApplication2 C:\Users\48881\source\repos\ConsoleApplication2\ConsoleApplication2\ConsoleApplication2.cpp 14
Prosze o pomoc ;/ Czy to błąd Visuala czy błąd kodu?