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_19932567_29053.cpp:12:1: error: expected ',' or ';' before 'struct'
 struct Point {
 ^
0_0_19932567_29053.cpp:14:3: error: 'p' does not name a type
 } p[N], ori[N];
   ^
0_0_19932567_29053.cpp:17:10: error: 'Point' was not declared in this scope
 bool cmp(Point a, Point b) {
          ^
0_0_19932567_29053.cpp:17:19: error: 'Point' was not declared in this scope
 bool cmp(Point a, Point b) {
                   ^
0_0_19932567_29053.cpp:17:26: error: expression list treated as compound expression in initializer [-fpermissive]
 bool cmp(Point a, Point b) {
                          ^
0_0_19932567_29053.cpp:17:28: error: expected ',' or ';' before '{' token
 bool cmp(Point a, Point b) {
                            ^
0_0_19932567_29053.cpp: In function 'void build(int, int, int)':
0_0_19932567_29053.cpp:28:17: error: 'p' was not declared in this scope
     nth_element(p + l, p + m, p + r + 1, cmp);
                 ^
0_0_19932567_29053.cpp: At global scope:
0_0_19932567_29053.cpp:36:9: error: 'Point' was not declared in this scope
 LL dist(Point x, Point y) {
         ^
0_0_19932567_29053.cpp:36:18: error: 'Point' was not declared in this scope
 LL dist(Point x, Point y) {
                  ^
0_0_19932567_29053.cpp:36:25: error: expression list treated as compound expression in initializer [-fpermissive]
 LL dist(Point x, Point y) {
                         ^
0_0_19932567_29053.cpp:36:27: error: expected ',' or ';' before '{' token
 LL dist(Point x, Point y) {
                           ^


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