0_0_17231363_16343.cpp:10:1: error: expected initializer before 'int'
int f[1001][1001];
^
0_0_17231363_16343.cpp: In function 'int main()':
0_0_17231363_16343.cpp:24:13: error: 'f' was not declared in this scope
f[i][j]=__gcd(i,j);
^
0_0_17231363_16343.cpp:40:38: error: 'f' was not declared in this scope
add(dp[i][j],dp[i+1][f[j][a[i+1]]]);
^
0_0_17231363_16343.cpp:42:9: error: 'LL' was not declared in this scope
LL ans=0;
^
0_0_17231363_16343.cpp:44:13: error: 'ans' was not declared in this scope
ans+=LL (i)*dp[n][i];
^
0_0_17231363_16343.cpp:45:25: error: 'ans' was not declared in this scope
printf("%lld\n",ans%mod);
^
|