c - :( rejects "" minutes timed out while waiting for input to be rejected" shows when checking my proggram -


the program shows correct infor when compile or run it. problem when check program. shows ":( rejects "" minutes timed out while waiting input rejected" when checking proggram. tried using getint , get_intas well. can me, please?

int main(void) {     int minutes,bottles;      printf("minutes: ");     scanf("%d", &minutes);     bottles = minutes * 12;     printf("bottles: %d\n", bottles);  } 

assuming trying complete cs50 problem set named water, need include header file cs50.h , use getint() function in order pass checks. if see lectures(again), instructor mentions function written in such way accepts integer values.

the mistake make not accounting input other integer. use function like

minutes = getint(); 

instead of

scanf("%d", &minutes); 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -