divide.cpp: In function 'int main()':
divide.cpp:10:19: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'std::array<long int, 3>::value_type*' {aka 'long int*'} [-Wformat=]
10 | scanf("%lld%lld%lld",&x[0],&x[1],&x[2]);
| ~~~^
| |
| long long int*
| %ld
divide.cpp:10:23: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'std::array<long int, 3>::value_type*' {aka 'long int*'} [-Wformat=]
10 | scanf("%lld%lld%lld",&x[0],&x[1],&x[2]);
| ~~~^
| |
| long long int*
| %ld
divide.cpp:10:27: warning: format '%lld' expects argument of type 'long long int*', but argument 4 has type 'std::array<long int, 3>::value_type*' {aka 'long int*'} [-Wformat=]
10 | scanf("%lld%lld%lld",&x[0],&x[1],&x[2]);
| ~~~^
| |
| long long int*
| %ld
divide.cpp:33:16: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int64_t' {aka 'long int'} [-Wformat=]
33 | printf("%lld\n",ans);
| ~~~^ ~~~
| | |
| | int64_t {aka long int}
| long long int
| %ld
divide.cpp:7:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
7 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
divide.cpp:10:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%lld%lld%lld",&x[0],&x[1],&x[2]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~