0_0_38419192_19886.cpp: In function 'void init()':
0_0_38419192_19886.cpp:7:27: error: 'memset' was not declared in this scope
memset(f, 0, sizeof(f));
^
0_0_38419192_19886.cpp:8:5: error: 'dp' was not declared in this scope
dp[0] = 1;
^
0_0_38419192_19886.cpp:12:18: error: invalid operands of types 'int' and 'double' to binary 'operator%'
f[i] %= MOD;
^
0_0_38419192_19886.cpp:12:18: error: in evaluation of 'operator%=(int, double)'
0_0_38419192_19886.cpp:2:13: error: invalid operands of types 'double' and 'double' to binary 'operator%'
#define MOD 1e9+7
^
0_0_38419192_19886.cpp:13:35: note: in expansion of macro 'MOD'
f[i] = (f[i] + MOD) % MOD;
^
0_0_38419192_19886.cpp:16:22: error: invalid operands of types 'int' and 'double' to binary 'operator%'
f[i] %= MOD;
^
0_0_38419192_19886.cpp:16:22: error: in evaluation of 'operator%=(int, double)'
0_0_38419192_19886.cpp:2:13: error: invalid operands of types 'double' and 'double' to binary 'operator%'
#define MOD 1e9+7
^
0_0_38419192_19886.cpp:17:39: note: in expansion of macro 'MOD'
f[i] = (f[i] + MOD) % MOD;
^
|