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;
^
|