constellation3.cpp: In function 'long long int ans(int, int)':
constellation3.cpp:11:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<std::pair<int, int>, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | if (ind==v.size()) {
| ~~~^~~~~~~~~~
constellation3.cpp: In function 'int main()':
constellation3.cpp:37:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
constellation3.cpp:39:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | scanf("%d",&arr[i]);
| ~~~~~^~~~~~~~~~~~~~
constellation3.cpp:42:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
42 | scanf("%d",&m);
| ~~~~~^~~~~~~~~
constellation3.cpp:47:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
47 | scanf("%d %d %d",&x,&y,&c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~