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_30638665_1209.cpp:38:28: error: stray '#' in program
  if (L <= m) update(L, R,  lson);
                            ^
0_0_30638665_1209.cpp:39:27: error: stray '#' in program
  if (m < R) update(L, R,  rson);
                           ^
0_0_30638665_1209.cpp: In function 'void update(int, int, int, int, int)':
0_0_30638665_1209.cpp:10:12: error: expected primary-expression before 'long'
 #define LL long long
            ^
0_0_30638665_1209.cpp:32:14: note: in expansion of macro 'LL'
   sum[rt] = (LL(sqrt(sum[rt])));//¿ÓµãÈý
              ^
0_0_30638665_1209.cpp:10:12: error: expected ')' before 'long'
 #define LL long long
            ^
0_0_30638665_1209.cpp:32:14: note: in expansion of macro 'LL'
   sum[rt] = (LL(sqrt(sum[rt])));//¿ÓµãÈý
              ^
0_0_30638665_1209.cpp:38:29: error: lvalue required as unary '&' operand
  if (L <= m) update(L, R,  lson);
                             ^
0_0_30638665_1209.cpp:38:37: error: expected ';' before ')' token
  if (L <= m) update(L, R,  lson);
                                     ^
0_0_30638665_1209.cpp:39:28: error: lvalue required as unary '&' operand
  if (m < R) update(L, R,  rson);
                            ^
0_0_30638665_1209.cpp:39:36: error: expected ';' before ')' token
  if (m < R) update(L, R,  rson);
                                    ^


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-22 22:31:31, Gzip enabled