dishes.cpp:89:6: error: redefinition of 'void setIO(std::string)'
89 | void setIO(string s) {
| ^~~~~
dishes.cpp:11:6: note: 'void setIO(std::string)' previously defined here
11 | void setIO(string s) {
| ^~~~~
dishes.cpp:94:11: error: redefinition of 'const int mxn'
94 | const int mxn=1e6+5;
| ^~~
dishes.cpp:16:11: note: 'const int mxn' previously defined here
16 | const int mxn=1e6+5;
| ^~~
dishes.cpp:95:4: error: redefinition of 'long long int a [1000005]'
95 | ll a[mxn],S[mxn],Q[mxn];
| ^
dishes.cpp:17:4: note: 'long long int a [1000005]' previously declared here
17 | ll a[mxn],S[mxn],Q[mxn];
| ^
dishes.cpp:95:11: error: redefinition of 'long long int S [1000005]'
95 | ll a[mxn],S[mxn],Q[mxn];
| ^
dishes.cpp:17:11: note: 'long long int S [1000005]' previously declared here
17 | ll a[mxn],S[mxn],Q[mxn];
| ^
dishes.cpp:95:18: error: redefinition of 'long long int Q [1000005]'
95 | ll a[mxn],S[mxn],Q[mxn];
| ^
dishes.cpp:17:18: note: 'long long int Q [1000005]' previously declared here
17 | ll a[mxn],S[mxn],Q[mxn];
| ^
dishes.cpp:96:4: error: redefinition of 'long long int b [1000005]'
96 | ll b[mxn],T[mxn],P[mxn];
| ^
dishes.cpp:18:4: note: 'long long int b [1000005]' previously declared here
18 | ll b[mxn],T[mxn],P[mxn];
| ^
dishes.cpp:96:11: error: redefinition of 'long long int T [1000005]'
96 | ll b[mxn],T[mxn],P[mxn];
| ^
dishes.cpp:18:11: note: 'long long int T [1000005]' previously declared here
18 | ll b[mxn],T[mxn],P[mxn];
| ^
dishes.cpp:96:18: error: redefinition of 'long long int P [1000005]'
96 | ll b[mxn],T[mxn],P[mxn];
| ^
dishes.cpp:18:18: note: 'long long int P [1000005]' previously declared here
18 | ll b[mxn],T[mxn],P[mxn];
| ^
dishes.cpp:97:5: error: redefinition of 'int pa [1000005]'
97 | int pa[mxn],pb[mxn];
| ^~
dishes.cpp:19:5: note: 'int pa [1000005]' previously declared here
19 | int pa[mxn],pb[mxn];
| ^~
dishes.cpp:97:13: error: redefinition of 'int pb [1000005]'
97 | int pa[mxn],pb[mxn];
| ^~
dishes.cpp:19:13: note: 'int pb [1000005]' previously declared here
19 | int pa[mxn],pb[mxn];
| ^~
dishes.cpp:98:4: error: redefinition of 'long long int g [1000005]'
98 | ll g[mxn],V[mxn];
| ^
dishes.cpp:20:4: note: 'long long int g [1000005]' previously declared here
20 | ll g[mxn],V[mxn];
| ^
dishes.cpp:98:11: error: redefinition of 'long long int V [1000005]'
98 | ll g[mxn],V[mxn];
| ^
dishes.cpp:20:11: note: 'long long int V [1000005]' previously declared here
20 | ll g[mxn],V[mxn];
| ^
dishes.cpp:99:13: error: redefinition of 'std::vector<int> qa [1000005]'
99 | vector<int> qa[mxn],qb[mxn];
| ^~
dishes.cpp:21:13: note: 'std::vector<int> qa [1000005]' previously declared here
21 | vector<int> qa[mxn],qb[mxn];
| ^~
dishes.cpp:99:21: error: redefinition of 'std::vector<int> qb [1000005]'
99 | vector<int> qa[mxn],qb[mxn];
| ^~
dishes.cpp:21:21: note: 'std::vector<int> qb [1000005]' previously declared here
21 | vector<int> qa[mxn],qb[mxn];
| ^~
dishes.cpp:100:5: error: redefinition of 'int n'
100 | int n,m;
| ^
dishes.cpp:22:5: note: 'int n' previously declared here
22 | int n,m;
| ^
dishes.cpp:100:7: error: redefinition of 'int m'
100 | int n,m;
| ^
dishes.cpp:22:7: note: 'int m' previously declared here
22 | int n,m;
| ^
dishes.cpp:102:5: error: redefinition of 'int main()'
102 | int main() {_
| ^~~~
dishes.cpp:24:5: note: 'int main()' previously defined here
24 | int main() {_
| ^~~~
dishes.cpp: In function 'void setIO(std::string)':
dishes.cpp:12:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | freopen((s + ".in").c_str(), "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dishes.cpp:13:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | freopen((s + ".out").c_str(), "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dishes.cpp: In function 'void setIO(std::string)':
dishes.cpp:90:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
90 | freopen((s + ".in").c_str(), "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dishes.cpp:91:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
91 | freopen((s + ".out").c_str(), "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~