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_33146989_12336.cpp:45:1: error: expected initializer before 'int'
 int n, m, t, opt, x, y,ans,ret;
 ^
0_0_33146989_12336.cpp: In function 'int main()':
0_0_33146989_12336.cpp:68:10: error: 't' was not declared in this scope
     cin>>t;
          ^
0_0_33146989_12336.cpp:72:16: error: 'n' was not declared in this scope
         cin >> n >> m;
                ^
0_0_33146989_12336.cpp:72:21: error: 'm' was not declared in this scope
         cin >> n >> m;
                     ^
0_0_33146989_12336.cpp:73:29: error: 'build' was not declared in this scope
         build(T[0], 1, n + 1);
                             ^
0_0_33146989_12336.cpp:77:50: error: 'update' was not declared in this scope
             update(T[i], 1, n + 1, T[i - 1], a[i]);
                                                  ^
0_0_33146989_12336.cpp:79:47: error: 'update' was not declared in this scope
         update(T[n + 1], 1, n + 1, T[n], n + 1);
                                               ^
0_0_33146989_12336.cpp:81:9: error: 'ans' was not declared in this scope
         ans = 0;
         ^
0_0_33146989_12336.cpp:84:20: error: 'opt' was not declared in this scope
             cin >> opt;
                    ^
0_0_33146989_12336.cpp:87:24: error: 'x' was not declared in this scope
                 cin >> x;
                        ^
0_0_33146989_12336.cpp:93:24: error: 'x' was not declared in this scope
                 cin >> x >> y;
                        ^
0_0_33146989_12336.cpp:93:29: error: 'y' was not declared in this scope
                 cin >> x >> y;
                             ^
0_0_33146989_12336.cpp:98:21: error: 'ret' was not declared in this scope
                     ret = 0;
                     ^
0_0_33146989_12336.cpp:99:54: error: 'query' was not declared in this scope
                     query(T[x], T[n + 1], 1, n + 1, y);
                                                      ^
0_0_33146989_12336.cpp:104:21: error: 'ret' was not declared in this scope
                     ret = 0;
                     ^
0_0_33146989_12336.cpp:105:54: error: 'query' was not declared in this scope
                     query(T[x], T[n + 1], 1, n + 1, y);
                                                      ^


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-17 08:44:20, Gzip enabled