subsequence.cpp: In function 'void solve()':
subsequence.cpp:50:43: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int (*)[200007]' [-Wformat=]
50 | for (int i = 1; i <= n; i ++) scanf("%d", &a + i);
| ~^ ~~~~~~
| | |
| int* int (*)[200007]
subsequence.cpp:51:43: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int (*)[200007]' [-Wformat=]
51 | for (int i = 1; i <= n; i ++) scanf("%d", &k + i);
| ~^ ~~~~~~
| | |
| int* int (*)[200007]
subsequence.cpp:79:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
79 | printf("%d\n", idx.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<int>::size_type {aka long unsigned int}
| %ld
subsequence.cpp:49:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
49 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
subsequence.cpp:50:40: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
50 | for (int i = 1; i <= n; i ++) scanf("%d", &a + i);
| ~~~~~^~~~~~~~~~~~~~
subsequence.cpp:51:40: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
51 | for (int i = 1; i <= n; i ++) scanf("%d", &k + i);
| ~~~~~^~~~~~~~~~~~~~