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_20972464_30796.cpp:19:23: error: stray '#' in program
     for(int i = 1; x + (1<<i) - 1 <= n; ++i)
                       ^
0_0_20972464_30796.cpp:19:46: error: stray '#' in program
     for(int i = 1; x + (1<<i) - 1 <= n; ++i)
                                              ^
0_0_20972464_30796.cpp:19:51: error: stray '#' in program
     for(int i = 1; x + (1<<i) - 1 <= n; ++i)
                                                   ^
0_0_20972464_30796.cpp:20:41: error: stray '#' in program
         ST[x][i] = max(ST[x][i-1], ST[x+(1<<(i-1))][i-1]);
                                         ^
0_0_20972464_30796.cpp:28:18: error: stray '#' in program
     while((1<<(k+1)) <= (r - l + 1)) k++;
                  ^
0_0_20972464_30796.cpp:28:37: error: stray '#' in program
     while((1<<(k+1)) <= (r - l + 1)) k++;
                                     ^
0_0_20972464_30796.cpp:28:48: error: stray '#' in program
     while((1<<(k+1)) <= (r - l + 1)) k++;
                                                ^
0_0_20972464_30796.cpp:28:53: error: stray '#' in program
     while((1<<(k+1)) <= (r - l + 1)) k++;
                                                     ^
0_0_20972464_30796.cpp:29:38: error: stray '#' in program
     return max(ST[l][k], ST[r-(1<<k)+1][k]);
                                      ^
0_0_20972464_30796.cpp:40:33: error: stray '#' in program
         for(int i = 1; i <= n; ++i)
                                 ^
0_0_20972464_30796.cpp:40:38: error: stray '#' in program
         for(int i = 1; i <= n; ++i)
                                      ^
0_0_20972464_30796.cpp:43:23: error: stray '#' in program
             X[i] = i + X[i];
                       ^
0_0_20972464_30796.cpp:44:27: error: stray '#' in program
             Y[i] = min(i + Y[i] - 1, n);
                           ^
0_0_20972464_30796.cpp:48:27: error: stray '#' in program
             dp[i] = S[i] + query(X[i], Y[i]);
                           ^
0_0_20972464_30796.cpp: In function 'void update(int)':
0_0_20972464_30796.cpp:19:43: error: expected ')' before ';' token
     for(int i = 1; x + (1<<i) - 1 <= n; ++i)
                                           ^
0_0_20972464_30796.cpp:19:47: error: lvalue required as unary '&' operand
     for(int i = 1; x + (1<<i) - 1 <= n; ++i)
                                               ^
0_0_20972464_30796.cpp:19:52: error: lvalue required as unary '&' operand
     for(int i = 1; x + (1<<i) - 1 <= n; ++i)
                                                    ^
0_0_20972464_30796.cpp:19:55: error: 'i' was not declared in this scope
     for(int i = 1; x + (1<<i) - 1 <= n; ++i)
                                                       ^
0_0_20972464_30796.cpp: In function 'int query(int, int)':
0_0_20972464_30796.cpp:28:21: error: expected ')' before ';' token
     while((1<<(k+1)) <= (r - l + 1)) k++;
                     ^
0_0_20972464_30796.cpp:28:21: error: expected ')' before ';' token
0_0_20972464_30796.cpp:28:21: error: expected ')' before ';' token
0_0_20972464_30796.cpp:28:23: error: expected ';' before ')' token
     while((1<<(k+1)) <= (r - l + 1)) k++;
                       ^
0_0_20972464_30796.cpp:28:43: error: expected ';' before ')' token
     while((1<<(k+1)) <= (r - l + 1)) k++;
                                           ^
0_0_20972464_30796.cpp:28:54: error: lvalue required as unary '&' operand
     while((1<<(k+1)) <= (r - l + 1)) k++;
                                                      ^
0_0_20972464_30796.cpp:29:41: error: expected ']' before ';' token
     return max(ST[l][k], ST[r-(1<<k)+1][k]);
                                         ^
0_0_20972464_30796.cpp:29:41: error: expected ')' before ';' token
0_0_20972464_30796.cpp:29:43: error: expected ';' before ']' token
     return max(ST[l][k], ST[r-(1<<k)+1][k]);
                                           ^
0_0_20972464_30796.cpp: In function 'int main()':
0_0_20972464_30796.cpp:40:34: error: lvalue required as unary '&' operand
         for(int i = 1; i <= n; ++i)
                                  ^
0_0_20972464_30796.cpp:40:36: error: expected ')' before ';' token
         for(int i = 1; i <= n; ++i)
                                    ^
0_0_20972464_30796.cpp:40:39: error: lvalue required as unary '&' operand
         for(int i = 1; i <= n; ++i)
                                       ^
0_0_20972464_30796.cpp:40:42: error: 'i' was not declared in this scope
         for(int i = 1; i <= n; ++i)
                                          ^


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 19:07:51, Gzip enabled