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_23798576_25442.cpp:6:12: error: expected unqualified-id before ')' token
 struct fun(){
            ^
0_0_23798576_25442.cpp:9:2: error: 'f' does not name a type
 }f[105];
  ^
0_0_23798576_25442.cpp: In function 'bool cmp(fun, fun)':
0_0_23798576_25442.cpp:10:14: error: 'a' has incomplete type
 bool cmp(fun a,fun b){
              ^
0_0_23798576_25442.cpp:6:8: error: forward declaration of 'struct fun'
 struct fun(){
        ^
0_0_23798576_25442.cpp:10:20: error: 'b' has incomplete type
 bool cmp(fun a,fun b){
                    ^
0_0_23798576_25442.cpp:6:8: error: forward declaration of 'struct fun'
 struct fun(){
        ^
0_0_23798576_25442.cpp: In function 'int main()':
0_0_23798576_25442.cpp:20:29: error: 'f' was not declared in this scope
             scanf("%d %lf",&f[i].x,&f[i].y);
                             ^
0_0_23798576_25442.cpp:21:14: error: 'f' was not declared in this scope
         sort(f,f+b,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-27 12:24:05, Gzip enabled