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_13252857_6784.cpp:7:1: error: 'LL' does not name a type
 LL f[N],c[N];
 ^
0_0_13252857_6784.cpp: In function 'void C(int, int)':
0_0_13252857_6784.cpp:11:2: error: 'f' was not declared in this scope
  f[i]+=d;
  ^
0_0_13252857_6784.cpp:12:23: error: 'c' was not declared in this scope
  for (;i<=nn;i+=i&-i) c[i]+=d;
                       ^
0_0_13252857_6784.cpp: At global scope:
0_0_13252857_6784.cpp:14:1: error: 'LL' does not name a type
 LL   Q(int i)
 ^
0_0_13252857_6784.cpp: In function 'int main()':
0_0_13252857_6784.cpp:65:5: error: 'LL' was not declared in this scope
     LL ans=0;
     ^
0_0_13252857_6784.cpp:72:10: error: expected ';' before 'now'
       LL now=0;
          ^
0_0_13252857_6784.cpp:73:30: error: 'now' was not declared in this scope
       for (int k=i;k<=j;k++) now+=f[k];
                              ^
0_0_13252857_6784.cpp:73:35: error: 'f' was not declared in this scope
       for (int k=i;k<=j;k++) now+=f[k];
                                   ^
0_0_13252857_6784.cpp:74:7: error: 'ans' was not declared in this scope
       ans=ans+now*(n/i);
       ^
0_0_13252857_6784.cpp:74:15: error: 'now' was not declared in this scope
       ans=ans+now*(n/i);
               ^
0_0_13252857_6784.cpp:77:7: error: 'ans' was not declared in this scope
       ans=ans+(Q(j)-Q(i-1))*(n/i);
       ^
0_0_13252857_6784.cpp:77:19: error: 'Q' was not declared in this scope
       ans=ans+(Q(j)-Q(i-1))*(n/i);
                   ^
0_0_13252857_6784.cpp:79:11: error: 'ans' was not declared in this scope
     cout<<ans<<endl;
           ^


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-11-26 02:20:11, Gzip enabled