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",&a);
~~^ ~~
%lld
foo.c:7:11: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'long long int *' [-Wformat=]
scanf("%ld",&b);
~~^ ~~
%lld
foo.c:8:11: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'long long int *' [-Wformat=]
scanf("%ld",&c);
~~^ ~~
%lld
foo.c:9:11: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'long long int *' [-Wformat=]
scanf("%ld",&d);
~~^ ~~
%lld
foo.c:10:17: error: invalid operands to binary % (have 'double' and 'long long int')
answer=(10e9+7)%(a*d-b*c);
~~~~~~~~^~~~~~~~~~
foo.c:11:12: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
printf("%ld",answer);
~~^
%lld
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&a);
^~~~~~~~~~~~~~~
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&b);
^~~~~~~~~~~~~~~
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&c);
^~~~~~~~~~~~~~~
foo.c:9:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&d);
^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务