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_20963411_16947.cpp:15:31: error: stray '#' in program
         for(i = 1; i <= n; i ++)
                               ^
0_0_20963411_16947.cpp:15:36: error: stray '#' in program
         for(i = 1; i <= n; i ++)
                                    ^
0_0_20963411_16947.cpp:18:31: error: stray '#' in program
             sum[i] = sum[i-1]+num[i];
                               ^
0_0_20963411_16947.cpp:21:31: error: stray '#' in program
         for(i = 2; i <= n; i ++)
                               ^
0_0_20963411_16947.cpp:21:36: error: stray '#' in program
         for(i = 2; i <= n; i ++)
                                    ^
0_0_20963411_16947.cpp:26:46: error: stray '#' in program
             while(right[i]<n && num[right[i]+1]>=num[i])
                                              ^
0_0_20963411_16947.cpp:27:41: error: stray '#' in program
                 right[i]=right[right[i]+1];
                                         ^
0_0_20963411_16947.cpp:29:26: error: stray '#' in program
         for(i=1; i<=n; i++)
                          ^
0_0_20963411_16947.cpp:29:31: error: stray '#' in program
         for(i=1; i<=n; i++)
                               ^
0_0_20963411_16947.cpp: In function 'int main()':
0_0_20963411_16947.cpp:15:34: error: expected ')' before ';' token
         for(i = 1; i <= n; i ++)
                                  ^
0_0_20963411_16947.cpp:15:37: error: lvalue required as unary '&' operand
         for(i = 1; i <= n; i ++)
                                     ^
0_0_20963411_16947.cpp:15:40: error: expected primary-expression before ')' token
         for(i = 1; i <= n; i ++)
                                        ^
0_0_20963411_16947.cpp:21:34: error: expected ')' before ';' token
         for(i = 2; i <= n; i ++)
                                  ^
0_0_20963411_16947.cpp:21:37: error: lvalue required as unary '&' operand
         for(i = 2; i <= n; i ++)
                                     ^
0_0_20963411_16947.cpp:21:40: error: expected primary-expression before ')' token
         for(i = 2; i <= n; i ++)
                                        ^
0_0_20963411_16947.cpp:26:49: error: expected ']' before ';' token
             while(right[i]<n && num[right[i]+1]>=num[i])
                                                 ^
0_0_20963411_16947.cpp:26:49: error: expected ')' before ';' token
0_0_20963411_16947.cpp:26:51: error: expected ';' before ']' token
             while(right[i]<n && num[right[i]+1]>=num[i])
                                                   ^
0_0_20963411_16947.cpp:27:46: error: expected ';' before ']' token
                 right[i]=right[right[i]+1];
                                              ^
0_0_20963411_16947.cpp:29:29: error: expected ')' before ';' token
         for(i=1; i<=n; i++)
                             ^
0_0_20963411_16947.cpp:29:32: error: lvalue required as unary '&' operand
         for(i=1; i<=n; i++)
                                ^
0_0_20963411_16947.cpp:29:35: error: expected primary-expression before ')' token
         for(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-12-02 12:02:14, Gzip enabled