0_0_22016529_17029.cpp:103:11: error: redefinition of 'const int maxn'
const int maxn = 1000 + 5;
^
0_0_22016529_17029.cpp:9:11: note: 'const int maxn' previously defined here
const int maxn = 1000 + 5;
^
0_0_22016529_17029.cpp:104:11: error: redefinition of 'const int maxs'
const int maxs = 10;
^
0_0_22016529_17029.cpp:10:11: note: 'const int maxs' previously defined here
const int maxs = 10;
^
0_0_22016529_17029.cpp:105:11: error: redefinition of 'const int mod'
const int mod = 105225319;
^
0_0_22016529_17029.cpp:11:11: note: 'const int mod' previously defined here
const int mod = 105225319;
^
0_0_22016529_17029.cpp:107:11: error: redefinition of 'int L [1005]'
int L[maxn], R[maxn];
^
0_0_22016529_17029.cpp:13:5: note: 'int L [1005]' previously declared here
int L[maxn], R[maxn];
^
0_0_22016529_17029.cpp:107:20: error: redefinition of 'int R [1005]'
int L[maxn], R[maxn];
^
0_0_22016529_17029.cpp:13:14: note: 'int R [1005]' previously declared here
int L[maxn], R[maxn];
^
0_0_22016529_17029.cpp:108:21: error: redefinition of 'int dp [1005][1024]'
int dp[maxn][1<<maxs];
^
0_0_22016529_17029.cpp:14:5: note: 'int dp [1005][1024]' previously declared here
int dp[maxn][1<<maxs];
^
0_0_22016529_17029.cpp:109:21: error: redefinition of 'std::vector<int> bad [1005]'
vector<int> bad[maxn];
^
0_0_22016529_17029.cpp:15:13: note: 'std::vector<int> bad [1005]' previously declared here
vector<int> bad[maxn];
^
0_0_22016529_17029.cpp:110:19: error: redefinition of 'int has_forward [15]'
int has_forward[15], has_back[15];
^
0_0_22016529_17029.cpp:16:5: note: 'int has_forward [15]' previously declared here
int has_forward[15], has_back[15];
^
0_0_22016529_17029.cpp:110:33: error: redefinition of 'int has_back [15]'
int has_forward[15], has_back[15];
^
0_0_22016529_17029.cpp:16:22: note: 'int has_back [15]' previously declared here
int has_forward[15], has_back[15];
^
0_0_22016529_17029.cpp:111:13: error: redefinition of 'int sta [1005]'
int sta[maxn];
^
0_0_22016529_17029.cpp:17:5: note: 'int sta [1005]' previously declared here
int sta[maxn];
^
0_0_22016529_17029.cpp: In function 'void stair()':
0_0_22016529_17029.cpp:113:6: error: redefinition of 'void stair()'
void stair() {
^
0_0_22016529_17029.cpp:19:6: note: 'void stair()' previously defined here
void stair() {
^
0_0_22016529_17029.cpp: In function 'void find_same(int)':
0_0_22016529_17029.cpp:119:6: error: redefinition of 'void find_same(int)'
void find_same(int ind) {
^
0_0_22016529_17029.cpp:25:6: note: 'void find_same(int)' previously defined here
void find_same(int ind) {
^
0_0_22016529_17029.cpp: In function 'int get_state(int, int)':
0_0_22016529_17029.cpp:130:5: error: redefinition of 'int get_state(int, int)'
int get_state(int ind, int s) {
^
0_0_22016529_17029.cpp:36:5: note: 'int get_state(int, int)' previously defined here
int get_state(int ind, int s) {
^
0_0_22016529_17029.cpp: In function 'void update(int&, int)':
0_0_22016529_17029.cpp:138:6: error: redefinition of 'void update(int&, int)'
void update(int &a, int b) {
^
0_0_22016529_17029.cpp:44:6: note: 'void update(int&, int)' previously defined here
void update(int &a, int b) {
^
0_0_22016529_17029.cpp: In function 'int main()':
0_0_22016529_17029.cpp:142:5: error: redefinition of 'int main()'
int main() {
^
0_0_22016529_17029.cpp:48:5: note: 'int main()' previously defined here
int main() {
^
|