plan.cpp: In function 'void S()':
plan.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ^
plan.cpp:21:2: note: in expansion of macro 'fp'
21 | fp(i,0,n)
| ^~
plan.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ^
plan.cpp:23:2: note: in expansion of macro 'fp'
23 | fp(i,0,m){
| ^~
plan.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ^
plan.cpp:33:2: note: in expansion of macro 'fp'
33 | fp(i,0,k){
| ^~
plan.cpp:41:7: warning: unused variable 'c' [-Wunused-variable]
41 | int c = q.top().first, v = q.top().second;
| ^
plan.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ^
plan.cpp:53:2: note: in expansion of macro 'fp'
53 | fp(i,0,t){
| ^~
plan.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ^
plan.cpp:61:2: note: in expansion of macro 'fp'
61 | fp(i,0,n){
| ^~
plan.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ^
plan.cpp:69:2: note: in expansion of macro 'fp'
69 | fp(i,0,em.size()){
| ^~
plan.cpp:6:42: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, std::pair<int, int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
6 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ~~~~^~~~~
plan.cpp:69:2: note: in expansion of macro 'fp'
69 | fp(i,0,em.size()){
| ^~