QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#877933#8266. Astronomergg_gongCompile Error//C++203.4kb2025-02-01 12:27:312025-02-01 12:27:32

詳細信息

In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from answer.code:6:
/usr/include/c++/14/bits/stl_algo.h: In instantiation of ‘void std::shuffle(_RAIter, _RAIter, _UGenerator&&) [with _RAIter = array<double, 2>*; _UGenerator = mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253> (&)()]’:
answer.code:135:9:   required from here
  135 |         shuffle(a+1,a+(int)n+1,rnd);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:3717:9: error: ‘std::remove_reference<std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253> (&)()>::type’ {aka ‘std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>()’} is not a class, struct, or union type
 3717 |         __uc_type;
      |         ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:3719:41: error: request for member ‘max’ in ‘__g’, which is of non-class type ‘std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>()’
 3719 |       const __uc_type __urngrange = __g.max() - __g.min();
      |                                     ~~~~^~~
/usr/include/c++/14/bits/stl_algo.h:3719:53: error: request for member ‘min’ in ‘__g’, which is of non-class type ‘std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>()’
 3719 |       const __uc_type __urngrange = __g.max() - __g.min();
      |                                                 ~~~~^~~
/usr/include/c++/14/bits/stl_algo.h:3745:44: error: ‘std::remove_reference<std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253> (&)()>::type’ {aka ‘std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>()’} is not a class, struct, or union type
 3745 |           const pair<__uc_type, __uc_type> __pospos =
      |                                            ^~~~~~~~