QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#156908 | #7112. XOR Clique | ucup-team1352# | Compile Error | / | / | C++23 | 19.9kb | 2023-09-02 14:35:52 | 2023-09-02 14:57:37 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:353:26: error: ambiguating new declaration ‘template<class T> long long int sz(const T&)’ 353 | template <typename T> ll sz(const T &x) { return x.size(); } //注意此时类型的定义 | ^~ answer.code:102:26: note: old declaration ‘template<class T> long long int sz(const T&)’ 102 | template <typename T> ll sz(const T &x) { return x.size(); } //注意此时类型的定义 | ^~ answer.code:354:26: error: ambiguating new declaration ‘template<class T> long long int sl(const T&)’ 354 | template <typename T> ll sl(const T &x) { return x.length();} | ^~ answer.code:103:26: note: old declaration ‘template<class T> long long int sl(const T&)’ 103 | template <typename T> ll sl(const T &x) { return x.length();} | ^~ answer.code:355:41: error: ambiguating new declaration ‘template<class T, class S> bool chmax(T&, const S&)’ 355 | template <class T, class S> inline bool chmax(T &a, const S &b) { return (a < b ? a = b, 1 : 0); } | ^~~~~ answer.code:104:41: note: old declaration ‘template<class T, class S> bool chmax(T&, const S&)’ 104 | template <class T, class S> inline bool chmax(T &a, const S &b) { return (a < b ? a = b, 1 : 0); } | ^~~~~ answer.code:356:41: error: ambiguating new declaration ‘template<class T, class S> bool chmin(T&, const S&)’ 356 | template <class T, class S> inline bool chmin(T &a, const S &b) { return (a > b ? a = b, 1 : 0); } | ^~~~~ answer.code:105:41: note: old declaration ‘template<class T, class S> bool chmin(T&, const S&)’ 105 | template <class T, class S> inline bool chmin(T &a, const S &b) { return (a > b ? a = b, 1 : 0); } | ^~~~~ answer.code:357:28: error: ambiguating new declaration ‘template<class T> T sqr(T)’ 357 | template<class T> inline T sqr(T x) { return x * x;} | ^~~ answer.code:106:28: note: old declaration ‘template<class T> T sqr(T)’ 106 | template<class T> inline T sqr(T x) { return x * x;} | ^~~ answer.code:358:31: error: ambiguating new declaration ‘template<class T> void OUT(T)’ 358 | template<class T> inline void OUT(T x) {cout << x << "\n";} | ^~~ answer.code:107:31: note: old declaration ‘template<class T> void OUT(T)’ 107 | template<class T> inline void OUT(T x) {cout << x << "\n";} | ^~~ answer.code:367:9: error: redefinition of ‘std::mt19937 mrand’ 367 | mt19937 mrand(random_device{}()); | ^~~~~ answer.code:116:9: note: ‘std::mt19937 mrand’ previously declared here 116 | mt19937 mrand(random_device{}()); | ^~~~~ answer.code:384:11: error: ambiguating new declaration ‘template<class T> std::vector<_Tp> input_vector(T)’ 384 | vector<T> input_vector(T n) { //注意要保证vector与n的类型完全相同 | ^~~~~~~~~~~~ answer.code:133:11: note: old declaration ‘template<class T> std::vector<_Tp> input_vector(T)’ 133 | vector<T> input_vector(T n) { //注意要保证vector与n的类型完全相同 | ^~~~~~~~~~~~ answer.code:391:6: error: ambiguating new declaration ‘template<class t> void print_single(t, long long int)’ 391 | void print_single(t x, ll suc = 1) { | ^~~~~~~~~~~~ answer.code:140:6: note: old declaration ‘template<class t> void print_single(t, long long int)’ 140 | void print_single(t x, ll suc = 1) { | ^~~~~~~~~~~~ answer.code:399:6: error: ambiguating new declaration ‘template<class T> void print_single(const std::vector<_Tp>&, long long int)’ 399 | void print_single(const vector<T>&v, ll suc = 1) { | ^~~~~~~~~~~~ answer.code:148:6: note: old declaration ‘template<class T> void print_single(const std::vector<_Tp>&, long long int)’ 148 | void print_single(const vector<T>&v, ll suc = 1) { | ^~~~~~~~~~~~ answer.code:404:6: error: ambiguating new declaration ‘template<class T> void output_vector(const std::vector<_Tp>&, long long int)’ 404 | void output_vector(const vector<T>&v, ll suc = 1) { | ^~~~~~~~~~~~~ answer.code:153:6: note: old declaration ‘template<class T> void output_vector(const std::vector<_Tp>&, long long int)’ 153 | void output_vector(const vector<T>&v, ll suc = 1) { | ^~~~~~~~~~~~~ answer.code:409:6: error: ambiguating new declaration ‘template<class T> void change_output_vector(const std::vector<_Tp>&, long long int, long long int)’ 409 | void change_output_vector(const vector<T>&v, ll off, ll suc = 1) { | ^~~~~~~~~~~~~~~~~~~~ answer.code:158:6: note: old declaration ‘template<class T> void change_output_vector(const std::vector<_Tp>&, long long int, long long int)’ 158 | void change_output_vector(const vector<T>&v, ll off, ll suc = 1) { | ^~~~~~~~~~~~~~~~~~~~ answer.code...