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