power.cpp: In function 'int solve(int, int, int)':
power.cpp:14:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
14 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
power.cpp:34:13: note: in expansion of macro 'rep'
34 | rep(i, E[n].size()){
| ^~~
power.cpp:14:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ~~~^~~~
power.cpp:34:13: note: in expansion of macro 'rep'
34 | rep(i, E[n].size()){
| ^~~
power.cpp:14:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
14 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
power.cpp:46:13: note: in expansion of macro 'rep'
46 | rep(i, E[n].size()){
| ^~~
power.cpp:14:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ~~~^~~~
power.cpp:46:13: note: in expansion of macro 'rep'
46 | rep(i, E[n].size()){
| ^~~
power.cpp: In function 'void dfs(int, int)':
power.cpp:14:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
14 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
power.cpp:58:5: note: in expansion of macro 'rep'
58 | rep(i, E[n].size()){
| ^~~
power.cpp:14:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ~~~^~~~
power.cpp:58:5: note: in expansion of macro 'rep'
58 | rep(i, E[n].size()){
| ^~~
power.cpp:14:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
14 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
power.cpp:62:5: note: in expansion of macro 'rep'
62 | rep(i, E[n].size()){
| ^~~
power.cpp:14:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ~~~^~~~
power.cpp:62:5: note: in expansion of macro 'rep'
62 | rep(i, E[n].size()){
| ^~~
power.cpp: In function 'int main()':
power.cpp:14:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
14 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
power.cpp:70:5: note: in expansion of macro 'rep'
70 | rep(i, N-1){
| ^~~
power.cpp:14:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
14 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
power.cpp:76:5: note: in expansion of macro 'rep'
76 | rep(i, N){
| ^~~
power.cpp:14:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
14 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
power.cpp:83:5: note: in expansion of macro 'rep'
83 | rep(i, E[0].size()) solve(E[0][i].first, 0, E[0][i].second);
| ^~~
power.cpp:14:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ~~~^~~~
power.cpp:83:5: note: in expansion of macro 'rep'
83 | rep(i, E[0].size()) solve(E[0][i].first, 0, E[0][i].second);
| ^~~
power.cpp:14:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
14 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
power.cpp:87:5: note: in expansion of macro 'rep'
87 | rep(i, N){
| ^~~
power.cpp:14:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
14 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
power.cpp:90:9: note: in expansion of macro 'rep'
90 | rep(j, E[i].size()){
| ^~~
power.cpp:14:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ~~~^~~~
power.cpp:90:9: note: in expansion of macro 'rep'
90 | rep(j, E[i].size()){
| ^~~
power.cpp:69:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
69 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
power.cpp:71:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
71 | scanf("%d%d", &A[i], &B[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
power.cpp:78:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
78 | scanf(" %c", &C);
| ~~~~~^~~~~~~~~~~