lutrija.cpp: In function 'int main()':
lutrija.cpp:59:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wformat=]
59 | printf("%d\n",ans.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<long long int>::size_type {aka long unsigned int}
| %ld
lutrija.cpp:60:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for(int i=0;i<ans.size();i++)printf("%d ",ans[i]);
| ~^~~~~~~~~~~
lutrija.cpp:60:43: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} [-Wformat=]
60 | for(int i=0;i<ans.size();i++)printf("%d ",ans[i]);
| ~^
| |
| int
| %lld
lutrija.cpp:57:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
57 | scanf("%lld %lld",&a,&b);
| ~~~~~^~~~~~~~~~~~~~~~~~~