Problem mao2
User bribritt
Submission Time 2025-04-01 22:17:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mao2.cpp:5:2: error: expected initializer before ‘long’
5 | long long s = 0;
| ^~~~
mao2.cpp:6:2: error: expected unqualified-id before ‘for’
6 | for(int i=0;i<a;i++)
| ^~~
mao2.cpp:6:14: error: ‘i’ does not name a type
6 | for(int i=0;i<a;i++)
| ^
mao2.cpp:6:18: error: ‘i’ does not name a type
6 | for(int i=0;i<a;i++)
| ^
mao2.cpp:8:2: error: expected unqualified-id before ‘return’
8 | return s % MOD;
| ^~~~~~
mao2.cpp:9:1: error: expected declaration before ‘}’ token
9 | }
| ^
mao2.cpp: In function ‘int exp(int, int)’:
mao2.cpp:10:42: error: ‘mul’ was not declared in this scope; did you mean ‘fmul’?
10 | int exp(int a, int b) {return (b?mul(exp(mul(a,a),b>>1),b&1?a:1):1);}
| ^~~
| fmul
mao2.cpp:10:34: error: ‘