triangle.cpp: In function 'void solve()':
triangle.cpp:21:12: warning: unused variable 'mx' [-Wunused-variable]
21 | ll n,i,mx=-1,mn=inf,x,y;
| ^~
triangle.cpp:21:18: warning: unused variable 'mn' [-Wunused-variable]
21 | ll n,i,mx=-1,mn=inf,x,y;
| ^~
triangle.cpp: In function 'void fre(std::string)':
triangle.cpp:11:27: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | void fre(string s){freopen((s+".in").c_str(),"r",stdin);freopen((s+".out").c_str(),"w",stdout);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
triangle.cpp:11:64: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | void fre(string s){freopen((s+".in").c_str(),"r",stdin);freopen((s+".out").c_str(),"w",stdout);}
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~