glo.cpp: In function 'int main()':
glo.cpp:31:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
31 | printf("%d\n", wo.size());
| ~^ ~~~~~~~~~
| | |
| int std::vector<int>::size_type {aka long unsigned int}
| %ld
glo.cpp:6:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
6 | scanf("%d %d", &N, &d);
| ~~~~~^~~~~~~~~~~~~~~~~
glo.cpp:8:28: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | for(int i=0;i<N;i++) scanf("%d", &arr[i]);
| ~~~~~^~~~~~~~~~~~~~~