记录详情

Compile Error

foo.cc:13:5: error: '__int64' does not name a type; did you mean '__int64_t'?
   13 |     __int64 x,y;
      |     ^~~~~~~
      |     __int64_t
foo.cc:16:1: error: '__int64' does not name a type; did you mean '__int64_t'?
   16 | __int64 x[M],y[M],sumx[M],sumy[M];
      | ^~~~~~~
      | __int64_t
foo.cc:21:11: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
   21 | int finde(__int64 *a,__int64 key)
      |           ^~~~~~~
      |           __ynf64
foo.cc:21:20: error: 'a' was not declared in this scope
   21 | int finde(__int64 *a,__int64 key)
      |                    ^
foo.cc:21:22: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
   21 | int finde(__int64 *a,__int64 key)
      |                      ^~~~~~~
      |                      __ynf64
foo.cc:21:33: error: expression list treated as compound expression in initializer [-fpermissive]
   21 | int finde(__int64 *a,__int64 key)
      |                                 ^
foo.cc: In function 'int main()':
foo.cc:45:38: error: 'struct node' has no member named 'x'
   45 |             scanf("%I64d%I64d",&p[i].x,&p[i].y);
      |                                      ^
foo.cc:45:46: error: 'struct node' has no member named 'y'
   45 |             scanf("%I64d%I64d",&p[i].x,&p[i].y);
      |                                              ^
foo.cc:46:13: error: 'x' was not declared in this scope
   46 |             x[i]=p[i].x;
      |             ^
foo.cc:46:23: error: 'struct node' has no member named 'x'
   46 |             x[i]=p[i].x;
      |                       ^
foo.cc:47:13: error: 'y' was not declared in this scope
   47 |             y[i]=p[i].y;
      |             ^
foo.cc:47:23: error: 'struct node' has no member named 'y'
   47 |             y[i]=p[i].y;
      |                       ^
foo.cc:49:14: error: 'x' was not declared in this scope
   49 |         sort(x+1,x+n+1,cmp);
      |              ^
foo.cc:50:14: error: 'y' was not declared in this scope
   50 |         sort(y+1,y+n+1,cmp);
      |              ^
foo.cc:51:9: error: 'sumx' was not declared in this scope
   51 |         sumx[0]=sumy[0]=0;
      |         ^~~~
foo.cc:51:17: error: 'sumy' was not declared in this scope
   51 |         sumx[0]=sumy[0]=0;
      |                 ^~~~
foo.cc:57:9: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
   57 |         __int64 ans=inf;
      |         ^~~~~~~
      |         __ynf64
foo.cc:60:33: error: 'struct node' has no member named 'x'
   60 |             int dx=finde(x,p[i].x);
      |                                 ^
foo.cc:60:34: error: 'finde' cannot be used as a function
   60 |             int dx=finde(x,p[i].x);
      |                                  ^
foo.cc:61:33: error: 'struct node' has no member named 'y'
   61 |             int dy=finde(y,p[i].y);
      |                                 ^
foo.cc:61:34: error: 'finde' cannot be used as a function
   61 |             int dy=finde(y,p[i].y);
      |                                  ^
foo.cc:62:20: error: expected ';' before 'sx'
   62 |             __int64 sx=x[dx]*dx-sumx[dx]+sumx[n]-sumx[dx]-(n-dx)*x[dx];
      |                    ^~~
      |                    ;
foo.cc:63:20: error: expected ';' before 'sy'
   63 |             __int64 sy=y[dy]*dy-sumy[dy]+sumy[n]-sumy[dy]-(n-dy)*y[dy];
      |                    ^~~
      |                    ;
foo.cc:64:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
   64 |             if(ans>sx+sy)
      |                ^~~
      |                abs
foo.cc:64:20: error: 'sx' was not declared in this scope; did you mean 'dx'?
   64 |             if(ans>sx+sy)
      |                    ^~
      |                    dx
foo.cc:64:23: error: 'sy' was not declared in this scope; did you mean 'dy'?
   64 |             if(ans>sx+sy)
      |                       ^~
      |                       dy
foo.cc:60:17: warning: unused variable 'dx' [-Wunused-variable]
   60 |             int dx=finde(x,p[i].x);
      |                 ^~
foo.cc:61:17: warning: unused variable 'dy' [-Wunused-variable]
   61 |             int dy=finde(y,p[i].y);
      |                 ^~
foo.cc:67:26: error: 'ans' was not declared in this scope; did you mean 'abs'?
   67 |         printf("%I64d\n",ans);
      |                          ^~~
      |                          abs
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1389 Problem 1A. 中秋月饼
比赛
悬赏令第一周
语言
C++
递交时间
2022-09-29 18:15:38
评测时间
2022-09-29 18:15:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes