Problem jumper
User Xiaoyang
Submission Time 2023-03-02 18:39:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

jumper.cpp: In function ‘void inc(int&, int)’:
jumper.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
jumper.cpp: In function ‘void dec(int&, int)’:
jumper.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
jumper.cpp: At global scope:
jumper.cpp:15:12: error: expected ‘,’ or ‘;’ before ‘long’
15 | #define ll long long
| ^~~~
jumper.cpp:23:1: note: in expansion of macro ‘ll’
23 | ll expo(ll a, ll b,ll m){
| ^~
jumper.cpp: In function ‘int main()’:
jumper.cpp:78:8: error: ‘expo’ was not declared in this scope; did you mean ‘expl’?
78 | s+=expo(base,i*n+j,mod);
|