archery.cpp:94:5: error: redefinition of 'int n'
94 | int n, r, s[N_], ans = 1e9, q[N_], opt;
| ^
archery.cpp:12:5: note: 'int n' previously declared here
12 | int n, r, s[N_], ans = 1e9, q[N_], opt;
| ^
archery.cpp:94:8: error: redefinition of 'int r'
94 | int n, r, s[N_], ans = 1e9, q[N_], opt;
| ^
archery.cpp:12:8: note: 'int r' previously declared here
12 | int n, r, s[N_], ans = 1e9, q[N_], opt;
| ^
archery.cpp:94:11: error: redefinition of 'int s [800]'
94 | int n, r, s[N_], ans = 1e9, q[N_], opt;
| ^
archery.cpp:12:11: note: 'int s [800]' previously declared here
12 | int n, r, s[N_], ans = 1e9, q[N_], opt;
| ^
archery.cpp:94:18: error: redefinition of 'int ans'
94 | int n, r, s[N_], ans = 1e9, q[N_], opt;
| ^~~
archery.cpp:12:18: note: 'int ans' previously defined here
12 | int n, r, s[N_], ans = 1e9, q[N_], opt;
| ^~~
archery.cpp:94:29: error: redefinition of 'int q [800]'
94 | int n, r, s[N_], ans = 1e9, q[N_], opt;
| ^
archery.cpp:12:29: note: 'int q [800]' previously declared here
12 | int n, r, s[N_], ans = 1e9, q[N_], opt;
| ^
archery.cpp:94:36: error: redefinition of 'int opt'
94 | int n, r, s[N_], ans = 1e9, q[N_], opt;
| ^~~
archery.cpp:12:36: note: 'int opt' previously declared here
12 | int n, r, s[N_], ans = 1e9, q[N_], opt;
| ^~~
archery.cpp:96:4: error: redefinition of 'll hsh(std::array<int, 800>&, int)'
96 | ll hsh(array<int, N_> &a, int n) {
| ^~~
archery.cpp:14:4: note: 'll hsh(std::array<int, 800>&, int)' previously defined here
14 | ll hsh(array<int, N_> &a, int n) {
| ^~~
archery.cpp:106:16: error: redefinition of 'std::array<int, 800> p'
106 | array<int, N_> p, e;
| ^
archery.cpp:24:16: note: 'std::array<int, 800> p' previously declared here
24 | array<int, N_> p, e;
| ^
archery.cpp:106:19: error: redefinition of 'std::array<int, 800> e'
106 | array<int, N_> p, e;
| ^
archery.cpp:24:19: note: 'std::array<int, 800> e' previously declared here
24 | array<int, N_> p, e;
| ^
archery.cpp:107:5: error: redefinition of 'int check()'
107 | int check() {
| ^~~~~
archery.cpp:25:5: note: 'int check()' previously defined here
25 | int check() {
| ^~~~~
archery.cpp:145:5: error: redefinition of 'int main()'
145 | int main() {
| ^~~~
archery.cpp:63:5: note: 'int main()' previously defined here
63 | int main() {
| ^~~~
archery.cpp: In function 'int main()':
archery.cpp:64:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
64 | scanf("%d%d", &n, &r);
| ~~~~~^~~~~~~~~~~~~~~~
archery.cpp:67:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
67 | scanf("%d", s + i), q[i] = i;
| ~~~~~^~~~~~~~~~~~~
archery.cpp: In function 'int main()':
archery.cpp:146:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
146 | scanf("%d%d", &n, &r);
| ~~~~~^~~~~~~~~~~~~~~~
archery.cpp:149:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
149 | scanf("%d", s + i), q[i] = i;
| ~~~~~^~~~~~~~~~~~~