QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#100655 | #5829. 马戏团里你最忙 | alch07 | Compile Error | / | / | C++14 | 6.2kb | 2023-04-27 15:12:32 | 2023-04-27 15:12:34 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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)); | ...