/ Vijos /

记录详情

Compile Error

/in/foo.cc:22:6: error: variable or field 'qsort' declared void
   22 | void qsort(__int64* l,__int64* r)
      |      ^~~~~
/in/foo.cc:22:12: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
   22 | void qsort(__int64* l,__int64* r)
      |            ^~~~~~~
      |            __int64_t
/in/foo.cc:22:21: error: 'l' was not declared in this scope
   22 | void qsort(__int64* l,__int64* r)
      |                     ^
/in/foo.cc:22:23: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
   22 | void qsort(__int64* l,__int64* r)
      |                       ^~~~~~~
      |                       __int64_t
/in/foo.cc:22:32: error: 'r' was not declared in this scope
   22 | void qsort(__int64* l,__int64* r)
      |                                ^
/in/foo.cc:45:8: error: '__int64' does not name a type; did you mean '__int64_t'?
   45 | inline __int64 abs(__int64 n)
      |        ^~~~~~~
      |        __int64_t
/in/foo.cc: In function 'int main()':
/in/foo.cc:53:5: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
   53 |     __int64 a[100000];
      |     ^~~~~~~
      |     __int64_t
/in/foo.cc:54:12: error: expected ';' before 'b'
   54 |     __int64 b[100000];
      |            ^~
      |            ;
/in/foo.cc:55:12: error: expected ';' before 'n'
   55 |     __int64 n,k;
      |            ^~
      |            ;
/in/foo.cc:56:25: error: 'n' was not declared in this scope
   56 |     scanf("%I64d%I64d",&n,&k);
      |                         ^
/in/foo.cc:56:28: error: 'k' was not declared in this scope
   56 |     scanf("%I64d%I64d",&n,&k);
      |                            ^
/in/foo.cc:58:24: error: 'a' was not declared in this scope
   58 |         scanf("%I64d",&a[i]);
      |                        ^
/in/foo.cc:60:24: error: 'b' was not declared in this scope
   60 |         scanf("%I64d",&b[i]);
      |                        ^
/in/foo.cc:61:12: error: 'a' was not declared in this scope
   61 |     qsort(&a[1],&a[n]);
      |            ^
/in/foo.cc:62:12: error: 'b' was not declared in this scope
   62 |     qsort(&b[1],&b[n]);
      |            ^
/in/foo.cc:63:12: error: expected ';' before 'total'
   63 |     __int64 total=0;
      |            ^~~~~~
      |            ;
/in/foo.cc:69:12: error: 'total' was not declared in this scope
   69 |            total+=abs(a[ao]-b[bc]);
      |            ^~~~~
/in/foo.cc:75:12: error: 'total' was not declared in this scope
   75 |            total+=abs(a[ac]-b[bo]);
      |            ^~~~~
/in/foo.cc:80:22: error: 'total' was not declared in this scope
   80 |     printf("%I64d\n",total);
      |                      ^~~~~

信息

递交者
类型
递交
题目
P1662 最大配对
语言
C++
递交时间
2025-06-29 14:37:17
评测时间
2025-06-29 14:37:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes