dd.cpp: In function 'int main()':
dd.cpp:38:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
38 | printf("%d %d %d\n", i, m1.front().second, m2.front().second);
| ~^ ~~~~~~~~~~~~~~~~~
| | |
| int long long int
| %lld
dd.cpp:38:28: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]
38 | printf("%d %d %d\n", i, m1.front().second, m2.front().second);
| ~^ ~~~~~~~~~~~~~~~~~
| | |
| int long long int
| %lld
dd.cpp:55:20: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
55 | printf("%lld\n%d", ans+y, cnt);
| ~^ ~~~
| | |
| int long long int
| %lld
dd.cpp:56:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for(int i = 0;i < chk.size();i++){
| ~~^~~~~~~~~~~~
dd.cpp:8:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
dd.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | scanf("%d %d", &x, &y);
| ~~~~~^~~~~~~~~~~~~~~~~
dd.cpp:12:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
12 | scanf("%d %d %d", &a, &b, &c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~