merchant.cpp: In function 'int main()':
merchant.cpp:32:35: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type*' {aka 'long int*'} [-Wformat=]
32 | scanf("%lld %lld", &mrkt[0], &mrkt[1]);
| ~~~^
| |
| long long int*
| %ld
merchant.cpp:32:40: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type '__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type*' {aka 'long int*'} [-Wformat=]
32 | scanf("%lld %lld", &mrkt[0], &mrkt[1]);
| ~~~^
| |
| long long int*
| %ld
merchant.cpp:51:20: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int64_t' {aka 'long int'} [-Wformat=]
51 | printf("%lld", maxProfit);
| ~~~^ ~~~~~~~~~
| | |
| | int64_t {aka long int}
| long long int
| %ld
merchant.cpp:25:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | scanf("%d %d %d", &N, &M, &K);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
merchant.cpp:32:30: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
32 | scanf("%lld %lld", &mrkt[0], &mrkt[1]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
merchant.cpp:36:35: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | int u, v, t; scanf("%d %d %d", &u, &v, &t);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~