meetings.cpp: In function 'void findpath(std::vector<int>)':
meetings.cpp:8:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define f(i,a,b) for(int i=a;i<b;i++)
......
42 | f(i,2,p.size()){
| ~~~~~~~~~~~~
meetings.cpp:42:2: note: in expansion of macro 'f'
42 | f(i,2,p.size()){
| ^
meetings.cpp:8:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define f(i,a,b) for(int i=a;i<b;i++)
......
57 | f(i,0,res.size()){
| ~~~~~~~~~~~~~~
meetings.cpp:57:3: note: in expansion of macro 'f'
57 | f(i,0,res.size()){
| ^
meetings.cpp:61:7: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
61 | if(r==res.size()) pes.pb(u);
| ~^~~~~~~~~~~~
meetings.cpp:44:7: warning: variable 'l' set but not used [-Wunused-but-set-variable]
44 | int l,r;
| ^
meetings.cpp:8:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define f(i,a,b) for(int i=a;i<b;i++)
......
64 | f(i,1,res.size()){
| ~~~~~~~~~~~~~~
meetings.cpp:64:2: note: in expansion of macro 'f'
64 | f(i,1,res.size()){
| ^
meetings.cpp: In function 'void solve(std::vector<int>)':
meetings.cpp:8:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define f(i,a,b) for(int i=a;i<b;i++)
......
83 | f(i,0,e.size()){
| ~~~~~~~~~~~~
meetings.cpp:83:2: note: in expansion of macro 'f'
83 | f(i,0,e.size()){
| ^
meetings.cpp:85:7: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
85 | if(i==e.size()-1 || e[i].F!=e[i+1].F){
| ~^~~~~~~~~~~~