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_13152218_24947.cpp: In function 'int main()':
0_0_13152218_24947.cpp:7:2: error: '_int64' was not declared in this scope
  _int64 n, k, a[100000], num;
  ^
0_0_13152218_24947.cpp:12:24: error: 'n' was not declared in this scope
   scanf("%I64d%I64d", &n, &k);
                        ^
0_0_13152218_24947.cpp:12:28: error: 'k' was not declared in this scope
   scanf("%I64d%I64d", &n, &k);
                            ^
0_0_13152218_24947.cpp:15:20: error: 'a' was not declared in this scope
    scanf("%I64d", &a[i]);
                    ^
0_0_13152218_24947.cpp:17:9: error: 'a' was not declared in this scope
   qsort(a, n, sizeof(_int64), cmp);
         ^
0_0_13152218_24947.cpp:18:13: error: 'num' was not declared in this scope
   for (i=0, num=0, j=0; i<n; i++)
             ^
0_0_13152218_24947.cpp:23:18: error: 'num' was not declared in this scope
   printf("%d\n", num);
                  ^
0_0_13152218_24947.cpp: In function 'int cmp(const void*, const void*)':
0_0_13152218_24947.cpp:30:11: error: '_int64' was not declared in this scope
  return ((_int64*)a-(_int64*)b);
           ^
0_0_13152218_24947.cpp:30:18: error: expected primary-expression before ')' token
  return ((_int64*)a-(_int64*)b);
                  ^
0_0_13152218_24947.cpp:30:19: error: expected ')' before 'a'
  return ((_int64*)a-(_int64*)b);
                   ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-02 09:06:30, Gzip enabled