Main.cpp:25:20: error: 'long long int select' redeclared as different kind of entity
25 | int n,k,g,up[maxn],select;
| ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /usr/include/stdlib.h:394,
from /usr/include/c++/10/bits/std_abs.h:38,
from /usr/include/c++/10/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from Main.cpp:2:
/usr/include/x86_64-linux-gnu/sys/select.h:101:12: note: previous declaration 'int select(int, fd_set*, fd_set*, fd_set*, timeval*)'
101 | extern int select (int __nfds, fd_set *__restrict __readfds,
| ^~~~~~
Main.cpp: In function 'void cc(long long int, long long int)':
Main.cpp:35:5: warning: ISO C++ forbids incrementing a pointer of type 'int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)' [-Wpointer-arith]
35 | select++;
| ^~~~~~
Main.cpp:35:5: error: lvalue required as increment operand
Main.cpp: In function 'void dfs(long long int, long long int, long long int)':
Main.cpp:54:20: warning: unused variable 'w' [-Wunused-variable]
54 | int v=x.fi,w=x.se;
| ^
Main.cpp: In function 'bool check(long long int)':
Main.cpp:90:11: error: assignment of function 'int select(int, fd_set*, fd_set*, fd_set*, timeval*)'
90 | select=0;
| ~~~~~~^~
Main.cpp:98:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
98 | return (select<=k);
| ~~~~~~^~~
Main.cpp: In function 'void sol()':
Main.cpp:114:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
114 | mid=l+r>>1;
| ~^~
Main.cpp:121:19: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
121 | if (res.size()<k)
| ~~~~~~~~~~^~
Main.cpp:126:27: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
126 | if (res.size()==k) break;
| ~~~~~~~~~~^~~