medians.cpp: In instantiation of 'Fenwick_Tree<T>::Fenwick_Tree(int) [with T = int]':
medians.cpp:47:38: required from here
medians.cpp:11:9: warning: 'Fenwick_Tree<int>::n' will be initialized after [-Wreorder]
11 | int n;
| ^
medians.cpp:10:15: warning: 'std::vector<int> Fenwick_Tree<int>::bit' [-Wreorder]
10 | vector<T> bit;
| ^~~
medians.cpp:12:5: warning: when initialized here [-Wreorder]
12 | Fenwick_Tree(int _n = 0) : n(_n), bit(_n + 5){}
| ^~~~~~~~~~~~
medians.cpp: In function 'int main()':
medians.cpp:5:57: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
5 | #define file(name) if (fopen(name".inp", "r")) { freopen(name".inp", "r", stdin); freopen(name".out", "w", stdout); }
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
medians.cpp:74:5: note: in expansion of macro 'file'
74 | file("median");
| ^~~~
medians.cpp:5:90: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
5 | #define file(name) if (fopen(name".inp", "r")) { freopen(name".inp", "r", stdin); freopen(name".out", "w", stdout); }
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
medians.cpp:74:5: note: in expansion of macro 'file'
74 | file("median");
| ^~~~