Problem swayingflowers
User Xiaoyang
Submission Time 2023-01-18 20:41:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swayingflowers.cpp: In function ‘void inc(int&, int)’:
swayingflowers.cpp:21:33: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
21 | void inc(int &a,int b) {a=(a+b)%mod;}
| ^~~
| modf
swayingflowers.cpp: In function ‘void dec(int&, int)’:
swayingflowers.cpp:22:32: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
22 | void dec(int &a,int b) {a=(a-b+mod)%mod;}
| ^~~
| modf
swayingflowers.cpp: In function ‘long long int expo(long long int, long long int)’:
swayingflowers.cpp:24:73: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
24 | 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;}
| ^~~