./Main.cpp: In function ‘int main()’:
./Main.cpp:4:34: 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.cpp:4:34: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
./Main.cpp:4:34: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
./Main.cpp:4:34: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 5 has type ‘long long int*’ [-Wformat=]
./Main.cpp:5:16: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%ld",&N);
^
./Main.cpp:12:20: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%ld\n",Sum);
^
./Main.cpp:4:35: warning: ignoring return value o...