lucky.cpp:66:11: error: redefinition of 'const int MOD'
66 | const int MOD = 1e9+7;
| ^~~
lucky.cpp:5:11: note: 'const int MOD' previously defined here
5 | const int MOD = 1e9+7;
| ^~~
lucky.cpp:67:11: error: redefinition of 'const int NMAX'
67 | const int NMAX = 1e4+2;
| ^~~~
lucky.cpp:6:11: note: 'const int NMAX' previously defined here
6 | const int NMAX = 1e4+2;
| ^~~~
lucky.cpp:68:11: error: redefinition of 'const int SIGMA'
68 | const int SIGMA = 10;
| ^~~~~
lucky.cpp:7:11: note: 'const int SIGMA' previously defined here
7 | const int SIGMA = 10;
| ^~~~~
lucky.cpp:69:5: error: redefinition of 'int n'
69 | int n,q,t,l,r,pos,val,dp[2][SIGMA][NMAX];
| ^
lucky.cpp:8:5: note: 'int n' previously declared here
8 | int n,q,t,l,r,pos,val,dp[2][SIGMA][NMAX];
| ^
lucky.cpp:69:7: error: redefinition of 'int q'
69 | int n,q,t,l,r,pos,val,dp[2][SIGMA][NMAX];
| ^
lucky.cpp:8:7: note: 'int q' previously declared here
8 | int n,q,t,l,r,pos,val,dp[2][SIGMA][NMAX];
| ^
lucky.cpp:69:9: error: redefinition of 'int t'
69 | int n,q,t,l,r,pos,val,dp[2][SIGMA][NMAX];
| ^
lucky.cpp:8:9: note: 'int t' previously declared here
8 | int n,q,t,l,r,pos,val,dp[2][SIGMA][NMAX];
| ^
lucky.cpp:69:11: error: redefinition of 'int l'
69 | int n,q,t,l,r,pos,val,dp[2][SIGMA][NMAX];
| ^
lucky.cpp:8:11: note: 'int l' previously declared here
8 | int n,q,t,l,r,pos,val,dp[2][SIGMA][NMAX];
| ^
lucky.cpp:69:13: error: redefinition of 'int r'
69 | int n,q,t,l,r,pos,val,dp[2][SIGMA][NMAX];
| ^
lucky.cpp:8:13: note: 'int r' previously declared here
8 | int n,q,t,l,r,pos,val,dp[2][SIGMA][NMAX];
| ^
lucky.cpp:69:15: error: redefinition of 'int pos'
69 | int n,q,t,l,r,pos,val,dp[2][SIGMA][NMAX];
| ^~~
lucky.cpp:8:15: note: 'int pos' previously declared here
8 | int n,q,t,l,r,pos,val,dp[2][SIGMA][NMAX];
| ^~~
lucky.cpp:69:19: error: redefinition of 'int val'
69 | int n,q,t,l,r,pos,val,dp[2][SIGMA][NMAX];
| ^~~
lucky.cpp:8:19: note: 'int val' previously declared here
8 | int n,q,t,l,r,pos,val,dp[2][SIGMA][NMAX];
| ^~~
lucky.cpp:69:23: error: redefinition of 'int dp [2][10][10002]'
69 | int n,q,t,l,r,pos,val,dp[2][SIGMA][NMAX];
| ^~
lucky.cpp:8:23: note: 'int dp [2][10][10002]' previously declared here
8 | int n,q,t,l,r,pos,val,dp[2][SIGMA][NMAX];
| ^~
lucky.cpp:70:8: error: redefinition of 'std::string str'
70 | string str;
| ^~~
lucky.cpp:9:8: note: 'std::string str' previously declared here
9 | string str;
| ^~~
lucky.cpp:72:5: error: redefinition of 'int countWays(int, int)'
72 | int countWays(int st, int dr){
| ^~~~~~~~~
lucky.cpp:11:5: note: 'int countWays(int, int)' previously defined here
11 | int countWays(int st, int dr){
| ^~~~~~~~~
lucky.cpp:103:5: error: redefinition of 'int main()'
103 | int main()
| ^~~~
lucky.cpp:42:5: note: 'int main()' previously defined here
42 | int main()
| ^~~~