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_24725855_16400.cpp:52:8: error: missing terminating " character
        scanf("%d,&n);
        ^
0_0_24725855_16400.cpp:5:1: error: 'struce' does not name a type
 struce li{
 ^
0_0_24725855_16400.cpp:9:2: error: 'stu' does not name a type
 }stu[500];
  ^
0_0_24725855_16400.cpp: In function 'void build(int, int, int)':
0_0_24725855_16400.cpp:13:6: error: 'stu' was not declared in this scope
      stu[step].val=0;
      ^
0_0_24725855_16400.cpp: In function 'int query(int, int, int)':
0_0_24725855_16400.cpp:24:10: error: 'stu' was not declared in this scope
    if(l==stu[step].left&&r==stu[step].right) return stu[step].val;
          ^
0_0_24725855_16400.cpp:25:13: error: 'stu' was not declared in this scope
    int mid=(stu[step].left+stu[step].right)>>1;
             ^
0_0_24725855_16400.cpp: In function 'void add1(int, int, int, int)':
0_0_24725855_16400.cpp:33:4: error: 'stu' was not declared in this scope
    stu[step].val+=add2;
    ^
0_0_24725855_16400.cpp:39:27: error: invalid conversion from 'void (*)(int, int, int, int)' to 'int' [-fpermissive]
    add1(l,mid,add1,step<<1);
                           ^
0_0_24725855_16400.cpp:31:6: note: initializing argument 3 of 'void add1(int, int, int, int)'
 void add1(int l,int r,int add2,int step)
      ^
0_0_24725855_16400.cpp:40:26: error: too few arguments to function 'void add1(int, int, int, int)'
    add1(mid+1,r,step<<1|1);
                          ^
0_0_24725855_16400.cpp:31:6: note: declared here
 void add1(int l,int r,int add2,int step)
      ^
0_0_24725855_16400.cpp: In function 'int main()':
0_0_24725855_16400.cpp:53:20: error: expected ')' before ';' token
        build(1,n,1);
                    ^
0_0_24725855_16400.cpp:77:27: error: 'adda' was not declared in this scope
              adda(a,a,-b,1);
                           ^
0_0_24725855_16400.cpp:82:1: error: expected '}' at end of input
 }
 ^


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-20 22:18:33, Gzip enabled