xorsum.cpp: In function 'void solve()':
xorsum.cpp:55:29: error: expected ')' before ';' token
55 | res ^= ((v[i] % 2) * i;)
| ~ ^
| )
xorsum.cpp:54:6: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
54 | for (int i = 1; i <= mx + mx; i++)
| ^~~
xorsum.cpp:55:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
55 | res ^= ((v[i] % 2) * i;)
| ^
xorsum.cpp:55:30: error: expected primary-expression before ')' token
xorsum.cpp: In function 'void setIO(const string&)':
xorsum.cpp:79:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
79 | freopen((f + ".in").c_str(), "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xorsum.cpp:80:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
80 | freopen((f + ".out").c_str(), "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~