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_37592733_18089.cpp: In member function 'void KD_tree::queery(long long int, long long int, node)':
0_0_37592733_18089.cpp:45:14: error: expected primary-expression before 'long'
    ans += sq(long long(p.x[i] - kd[root].x[i]));
              ^
0_0_37592733_18089.cpp:7:16: note: in definition of macro 'sq'
 #define sq(x) (x)*(x);
                ^
0_0_37592733_18089.cpp:45:14: error: expected ')' before 'long'
    ans += sq(long long(p.x[i] - kd[root].x[i]));
              ^
0_0_37592733_18089.cpp:7:16: note: in definition of macro 'sq'
 #define sq(x) (x)*(x);
                ^
0_0_37592733_18089.cpp:51:16: error: expected primary-expression before 'long'
   int len = sq(long long(p.x[dim] - kd[root].x[dim]));
                ^
0_0_37592733_18089.cpp:7:16: note: in definition of macro 'sq'
 #define sq(x) (x)*(x);
                ^
0_0_37592733_18089.cpp:51:16: error: expected ')' before 'long'
   int len = sq(long long(p.x[dim] - kd[root].x[dim]));
                ^
0_0_37592733_18089.cpp:7: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-25 12:29:03, Gzip enabled