bridges.cpp: In function 'int re(int, int, int)':
bridges.cpp:22:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<we>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for(i=0; i<pa[cn].size(); i++)
| ~^~~~~~~~~~~~~~
bridges.cpp: In function 'int main()':
bridges.cpp:40:33: warning: narrowing conversion of 'pa[f].std::vector<we>::size()' from 'std::vector<we>::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing]
40 | pli[i] = {f,t,pa[f].size(),pa[t].size()};
| ~~~~~~~~~~^~
bridges.cpp:40:46: warning: narrowing conversion of 'pa[t].std::vector<we>::size()' from 'std::vector<we>::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing]
40 | pli[i] = {f,t,pa[f].size(),pa[t].size()};
| ~~~~~~~~~~^~
bridges.cpp:35:11: warning: unused variable 'j' [-Wunused-variable]
35 | int i,j,n,m,f,t,cdi,cn,fn,q,cst;
| ^
bridges.cpp:35:25: warning: unused variable 'cn' [-Wunused-variable]
35 | int i,j,n,m,f,t,cdi,cn,fn,q,cst;
| ^~
bridges.cpp:35:28: warning: unused variable 'fn' [-Wunused-variable]
35 | int i,j,n,m,f,t,cdi,cn,fn,q,cst;
| ^~
bridges.cpp:36:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | scanf("%d %d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~~
bridges.cpp:39:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | scanf("%d %d %d",&f,&t,&cdi);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
bridges.cpp:44:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
44 | scanf("%d",&q);
| ~~~~~^~~~~~~~~
bridges.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",&cst,&f,&t);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~