QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#100655#5829. 马戏团里你最忙alch07Compile Error//C++146.2kb2023-04-27 15:12:322023-04-27 15:12:34

Details

answer.code: In function ‘long long int fpow(long long int, long long int)’:
answer.code:27:27: error: passing ‘const FastMod’ as ‘this’ argument discards qualifiers [-fpermissive]
   27 |             ans = F.reduce(ans*a);
      |                   ~~~~~~~~^~~~~~~
answer.code:12:13: note:   in call to ‘ull FastMod::reduce(ull)’
   12 |         ull reduce(ull a) {
      |             ^~~~~~
answer.code:30:21: error: passing ‘const FastMod’ as ‘this’ argument discards qualifiers [-fpermissive]
   30 |         a = F.reduce(a*a);
      |             ~~~~~~~~^~~~~
answer.code:12:13: note:   in call to ‘ull FastMod::reduce(ull)’
   12 |         ull reduce(ull a) {
      |             ^~~~~~
answer.code: In member function ‘void LinRec::bm()’:
answer.code:53:57: error: passing ‘const FastMod’ as ‘this’ argument discards qualifiers [-fpermissive]
   53 |                 delta = F.reduce(delta + mod - (F.reduce(init[i-j-1] * c[j])));
      |                                                 ~~~~~~~~^~~~~~~~~~~~~~~~~~~~
answer.code:12:13: note:   in call to ‘ull FastMod::reduce(ull)’
   12 |         ull reduce(ull a) {
      |             ^~~~~~
answer.code:53:33: error: passing ‘const FastMod’ as ‘this’ argument discards qualifiers [-fpermissive]
   53 |                 delta = F.reduce(delta + mod - (F.reduce(init[i-j-1] * c[j])));
      |                         ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:12:13: note:   in call to ‘ull FastMod::reduce(ull)’
   12 |         ull reduce(ull a) {
      |             ^~~~~~
answer.code:64:36: error: passing ‘const FastMod’ as ‘this’ argument discards qualifiers [-fpermissive]
   64 |                     d[j] = F.reduce(mod - d[j]);
      |                            ~~~~~~~~^~~~~~~~~~~~
answer.code:12:13: note:   in call to ‘ull FastMod::reduce(ull)’
   12 |         ull reduce(ull a) {
      |             ^~~~~~
answer.code:69:35: error: passing ‘const FastMod’ as ‘this’ argument discards qualifiers [-fpermissive]
   69 |                     df1 = F.reduce(df1 + d[j] * init[f-j]);
      |                           ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
answer.code:12:13: note:   in call to ‘ull FastMod::reduce(ull)’
   12 |         ull reduce(ull a) {
      |             ^~~~~~
answer.code:71:35: error: passing ‘const FastMod’ as ‘this’ argument discards qualifiers [-fpermissive]
   71 |                 ll coef = F.reduce(delta * fpow(df1, mod-2));
      |                           ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:12:13: note:   in call to ‘ull FastMod::reduce(ull)’
   12 |         ull reduce(ull a) {
      |             ^~~~~~
answer.code:73:36: error: passing ‘const FastMod’ as ‘this’ argument discards qualifiers [-fpermissive]
   73 |                     d[j] = F.reduce(d[j]*coef);
      |                            ~~~~~~~~^~~~~~~~~~~
answer.code:12:13: note:   in call to ‘ull FastMod::reduce(ull)’
   12 |         ull reduce(ull a) {
      |             ^~~~~~
answer.code:82:36: error: passing ‘const FastMod’ as ‘this’ argument discards qualifiers [-fpermissive]
   82 |                     c[j] = F.reduce(c[j] + d[j]);
      |                            ~~~~~~~~^~~~~~~~~~~~~
answer.code:12:13: note:   in call to ‘ull FastMod::reduce(ull)’
   12 |         ull reduce(ull a) {
      |             ^~~~~~
answer.code: In member function ‘long long int LinRec::kthTerm(long long int)’:
answer.code:113:30: error: passing ‘const FastMod’ as ‘this’ argument discards qualifiers [-fpermissive]
  113 |             finVal = F.reduce(finVal + init[i] * ans[i]);
      |                      ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:12:13: note:   in call to ‘ull FastMod::reduce(ull)’
   12 |         ull reduce(ull a) {
      |             ^~~~~~
answer.code: In member function ‘std::vector<long long int> LinRec::mul(std::vector<long long int>, std::vector<long long int>)’:
answer.code:122:36: error: passing ‘const FastMod’ as ‘this’ argument discards qualifiers [-fpermissive]
  122 |                 ans[i+j] = F.reduce(ans[i+j] + v1[i]*v2[j]);
      |                            ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
answer.code:12:13: note:   in call to ‘ull FastMod::reduce(ull)’
   12 |         ull reduce(ull a) {
      |             ^~~~~~
answer.code: In member function ‘std::vector<long long int> LinRec::rem(std::vector<long long int>)’:
answer.code:136:36: error: passing ‘const FastMod’ as ‘this’ argument discards qualifiers [-fpermissive]
  136 |                 v[i-j-1] = F.reduce(v[i-j-1] + v[i] * rec[j]);
      |                            ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:12:13: note:   in call to ‘ull FastMod::reduce(ull)’
   12 |         ull reduce(ull a) {
      |             ^~~~~~
answer.code: In function ‘void doTransition(int)’:
answer.code:161:29: error: passing ‘const FastMod’ as ‘this’ argument discards qualifiers [-fpermissive]
  161 |         fapsum[i] = F.reduce(f[layer][i] * fpow(iv, pct));
      |                 ...