QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#27240#2808. GardeningflowerCompile Error//C++116.8kb2022-04-09 13:20:542022-05-18 04:20:47

Details

answer.code:132:12: error: redefinition of ‘std::mt19937_64 hua’
  132 | mt19937_64 hua(time(0));
      |            ^~~
answer.code:26:12: note: ‘std::mt19937_64 hua’ previously declared here
   26 | mt19937_64 hua(time(0));
      |            ^~~
answer.code:133:34: error: redefinition of ‘template<class T> bool chkmx(T&, T)’
  133 | template<typename T> inline bool chkmx(T &x, T y) {return x < y ? x = y, 1 : 0;}
      |                                  ^~~~~
answer.code:27:34: note: ‘template<class T> bool chkmx(T&, T)’ previously declared here
   27 | template<typename T> inline bool chkmx(T &x, T y) {return x < y ? x = y, 1 : 0;}
      |                                  ^~~~~
answer.code:134:34: error: redefinition of ‘template<class T> bool chkmn(T&, T)’
  134 | template<typename T> inline bool chkmn(T &x, T y) {return y < x ? x = y, 1 : 0;}
      |                                  ^~~~~
answer.code:28:34: note: ‘template<class T> bool chkmn(T&, T)’ previously declared here
   28 | template<typename T> inline bool chkmn(T &x, T y) {return y < x ? x = y, 1 : 0;}
      |                                  ^~~~~
answer.code:135:5: error: redefinition of ‘int T’
  135 | int T, n, m, k;
      |     ^
answer.code:29:5: note: ‘int T’ previously declared here
   29 | int T, n, m, k;
      |     ^
answer.code:135:8: error: redefinition of ‘int n’
  135 | int T, n, m, k;
      |        ^
answer.code:29:8: note: ‘int n’ previously declared here
   29 | int T, n, m, k;
      |        ^
answer.code:135:11: error: redefinition of ‘int m’
  135 | int T, n, m, k;
      |           ^
answer.code:29:11: note: ‘int m’ previously declared here
   29 | int T, n, m, k;
      |           ^
answer.code:135:14: error: redefinition of ‘int k’
  135 | int T, n, m, k;
      |              ^
answer.code:29:14: note: ‘int k’ previously declared here
   29 | int T, n, m, k;
      |              ^
answer.code:136:5: error: redefinition of ‘int main()’
  136 | int main() {
      |     ^~~~
answer.code:30:5: note: ‘int main()’ previously defined here
   30 | int main() {
      |     ^~~~