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_37592731_28358.cpp: In member function 'void KD_tree::queery(int, int, node)':
0_0_37592731_28358.cpp:43:14: error: expected primary-expression before 'long'
    ans += sq(long long(p.x[i] - kd[root].x[i]));
              ^
0_0_37592731_28358.cpp:5:16: note: in definition of macro 'sq'
 #define sq(x) (x)*(x);
                ^
0_0_37592731_28358.cpp:43:14: error: expected ')' before 'long'
    ans += sq(long long(p.x[i] - kd[root].x[i]));
              ^
0_0_37592731_28358.cpp:5:16: note: in definition of macro 'sq'
 #define sq(x) (x)*(x);
                ^
0_0_37592731_28358.cpp:49:16: error: expected primary-expression before 'long'
   int len = sq(long long(p.x[dim] - kd[root].x[dim]));
                ^
0_0_37592731_28358.cpp:5:16: note: in definition of macro 'sq'
 #define sq(x) (x)*(x);
                ^
0_0_37592731_28358.cpp:49:16: error: expected ')' before 'long'
   int len = sq(long long(p.x[dim] - kd[root].x[dim]));
                ^
0_0_37592731_28358.cpp:5:16: note: in definition of macro 'sq'
 #define sq(x) (x)*(x);
                ^


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-29 05:05:21, Gzip enabled