F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
                                      ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-06-24 20:56:05, Gzip enabled