linear_garden.cpp: In function 'int main()':
linear_garden.cpp:28:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
28 | #define FOR(i, a, b) for (int (i) = (a); i < (b); ++i)
| ^
linear_garden.cpp:80:5: note: in expansion of macro 'FOR'
80 | FOR (i, 0, 5) {
| ^~~
linear_garden.cpp:28:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
28 | #define FOR(i, a, b) for (int (i) = (a); i < (b); ++i)
| ^
linear_garden.cpp:81:9: note: in expansion of macro 'FOR'
81 | FOR (j, 0, 5) {
| ^~~
linear_garden.cpp:28:31: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
28 | #define FOR(i, a, b) for (int (i) = (a); i < (b); ++i)
| ^
linear_garden.cpp:82:13: note: in expansion of macro 'FOR'
82 | FOR (k, 0, 5) {
| ^~~
linear_garden.cpp:28:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
28 | #define FOR(i, a, b) for (int (i) = (a); i < (b); ++i)
| ^
linear_garden.cpp:95:5: note: in expansion of macro 'FOR'
95 | FOR (i, 0, s.size()) {
| ^~~
linear_garden.cpp:28:44: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | #define FOR(i, a, b) for (int (i) = (a); i < (b); ++i)
| ^
linear_garden.cpp:95:5: note: in expansion of macro 'FOR'
95 | FOR (i, 0, s.size()) {
| ^~~
linear_garden.cpp:29:32: warning: unnecessary parentheses in declaration of 'l' [-Wparentheses]
29 | #define FORd(i, a, b) for (int (i) = (a); i >= (b); --i)
| ^
linear_garden.cpp:103:5: note: in expansion of macro 'FORd'
103 | FORd (l, n, 0) {
| ^~~~
linear_garden.cpp:28:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
28 | #define FOR(i, a, b) for (int (i) = (a); i < (b); ++i)
| ^
linear_garden.cpp:104:9: note: in expansion of macro 'FOR'
104 | FOR (i, 0, 5) {
| ^~~
linear_garden.cpp:28:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
28 | #define FOR(i, a, b) for (int (i) = (a); i < (b); ++i)
| ^
linear_garden.cpp:105:13: note: in expansion of macro 'FOR'
105 | FOR (j, 0, 5) {
| ^~~
linear_garden.cpp:28:31: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
28 | #define FOR(i, a, b) for (int (i) = (a); i < (b); ++i)
| ^
linear_garden.cpp:108:17: note: in expansion of macro 'FOR'
108 | FOR (k, 0, 5) {
| ^~~
linear_garden.cpp:74:44: warning: variable 't0' set but not used [-Wunused-but-set-variable]
74 | chrono::high_resolution_clock::time_point t0 = chrono::high_resolution_clock::now();
| ^~
linear_garden.cpp:158:44: warning: variable 't1' set but not used [-Wunused-but-set-variable]
158 | chrono::high_resolution_clock::time_point t1 = chrono::high_resolution_clock::now();
| ^~
linear_garden.cpp: In function 'void setIO(std::string)':
linear_garden.cpp:43:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
43 | freopen("input.txt","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
linear_garden.cpp:44:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
44 | freopen("output.txt","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
linear_garden.cpp:47:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
47 | freopen((name+".in").c_str(),"r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linear_garden.cpp:48:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
48 | freopen((name+".out").c_str(),"w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~