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_23798562_8084.cpp:5:12: error: expected unqualified-id before ')' token
 struct fun(){
            ^
0_0_23798562_8084.cpp:8:2: error: 'f' does not name a type
 }f[105];
  ^
0_0_23798562_8084.cpp: In function 'bool cmp(fun, fun)':
0_0_23798562_8084.cpp:9:14: error: 'a' has incomplete type
 bool cmp(fun a,fun b){
              ^
0_0_23798562_8084.cpp:5:8: error: forward declaration of 'struct fun'
 struct fun(){
        ^
0_0_23798562_8084.cpp:9:20: error: 'b' has incomplete type
 bool cmp(fun a,fun b){
                    ^
0_0_23798562_8084.cpp:5:8: error: forward declaration of 'struct fun'
 struct fun(){
        ^
0_0_23798562_8084.cpp: In function 'int main()':
0_0_23798562_8084.cpp:19:28: error: 'f' was not declared in this scope
             scanf("%d %lf",f[i].x,f[i].y);
                            ^
0_0_23798562_8084.cpp:20:14: error: 'f' was not declared in this scope
         sort(f,f+b,cmp);
              ^
0_0_23798562_8084.cpp:20:23: error: 'sort' was not declared in this scope
         sort(f,f+b,cmp);
                       ^
0_0_23798562_8084.cpp:30:24: error: 'j' was not declared in this scope
                 sum-=f[j].x;
                        ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-17 16:02:40, Gzip enabled