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_15054581_22497.cpp:9:9: error: 'N' was not declared in this scope
 int arr[N];
         ^
0_0_15054581_22497.cpp:12:4: error: 'N' was not declared in this scope
 }s[N*2];
    ^
0_0_15054581_22497.cpp: In function 'void tree_build(int, int, int)':
0_0_15054581_22497.cpp:15:5: error: 's' was not declared in this scope
     s[i].left=left;
     ^
0_0_15054581_22497.cpp:18:18: error: 'arr' was not declared in this scope
         s[i].sum=arr[right];
                  ^
0_0_15054581_22497.cpp: In function 'void tree_a(int, int, int)':
0_0_15054581_22497.cpp:27:8: error: 's' was not declared in this scope
     if(s[i].left == id&&id==s[i].right){
        ^
0_0_15054581_22497.cpp:32:20: error: 's' was not declared in this scope
         int mid = (s[i].left+s[i].right)/2;
                    ^
0_0_15054581_22497.cpp: In function 'int tree_q(int, int, int)':
0_0_15054581_22497.cpp:40:8: error: 's' was not declared in this scope
     if(s[i].left == left && s[i].right == right) return s[i].sum;
        ^
0_0_15054581_22497.cpp:41:12: error: 's' was not declared in this scope
     mid = (s[i].left + s[i].right)/2;
            ^
0_0_15054581_22497.cpp: In function 'int main()':
0_0_15054581_22497.cpp:53:15: error: 'arr' was not declared in this scope
             s(arr[i]);
               ^
0_0_15054581_22497.cpp:4:26: note: in definition of macro 's'
 #define s(a) scanf("%d",&a)
                          ^


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-12-01 19:53:48, Gzip enabled