Graph.cpp: In function 'void readip()':
Graph.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
Graph.cpp:149:5: note: in expansion of macro 'REP'
149 | REP(i, 1, n) {
| ^~~
Graph.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
Graph.cpp:158:5: note: in expansion of macro 'REP'
158 | REP(i, 0, 500) {
| ^~~
Graph.cpp:92:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
Graph.cpp:160:9: note: in expansion of macro 'REP'
160 | REP(j, 1, i) {
| ^~~
Graph.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
Graph.cpp:166:5: note: in expansion of macro 'REP'
166 | REP(i, 0, 500) inv[i] = pw(i, mod - 2);
| ^~~
Graph.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
Graph.cpp:168:5: note: in expansion of macro 'REP'
168 | REP(i, 1, m) {
| ^~~
Graph.cpp:92:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
Graph.cpp:171:9: note: in expansion of macro 'REP'
171 | REP(j, 1, n) {
| ^~~
Graph.cpp: In function 'void solve()':
Graph.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
Graph.cpp:178:5: note: in expansion of macro 'REP'
178 | REP(i, 0, m) dp[0][i] = 1;
| ^~~
Graph.cpp:92:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
Graph.cpp:180:5: note: in expansion of macro 'REP'
180 | REP(i, 1, n) {
| ^~~
Graph.cpp:92:28: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
92 | #define REP(i,a,b) for(int (i)=(a);(i)<=(b);++i)
| ^
Graph.cpp:181:9: note: in expansion of macro 'REP'
181 | REP(j, 1, m) {
| ^~~
Graph.cpp:93:29: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
93 | #define REPD(i,a,b) for(int (i)=(a); (i)>=(b);--i)
| ^
Graph.cpp:184:17: note: in expansion of macro 'REPD'
184 | REPD(k, i, 1) {
| ^~~~
Graph.cpp: In function 'void file()':
Graph.cpp:125:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
125 | freopen(PROB".inp","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
Graph.cpp:126:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
126 | freopen(PROB".out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~