simurgh.cpp: In function 'void solve()':
simurgh.cpp:30:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(leaves.size()==vertex-1){
~~~~~~~~~~~~~^~~~~~~~~~
simurgh.cpp:44:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<leaves.size()-1;i++)L.push_back(road[leaves[i]][leaves[i+1]]);
~^~~~~~~~~~~~~~~~
simurgh.cpp:45:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<leaves.size()-1;i++){
~^~~~~~~~~~~~~~~~
simurgh.cpp:51:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(attempt<20 && got==answer.size()+1){
~~~^~~~~~~~~~~~~~~~~
simurgh.cpp:8:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,a,b) for(int i=a;i<b;i++)
simurgh.cpp:58:11:
rep(j,0,others.size()){
~~~~~~~~~~~~~~~~~
simurgh.cpp:58:7: note: in expansion of macro 'rep'
rep(j,0,others.size()){
^~~
simurgh.cpp:69:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(got==answer.size()+1){
~~~^~~~~~~~~~~~~~~~~
simurgh.cpp:8:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,a,b) for(int i=a;i<b;i++)
simurgh.cpp:83:6:
rep(j,0,others.size()){
~~~~~~~~~~~~~~~~~
simurgh.cpp:83:2: note: in expansion of macro 'rep'
rep(j,0,others.size()){
^~~
simurgh.cpp:88:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(A==answer.size()+1){
~^~~~~~~~~~~~~~~~~
simurgh.cpp:94:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(got>answer.size()+1){
~~~^~~~~~~~~~~~~~~~
simurgh.cpp:103:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(got<answer.size()+1){
~~~^~~~~~~~~~~~~~~~
simurgh.cpp:8:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,a,b) for(int i=a;i<b;i++)
simurgh.cpp:115:6:
rep(j,0,others.size()){
~~~~~~~~~~~~~~~~~
simurgh.cpp:115:2: note: in expansion of macro 'rep'
rep(j,0,others.size()){
^~~
simurgh.cpp:121:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(A==answer.size()+1){
~^~~~~~~~~~~~~~~~~
simurgh.cpp:127:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(got<answer.size()+1){
~~~^~~~~~~~~~~~~~~~
simurgh.cpp:136:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(got>answer.size()+1){
~~~^~~~~~~~~~~~~~~~
simurgh.cpp: In function 'std::vector<int> find_roads(int, std::vector<int>, std::vector<int>)':
simurgh.cpp:8:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,a,b) for(int i=a;i<b;i++)
simurgh.cpp:153:7:
rep(i,0,u.size()){
~~~~~~~~~~~~
simurgh.cpp:153:3: note: in expansion of macro 'rep'
rep(i,0,u.size()){
^~~