./Main.c: In function ‘main’:
./Main.c:4:8: warning: format ‘%ld’ expects argument of type ‘long int *’, but argument 2 has type ‘long long int *’ [-Wformat=]
scanf("%ld%ld%ld%ld",&Q,&H,&S,&D);
^
./Main.c:4:8: warning: format ‘%ld’ expects argument of type ‘long int *’, but argument 3 has type ‘long long int *’ [-Wformat=]
./Main.c:4:8: warning: format ‘%ld’ expects argument of type ‘long int *’, but argument 4 has type ‘long long int *’ [-Wformat=]
./Main.c:4:8: warning: format ‘%ld’ expects argument of type ‘long int *’, but argument 5 has type ‘long long int *’ [-Wformat=]
./Main.c:5:8: warning: format ‘%ld’ expects argument of type ‘long int *’, but argument 2 has type ‘long long int *’ [-Wformat=]
scanf("%ld",&N);
^
./Main.c:12:9: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%ld\n",Sum);
^
./Main.c:4:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-...