foo.c: In function 'main':
foo.c:6:11: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'long long int *' [-Wformat=]
scanf("%ld %ld %ld %ld",&a,&b,&c,&d);
~~^ ~~
%lld
foo.c:6:15: warning: format '%ld' expects argument of type 'long int *', but argument 3 has type 'long long int *' [-Wformat=]
scanf("%ld %ld %ld %ld",&a,&b,&c,&d);
~~^ ~~
%lld
foo.c:6:19: warning: format '%ld' expects argument of type 'long int *', but argument 4 has type 'long long int *' [-Wformat=]
scanf("%ld %ld %ld %ld",&a,&b,&c,&d);
~~^ ~~
%lld
foo.c:6:23: warning: format '%ld' expects argument of type 'long int *', but argument 5 has type 'long long int *' [-Wformat=]
scanf("%ld %ld %ld %ld",&a,&b,&c,&d);
~~^ ~~
%lld
foo.c:11:12: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
printf("%ld\n", ans);
~~^
%lld
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld %ld %ld",&a,&b,&c,&d);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务