Problem | modulochain |
---|---|
User | Xiaoyang |
Submission Time | 2023-01-05 20:47:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
modulochain.cpp: In function ‘void inc(int&, int)’:
modulochain.cpp:19:33: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
19 | void inc(int &a,int b) {a=(a+b)%mod;}
| ^~~
| modf
modulochain.cpp: In function ‘void dec(int&, int)’:
modulochain.cpp:20:32: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
20 | void dec(int &a,int b) {a=(a-b+mod)%mod;}
| ^~~
| modf
modulochain.cpp: In function ‘long long int expo(long long int, long long int)’:
modulochain.cpp:22:73: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
22 | ll expo(ll base,ll p) {ll ret=1;while(p>0){if (p%2ll==1ll) ret=ret*base%mod;base=base*base%mod;p/=2ll;}return ret;}
| ^~~
|