0_0_13110524_30883.cpp:7:1: error: 'll' does not name a type
ll sqr[maxn];
^
0_0_13110524_30883.cpp: In function 'void init()':
0_0_13110524_30883.cpp:10:31: error: 'sqr' was not declared in this scope
for (int i=0; i<maxn; ++i)sqr[i]=(ll)i*i;
^
0_0_13110524_30883.cpp:10:39: error: 'll' was not declared in this scope
for (int i=0; i<maxn; ++i)sqr[i]=(ll)i*i;
^
0_0_13110524_30883.cpp: In function 'int main()':
0_0_13110524_30883.cpp:19:9: error: 'll' was not declared in this scope
ll n; scanf("%I64d", &n);
^
0_0_13110524_30883.cpp:19:31: error: 'n' was not declared in this scope
ll n; scanf("%I64d", &n);
^
0_0_13110524_30883.cpp:20:12: error: expected ';' before 'l'
ll l=1, r=2ll<<31;
^
0_0_13110524_30883.cpp:21:12: error: expected ';' before 'mid'
ll mid=-1;
^
0_0_13110524_30883.cpp:22:16: error: 'l' was not declared in this scope
while (l<=r)
^
0_0_13110524_30883.cpp:22:19: error: 'r' was not declared in this scope
while (l<=r)
^
0_0_13110524_30883.cpp:24:13: error: 'mid' was not declared in this scope
mid=(l+r)>>1;
^
0_0_13110524_30883.cpp:25:31: error: 'sqr' was not declared in this scope
int p=lower_bound(sqr+1, sqr+maxn, mid)-sqr-1;
^
0_0_13110524_30883.cpp:35:12: error: expected ';' before 'ans'
ll ans=0;
^
0_0_13110524_30883.cpp:36:23: error: 'sqr' was not declared in this scope
for (int i=1; sqr[i]<=mid; ++i)
^
0_0_13110524_30883.cpp:36:31: error: 'mid' was not declared in this scope
for (int i=1; sqr[i]<=mid; ++i)
^
0_0_13110524_30883.cpp:38:13: error: 'ans' was not declared in this scope
ans+=i*(min(sqr[i+1], mid+1)-sqr[i]);
^
0_0_13110524_30883.cpp:40:33: error: 'mid' was not declared in this scope
printf("%I64d %I64d\n", mid, ans);
^
0_0_13110524_30883.cpp:40:38: error: 'ans' was not declared in this scope
printf("%I64d %I64d\n", mid, ans);
^
|