0_0_36980120_13854.cpp:3:7: error: 'll' does not name a type
const ll N=1e6+10;
^
0_0_36980120_13854.cpp:5:8: error: 'N' was not declared in this scope
ll val[N],s[N],dp[N];
^
0_0_36980120_13854.cpp:5:13: error: 'N' was not declared in this scope
ll val[N],s[N],dp[N];
^
0_0_36980120_13854.cpp:5:19: error: 'N' was not declared in this scope
ll val[N],s[N],dp[N];
^
0_0_36980120_13854.cpp:6:6: error: 'N' was not declared in this scope
ll q[N],head,tail;
^
0_0_36980120_13854.cpp: In function 'll g_u(ll, ll)':
0_0_36980120_13854.cpp:9:12: error: 'dp' was not declared in this scope
return dp[j]-dp[i]+s[j]*s[j]-s[i]*s[i];
^
0_0_36980120_13854.cpp:9:24: error: 's' was not declared in this scope
return dp[j]-dp[i]+s[j]*s[j]-s[i]*s[i];
^
0_0_36980120_13854.cpp: In function 'll g_d(ll, ll)':
0_0_36980120_13854.cpp:12:15: error: 's' was not declared in this scope
return 2*(s[j]-s[i]);
^
0_0_36980120_13854.cpp: In function 'int main()':
0_0_36980120_13854.cpp:17:14: error: 'val' was not declared in this scope
cin>>val[i];
^
0_0_36980120_13854.cpp:18:9: error: 's' was not declared in this scope
s[i]=s[i-1]+val[i];
^
0_0_36980120_13854.cpp:21:5: error: 'q' was not declared in this scope
q[1]=0;
^
0_0_36980120_13854.cpp:24:9: error: 'dp' was not declared in this scope
dp[i]=dp[id]+m+(s[i]-s[id])*(s[i]-s[id]);
^
0_0_36980120_13854.cpp:24:25: error: 's' was not declared in this scope
dp[i]=dp[id]+m+(s[i]-s[id])*(s[i]-s[id]);
^
0_0_36980120_13854.cpp:29:11: error: 'dp' was not declared in this scope
cout<<dp[n]<<endl;
^
|