0_0_14892280_15795.cpp:124:24: error: redefinition of 'template<class T> T Abs(T)'
template<typename T> T Abs(T x) { return x>0 ? x : -x ; }
^
0_0_14892280_15795.cpp:41:24: note: 'template<class T> T Abs(T)' previously declared here
template<typename T> T Abs(T x) { return x>0 ? x : -x ; }
^
0_0_14892280_15795.cpp:125:31: error: redefinition of 'template<class T> const T& Max(const T&, const T&)'
template<typename T> T const& Max(T const& a, T const& b) { return a>b ? a : b ; }
^
0_0_14892280_15795.cpp:42:31: note: 'template<class T> const T& Max(const T&, const T&)' previously declared here
template<typename T> T const& Max(T const& a, T const& b) { return a>b ? a : b ; }
^
0_0_14892280_15795.cpp:126:31: error: redefinition of 'template<class T> const T& Min(const T&, const T&)'
template<typename T> T const& Min(T const& a, T const& b) { return a<b ? a : b ; }
^
0_0_14892280_15795.cpp:43:31: note: 'template<class T> const T& Min(const T&, const T&)' previously declared here
template<typename T> T const& Min(T const& a, T const& b) { return a<b ? a : b ; }
^
0_0_14892280_15795.cpp:127:31: error: redefinition of 'template<class T> T gcd(T, T)'
template<typename T> inline T gcd(T a, T b) { return (b ? gcd(b,a%b) : a) ; }
^
0_0_14892280_15795.cpp:44:31: note: 'template<class T> T gcd(T, T)' previously declared here
template<typename T> inline T gcd(T a, T b) { return (b ? gcd(b,a%b) : a) ; }
^
0_0_14892280_15795.cpp:128:24: error: redefinition of 'template<class T> T sqaa(T)'
template<typename T> T sqaa(T a){ return a*a ; }
^
0_0_14892280_15795.cpp:45:24: note: 'template<class T> T sqaa(T)' previously declared here
template<typename T> T sqaa(T a){ return a*a ; }
^
0_0_14892280_15795.cpp:129:15: error: redefinition of 'constexpr const int MAXN'
constexpr int MAXN = (1e3) + 5;
^
0_0_14892280_15795.cpp:46:15: note: 'constexpr const int MAXN' previously defined here
constexpr int MAXN = (1e3) + 5;
^
0_0_14892280_15795.cpp:130:15: error: redefinition of 'constexpr const int MOD'
constexpr int MOD = (1e9) + 7;
^
0_0_14892280_15795.cpp:47:15: note: 'constexpr const int MOD' previously defined here
constexpr int MOD = (1e9) + 7;
^
0_0_14892280_15795.cpp:131:5: error: redefinition of 'int n'
int n, p;
^
0_0_14892280_15795.cpp:48:5: note: 'int n' previously declared here
int n, p;
^
0_0_14892280_15795.cpp:131:8: error: redefinition of 'int p'
int n, p;
^
0_0_14892280_15795.cpp:48:8: note: 'int p' previously declared here
int n, p;
^
0_0_14892280_15795.cpp:132:12: error: redefinition of 'int ar [1005]'
int ar[MAXN];
^
0_0_14892280_15795.cpp:49:5: note: 'int ar [1005]' previously declared here
int ar[MAXN];
^
0_0_14892280_15795.cpp:133:18: error: redefinition of 'int dp [1005][1005]'
int dp[MAXN][MAXN];
^
0_0_14892280_15795.cpp:50:5: note: 'int dp [1005][1005]' previously declared here
int dp[MAXN][MAXN];
^
0_0_14892280_15795.cpp: In function 'int calc(int, int)':
0_0_14892280_15795.cpp:134:5: error: redefinition of 'int calc(int, int)'
int calc(int i,int j){
^
0_0_14892280_15795.cpp:51:5: note: 'int calc(int, int)' previously defined here
int calc(int i,int j){
^
0_0_14892280_15795.cpp: In function 'int main()':
0_0_14892280_15795.cpp:150:5: error: redefinition of 'int main()'
int main(){
^
0_0_14892280_15795.cpp:67:5: note: 'int main()' previously defined here
int main(){
^
0_0_14892280_15795.cpp: At global scope:
0_0_14892280_15795.cpp:207:24: error: redefinition of 'template<class T> T Abs(T)'
template<typename T> T Abs(T x) { return x>0 ? x : -x ; }
^
0_0_14892280_15795.cpp:41:24: note: 'template<class T> T Abs(T)' previously declared here
template<typename T> T Abs(T x) { return x>0 ? x : -x ; }
^
0_0_14892280_15795.cpp:208:31: error: redefinition of 'template<class T> const T& Max(const T&, const T&)'
template<typename T> T const& Max(T const& a, T const& b) { return a>b ? a : b ; }
^
0_0_14892280_15795.cpp:42:31: note: 'template<class T> const T& Max(const T&, const T&)' previously declared here
template<typename T> T const& Max(T const& a, T const& b) { return a>b ? a : b ; }
^
0_0_14892280_15795.cpp:209:31: error: redefinition of 'template<class T> const T& Min(const T&, const T&)'
template<typename T> T const& Min(T const& a, T const& b) { return a<b ? a : b ; }
^
0_0_14892280_15795.cpp:43:31: note: 'template<class T> const T& Min(const T&, const T&)' previously declared here
template<typename T> T const& Min(T const& a, T const& b) { return a<b ? a : b ; }
^
0_0_14892280_15795.cpp:210:31: error: redefinition of 'template<class T> T gcd(T, T)'
template<typename T> inline T gcd(T a, T b) { return (b ? gcd(b,a%b) : a) ; }
^
0_0_14892280_15795.cpp:44:31: note: 'template<class T> T gcd(T, T)' previously declared here
template<typename T> inline T gcd(T a, T b) { return (b ? gcd(b,a%b) : a) ; }
^
0_0_14892280_15795.cpp:211:24: error: redefinition of 'template<class T> T sqaa(T)'
template<typename T> T sqaa(T a){ return a*a ; }
^
0_0_14892280_15795.cpp:45:24: note: 'template<class T> T sqaa(T)' previously declared here
template<typename T> T sqaa(T a){ return a*a ; }
^
0_0_14892280_15795.cpp:212:15: error: redefinition of 'constexpr const int MAXN'
constexpr int MAXN = (1e3) + 5;
^
0_0_14892280_15795.cpp:46:15: note: 'constexpr const int MAXN' previously defined here
constexpr int MAXN = (1e3) + 5;
^
0_0_14892280_15795.cpp:213:15: error: redefinition of 'constexpr const int MOD'
constexpr int MOD = (1e9) + 7;
^
0_0_14892280_15795.cpp:47:15: note: 'constexpr const int MOD' previously defined here
constexpr int MOD = (1e9) + 7;
^
0_0_14892280_15795.cpp:214:5: error: redefinition of 'int n'
int n, p;
^
0_0_14892280_15795.cpp:48:5: note: 'int n' previously declared here
int n, p;
^
0_0_14892280_15795.cpp:214:8: error: redefinition of 'int p'
int n, p;
^
0_0_14892280_15795.cpp:48:8: note: 'int p' previously declared here
int n, p;
^
0_0_14892280_15795.cpp:215:12: error: redefinition of 'int ar [1005]'
int ar[MAXN];
^
0_0_14892280_15795.cpp:49:5: note: 'int ar [1005]' previously declared here
int ar[MAXN];
^
0_0_14892280_15795.cpp:216:18: error: redefinition of 'int dp [1005][1005]'
int dp[MAXN][MAXN];
^
0_0_14892280_15795.cpp:50:5: note: 'int dp [1005][1005]' previously declared here
int dp[MAXN][MAXN];
^
0_0_14892280_15795.cpp: In function 'int calc(int, int)':
0_0_14892280_15795.cpp:217:5: error: redefinition of 'int calc(int, int)'
int calc(int i,int j){
^
0_0_14892280_15795.cpp:51:5: note: 'int calc(int, int)' previously defined here
int calc(int i,int j){
^
0_0_14892280_15795.cpp: In function 'int main()':
0_0_14892280_15795.cpp:233:5: error: redefinition of 'int main()'
int main(){
^
0_0_14892280_15795.cpp:67:5: note: 'int main()' previously defined here
int main(){
^
|