foo.cc: In function ‘void init()’:
foo.cc:5:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
5 | #define for1(a, n) for (int (a) = 1; (a) <= (n); (a)++)
| ^~~
foo.cc:29:1: note: in expansion of macro ‘for1’
29 | for1(i,n)
| ^~~~
foo.cc:5:29: note: remove parentheses
5 | #define for1(a, n) for (int (a) = 1; (a) <= (n); (a)++)
| ^~~
foo.cc:29:1: note: in expansion of macro ‘for1’
29 | for1(i,n)
| ^~~~
foo.cc: In function ‘void input()’:
foo.cc:5:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
5 | #define for1(a, n) for (int (a) = 1; (a) <= (n); (a)++)
| ^~~
foo.cc:38:1: note: in expansion of macro ‘for1’
38 | for1(i,m)
| ^~~~
foo.cc:5:29: note: remove parentheses
5 | #define for1(a, n) for (int (a) = 1; (a) <= (n); (a)++)
| ^~~
foo.cc:38:1: note: in expansion of macro ‘for1’
38 | for1(i,m)
| ^~~~
foo.cc:5:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
5 | #define for1(a, n) for (int (a) = 1; (a) <= (n); (a)++)
| ^~~
foo.cc:49:1: note: in expansion of macro ‘for1’
49 | for1(i,n)
| ^~~~
foo.cc:5:29: note: remove parentheses
5 | #define for1(a, n) for (int (a) = 1; (a) <= (n); (a)++)
| ^~~
foo.cc:49:1: note: in expansion of macro ‘for1’
49 | for1(i,n)
| ^~~~
foo.cc: In function ‘int cal(int, int, int)’:
foo.cc:60:14: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Node>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
60 | for(int i=p;i<G[x].size();i++)//G[x][i].st>=st
| ~^~~~~~~~~~~~
foo.cc:62:22: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
62 | if(G[x][i].st==st&&G[x][i].et==et||G[x][i].st!=st&&G[x][i].et<=et)
foo.cc: In function ‘void work()’:
foo.cc:5:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
5 | #define for1(a, n) for (int (a) = 1; (a) <= (n); (a)++)
| ^~~
foo.cc:83:1: note: in expansion of macro ‘for1’
83 | for1(i,n-1)
| ^~~~
foo.cc:5:29: note: remove parentheses
5 | #define for1(a, n) for (int (a) = 1; (a) <= (n); (a)++)
| ^~~
foo.cc:83:1: note: in expansion of macro ‘for1’
83 | for1(i,n-1)
| ^~~~