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_17955765_24178.cpp: In function 'void zhsdabiao()':
0_0_17955765_24178.cpp:2:14: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod  1e6+3
              ^
0_0_17955765_24178.cpp:14:39: note: in expansion of macro 'mod'
       c[i][j]=(c[i-1][j-1]+c[i][j-1])%mod;
                                       ^
0_0_17955765_24178.cpp: In function 'int main()':
0_0_17955765_24178.cpp:35:27: error: 'memset' was not declared in this scope
       memset(a,0,sizeof(a));
                           ^
0_0_17955765_24178.cpp:2:14: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod  1e6+3
              ^
0_0_17955765_24178.cpp:47:48: note: in expansion of macro 'mod'
           ans[i]+=((c[a[j]][k]*c[n-a[j]][i-k])%mod*((1<<j))%mod);
                                                ^
0_0_17955765_24178.cpp:2:14: error: invalid operands of types 'int' and 'double' to binary 'operator%'
 #define mod  1e6+3
              ^
0_0_17955765_24178.cpp:47:61: note: in expansion of macro 'mod'
           ans[i]+=((c[a[j]][k]*c[n-a[j]][i-k])%mod*((1<<j))%mod);
                                                             ^
0_0_17955765_24178.cpp:48:17: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
           ans[i]%=mod;
                 ^
0_0_17955765_24178.cpp:48:17: error:   in evaluation of 'operator%=(long long int, double)'
0_0_17955765_24178.cpp:2:14: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod  1e6+3
              ^
0_0_17955765_24178.cpp:51:38: note: in expansion of macro 'mod'
         if(i==1)printf("%lld",ans[i]%mod);
                                      ^
0_0_17955765_24178.cpp:2:14: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod  1e6+3
              ^
0_0_17955765_24178.cpp:52:36: note: in expansion of macro 'mod'
         else printf(" %lld",ans[i]%mod);
                                    ^


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-29 18:01:29, Gzip enabled