plan.cpp: In function 'void fun(long long int)':
plan.cpp:28:19: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | for (i=0;i<g[x.sc].size();++i){
| ~^~~~~~~~~~~~~~~
plan.cpp:20:11: warning: unused variable 'j' [-Wunused-variable]
20 | int i,j,k;
| ^
plan.cpp:20:13: warning: unused variable 'k' [-Wunused-variable]
20 | int i,j,k;
| ^
plan.cpp: In function 'void dfs(long long int)':
plan.cpp:43:19: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for (i=0;i<v.size();++i){
| ~^~~~~~~~~
plan.cpp:49:15: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for (i=0;i<g[x].size();++i){
| ~^~~~~~~~~~~~
plan.cpp: At global scope:
plan.cpp:59:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
59 | main(){
| ^
plan.cpp: In function 'int main()':
plan.cpp:60:13: warning: unused variable 'j' [-Wunused-variable]
60 | int m,i,j;
| ^
plan.cpp:10:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | #define scan2(a,b) scanf("%lld %lld",&a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
plan.cpp:61:5: note: in expansion of macro 'scan2'
61 | scan2(n,m)
| ^~~~~
plan.cpp:11:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | #define scan3(a,b,c) scanf("%lld %lld %lld",&a,&b,&c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
plan.cpp:65:9: note: in expansion of macro 'scan3'
65 | scan3(x,y,z)
| ^~~~~
plan.cpp:9:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | #define scan1(a) scanf("%lld",&a);
| ~~~~~^~~~~~~~~~~
plan.cpp:69:5: note: in expansion of macro 'scan1'
69 | scan1(m)
| ^~~~~
plan.cpp:9:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | #define scan1(a) scanf("%lld",&a);
| ~~~~~^~~~~~~~~~~
plan.cpp:72:9: note: in expansion of macro 'scan1'
72 | scan1(x)
| ^~~~~
plan.cpp:9:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | #define scan1(a) scanf("%lld",&a);
| ~~~~~^~~~~~~~~~~
plan.cpp:75:5: note: in expansion of macro 'scan1'
75 | scan1(m)
| ^~~~~
plan.cpp:10:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | #define scan2(a,b) scanf("%lld %lld",&a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
plan.cpp:80:13: note: in expansion of macro 'scan2'
80 | scan2(x,yy)
| ^~~~~
plan.cpp:10:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | #define scan2(a,b) scanf("%lld %lld",&a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
plan.cpp:91:13: note: in expansion of macro 'scan2'
91 | scan2(x,y)
| ^~~~~