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_17953380_110.cpp: In function 'void work()':
0_0_17953380_110.cpp:20:70: error: invalid operands of types 'LL {aka long long int}' and 'double' to binary 'operator%'
      if(j >= a[i]) ( dp[sign][j][s1][s2] += dp[!sign][j-1][s1][s2] ) %= mod;
                                                                      ^
0_0_17953380_110.cpp:20:70: error:   in evaluation of 'operator%=(LL {aka long long int}, double)'
0_0_17953380_110.cpp:22:60: error: invalid operands of types 'LL {aka long long int}' and 'double' to binary 'operator%'
       (dp[sign][j][s1][s2] += dp[!sign][j-a[i]][s1-1][s2]) %= mod;
                                                            ^
0_0_17953380_110.cpp:22:60: error:   in evaluation of 'operator%=(LL {aka long long int}, double)'
0_0_17953380_110.cpp:24:55: error: invalid operands of types 'LL {aka long long int}' and 'double' to binary 'operator%'
       (dp[sign][j][s1][s2] += dp[!sign][j][s1][s2-1]) %= mod;   
                                                       ^
0_0_17953380_110.cpp:24:55: error:   in evaluation of 'operator%=(LL {aka long long int}, double)'
0_0_17953380_110.cpp:5:20: error: invalid operands of types 'LL {aka long long int}' and 'double' to binary 'operator%'
 #define mod  (1e9+7)
                    ^
0_0_17953380_110.cpp:30:32: note: in expansion of macro 'mod'
   (ans += dp[sign][i][2][2]) % mod; 
                                ^
0_0_17953380_110.cpp:5:20: error: invalid operands of types 'LL {aka long long int}' and 'double' to binary 'operator%'
 #define mod  (1e9+7)
                    ^
0_0_17953380_110.cpp:32:19: note: in expansion of macro 'mod'
  ans = (ans * 2 % mod) * 2 % 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-06-28 23:36:08, Gzip enabled