joiris.cpp: In function 'int main()':
joiris.cpp:55:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<std::array<int, 2> >::size_type' {aka 'long unsigned int'} [-Wformat=]
55 | printf("%d\n", res.size())
| ~^ ~~~~~~~~~~
| | |
| int std::vector<std::array<int, 2> >::size_type {aka long unsigned int}
| %ld
joiris.cpp:55:29: error: expected ';' before 'for'
55 | printf("%d\n", res.size())
| ^
| ;
56 | for (auto [t, x] : res)
| ~~~
joiris.cpp:9:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf("%d%d", &n, &k);
| ~~~~~^~~~~~~~~~~~~~~~
joiris.cpp:12:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf("%d", &a[i]);
| ~~~~~^~~~~~~~~~~~~