road_construction.cpp: In function 'bool chmin(_T&, const _T&)':
road_construction.cpp:28:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
28 | if(x>y) x=y;flag|=true;
| ^~
road_construction.cpp:28:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
28 | if(x>y) x=y;flag|=true;
| ^~~~
road_construction.cpp: In function 'bool chmax(_T&, const _T&)':
road_construction.cpp:34:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
34 | if (x<y) x=y;flag|=true;
| ^~
road_construction.cpp:34:18: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
34 | if (x<y) x=y;flag|=true;
| ^~~~
road_construction.cpp: In function 'void solve()':
road_construction.cpp:58:10: warning: variable 'flag' set but not used [-Wunused-but-set-variable]
58 | bool flag=true;
| ^~~~
road_construction.cpp: In function 'void fre(std::string)':
road_construction.cpp:38:27: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | void fre(string s){freopen((s+".in").c_str(),"r",stdin);freopen((s+".out").c_str(),"w",stdout);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
road_construction.cpp:38:64: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | void fre(string s){freopen((s+".in").c_str(),"r",stdin);freopen((s+".out").c_str(),"w",stdout);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~