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_22316905_10203.cpp:5:8: error: expected identifier before 'struct'
 struct struct{
        ^
0_0_22316905_10203.cpp:8:5: error: invalid type in declaration before ';' token
 }arr;
     ^
0_0_22316905_10203.cpp:8:5: error: two or more data types in declaration of 'arr'
0_0_22316905_10203.cpp:10:10: error: 'arr' was not declared in this scope
 bool cmp(arr a,arr b)
          ^
0_0_22316905_10203.cpp:10:16: error: 'arr' was not declared in this scope
 bool cmp(arr a,arr b)
                ^
0_0_22316905_10203.cpp:10:21: error: expression list treated as compound expression in initializer [-fpermissive]
 bool cmp(arr a,arr b)
                     ^
0_0_22316905_10203.cpp:11:1: error: expected ',' or ';' before '{' token
 {
 ^
0_0_22316905_10203.cpp: In function 'int main(int, char**)':
0_0_22316905_10203.cpp:19:2: error: 'arr' was not declared in this scope
  arr a[1000+5];
  ^
0_0_22316905_10203.cpp:26:20: error: 'a' was not declared in this scope
    scanf("%lf%lf",&a[i].x,&a[i].y);
                    ^
0_0_22316905_10203.cpp:28:9: error: 'a' was not declared in this scope
    sort(a,a+N,cmp);
         ^


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-26 06:45:28, Gzip enabled