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_22835560_13551.cpp:10:19: error: expected unqualified-id before numeric constant
 #define long long 0x3f3f3f3f3f3f3f
                   ^
0_0_22835560_13551.cpp:12:1: note: in expansion of macro 'long'
 long long a[N],y[N],b[N];
 ^
0_0_22835560_13551.cpp:10:19: error: expected ',' or '...' before numeric constant
 #define long long 0x3f3f3f3f3f3f3f
                   ^
0_0_22835560_13551.cpp:13:12: note: in expansion of macro 'long'
 void sushu(long long &cnt,long long sum)
            ^
0_0_22835560_13551.cpp: In function 'void sushu(long int)':
0_0_22835560_13551.cpp:15:5: error: 'cnt' was not declared in this scope
     cnt=0;
     ^
0_0_22835560_13551.cpp:10:19: error: expected unqualified-id before numeric constant
 #define long long 0x3f3f3f3f3f3f3f
                   ^
0_0_22835560_13551.cpp:16:9: note: in expansion of macro 'long'
     for(long long i=2;i*i<=sum;i++)
         ^
0_0_22835560_13551.cpp:10:19: error: expected ';' before numeric constant
 #define long long 0x3f3f3f3f3f3f3f
                   ^
0_0_22835560_13551.cpp:16:9: note: in expansion of macro 'long'
     for(long long i=2;i*i<=sum;i++)
         ^
0_0_22835560_13551.cpp:10:14: error: expected ';' before 'long'
 #define long long 0x3f3f3f3f3f3f3f
              ^
0_0_22835560_13551.cpp:16:14: note: in expansion of macro 'long'
     for(long long i=2;i*i<=sum;i++)
              ^
0_0_22835560_13551.cpp:10:14: error: expected primary-expression before 'long'
 #define long long 0x3f3f3f3f3f3f3f
              ^
0_0_22835560_13551.cpp:16:14: note: in expansion of macro 'long'
     for(long long i=2;i*i<=sum;i++)
              ^
0_0_22835560_13551.cpp:10:14: error: expected ')' before 'long'
 #define long long 0x3f3f3f3f3f3f3f
              ^
0_0_22835560_13551.cpp:16:14: note: in expansion of macro 'long'
     for(long long i=2;i*i<=sum;i++)
              ^
0_0_22835560_13551.cpp:10:19: error: expected unqualified-id before numeric constant
 #define long long 0x3f3f3f3f3f3f3f
                   ^
0_0_22835560_13551.cpp:16:14: note: in expansion of macro 'long'
     for(long long i=2;i*i<=sum;i++)
              ^
0_0_22835560_13551.cpp:16:23: error: 'i' was not declared in this scope
     for(long long i=2;i*i<=sum;i++)
                       ^
0_0_22835560_13551.cpp:16:28: error: 'sum' was not declared in this scope
     for(long long i=2;i*i<=sum;i++)
                            ^
0_0_22835560_13551.cpp:25:5: error: 'y' was not declared in this scope
     y[cnt++]=sum;
     ^
0_0_22835560_13551.cpp: In function 'int main()':
0_0_22835560_13551.cpp:10:19: error: expected unqualified-id before numeric constant
 #define long long 0x3f3f3f3f3f3f3f
                   ^
0_0_22835560_13551.cpp:33:5: note: in expansion of macro 'long'
     long long T,n,ans,min_ans,num,cnt,sum;
     ^
0_0_22835560_13551.cpp:34:19: error: 'T' was not declared in this scope
     scanf("%lld",&T);
                   ^
0_0_22835560_13551.cpp:38:9: error: 'sum' was not declared in this scope
         sum=0;
         ^
0_0_22835560_13551.cpp:41:23: error: 'n' was not declared in this scope
         scanf("%lld",&n);
                       ^
0_0_22835560_13551.cpp:42:9: error: 'min_ans' was not declared in this scope
         min_ans=inf;
         ^
0_0_22835560_13551.cpp:42:17: error: 'inf' was not declared in this scope
         min_ans=inf;
                 ^
0_0_22835560_13551.cpp:45:27: error: 'a' was not declared in this scope
             scanf("%lld",&a[i]);
                           ^
0_0_22835560_13551.cpp:49:15: error: 'cnt' was not declared in this scope
         sushu(cnt,sum);
               ^
0_0_22835560_13551.cpp:52:13: error: 'num' was not declared in this scope
             num=0;
             ^
0_0_22835560_13551.cpp:55:17: error: 'b' was not declared in this scope
                 b[i]=a[i]%y[j];
                 ^
0_0_22835560_13551.cpp:55:22: error: 'a' was not declared in this scope
                 b[i]=a[i]%y[j];
                      ^
0_0_22835560_13551.cpp:55:27: error: 'y' was not declared in this scope
                 b[i]=a[i]%y[j];
                           ^
0_0_22835560_13551.cpp:58:18: error: 'b' was not declared in this scope
             sort(b,b+n,cmp);
                  ^
0_0_22835560_13551.cpp:59:13: error: 'ans' was not declared in this scope
             ans=0;
             ^
0_0_22835560_13551.cpp:62:23: error: 'y' was not declared in this scope
                 ans+=(y[j]-b[i]);
                       ^


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-11-15 20:34:26, Gzip enabled