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_20957354_14397.cpp:10:23: error: stray '#' in program
  int i = ld, j = mid + 1;
                       ^
0_0_20957354_14397.cpp:17:9: error: stray '#' in program
    ans += a[i]*( k - i );
         ^
0_0_20957354_14397.cpp:18:6: error: stray '#' in program
    i++;k++;
      ^
0_0_20957354_14397.cpp:18:11: error: stray '#' in program
    i++;k++;
           ^
0_0_20957354_14397.cpp:18:18: error: stray '#' in program
    i++;k++;
                  ^
0_0_20957354_14397.cpp:18:23: error: stray '#' in program
    i++;k++;
                       ^
0_0_20957354_14397.cpp:23:9: error: stray '#' in program
    ans += a[j]*( j - k );
         ^
0_0_20957354_14397.cpp:24:6: error: stray '#' in program
    j++;k++;
      ^
0_0_20957354_14397.cpp:24:11: error: stray '#' in program
    j++;k++;
           ^
0_0_20957354_14397.cpp:24:18: error: stray '#' in program
    j++;k++;
                  ^
0_0_20957354_14397.cpp:24:23: error: stray '#' in program
    j++;k++;
                       ^
0_0_20957354_14397.cpp:30:8: error: stray '#' in program
   ans += a[i]*( k - i );
        ^
0_0_20957354_14397.cpp:31:5: error: stray '#' in program
   i++;k++;
     ^
0_0_20957354_14397.cpp:31:10: error: stray '#' in program
   i++;k++;
          ^
0_0_20957354_14397.cpp:31:17: error: stray '#' in program
   i++;k++;
                 ^
0_0_20957354_14397.cpp:31:22: error: stray '#' in program
   i++;k++;
                      ^
0_0_20957354_14397.cpp:37:8: error: stray '#' in program
   ans += a[j]*( j - k );
        ^
0_0_20957354_14397.cpp:38:5: error: stray '#' in program
   j++;k++;
     ^
0_0_20957354_14397.cpp:38:10: error: stray '#' in program
   j++;k++;
          ^
0_0_20957354_14397.cpp:38:17: error: stray '#' in program
   j++;k++;
                 ^
0_0_20957354_14397.cpp:38:22: error: stray '#' in program
   j++;k++;
                      ^
0_0_20957354_14397.cpp:41:18: error: stray '#' in program
  for( i=ld;i<k;i++ )
                  ^
0_0_20957354_14397.cpp:41:23: error: stray '#' in program
  for( i=ld;i<k;i++ )
                       ^
0_0_20957354_14397.cpp:48:19: error: stray '#' in program
   int mid = ( ld + ed )/2;
                   ^
0_0_20957354_14397.cpp:50:18: error: stray '#' in program
   MergeSort( mid+1,ed );
                  ^
0_0_20957354_14397.cpp:60:19: error: stray '#' in program
   for( i=1;i<=n;i++ )
                   ^
0_0_20957354_14397.cpp:60:24: error: stray '#' in program
   for( i=1;i<=n;i++ )
                        ^
0_0_20957354_14397.cpp: In function 'void MergeArray(int, int, int)':
0_0_20957354_14397.cpp:17:13: error: expected primary-expression before '=' token
    ans += a[i]*( k - i );
             ^
0_0_20957354_14397.cpp:18:12: error: lvalue required as unary '&' operand
    i++;k++;
            ^
0_0_20957354_14397.cpp:18:24: error: lvalue required as unary '&' operand
    i++;k++;
                        ^
0_0_20957354_14397.cpp:23:13: error: expected primary-expression before '=' token
    ans += a[j]*( j - k );
             ^
0_0_20957354_14397.cpp:24:12: error: lvalue required as unary '&' operand
    j++;k++;
            ^
0_0_20957354_14397.cpp:24:24: error: lvalue required as unary '&' operand
    j++;k++;
                        ^
0_0_20957354_14397.cpp:30:12: error: expected primary-expression before '=' token
   ans += a[i]*( k - i );
            ^
0_0_20957354_14397.cpp:31:11: error: lvalue required as unary '&' operand
   i++;k++;
           ^
0_0_20957354_14397.cpp:31:23: error: lvalue required as unary '&' operand
   i++;k++;
                       ^
0_0_20957354_14397.cpp:37:12: error: expected primary-expression before '=' token
   ans += a[j]*( j - k );
            ^
0_0_20957354_14397.cpp:38:11: error: lvalue required as unary '&' operand
   j++;k++;
           ^
0_0_20957354_14397.cpp:38:23: error: lvalue required as unary '&' operand
   j++;k++;
                       ^
0_0_20957354_14397.cpp:41:21: error: expected ')' before ';' token
  for( i=ld;i<k;i++ )
                     ^
0_0_20957354_14397.cpp:41:24: error: lvalue required as unary '&' operand
  for( i=ld;i<k;i++ )
                        ^
0_0_20957354_14397.cpp:41:28: error: expected primary-expression before ')' token
  for( i=ld;i<k;i++ )
                            ^
0_0_20957354_14397.cpp: In function 'void MergeSort(int, int)':
0_0_20957354_14397.cpp:48:22: error: expected ')' before ';' token
   int mid = ( ld + ed )/2;
                      ^
0_0_20957354_14397.cpp:48:27: error: expected ';' before ')' token
   int mid = ( ld + ed )/2;
                           ^
0_0_20957354_14397.cpp:50:21: error: expected ')' before ';' token
   MergeSort( mid+1,ed );
                     ^
0_0_20957354_14397.cpp:50:27: error: expected ';' before ')' token
   MergeSort( mid+1,ed );
                           ^
0_0_20957354_14397.cpp: In function 'int main()':
0_0_20957354_14397.cpp:60:22: error: expected ')' before ';' token
   for( i=1;i<=n;i++ )
                      ^
0_0_20957354_14397.cpp:60:25: error: lvalue required as unary '&' operand
   for( i=1;i<=n;i++ )
                         ^
0_0_20957354_14397.cpp:60:29: 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 07:09:28, Gzip enabled