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_38419192_19886.cpp: In function 'void init()':
0_0_38419192_19886.cpp:7:27: error: 'memset' was not declared in this scope
     memset(f, 0, sizeof(f));
                           ^
0_0_38419192_19886.cpp:8:5: error: 'dp' was not declared in this scope
     dp[0] = 1;
     ^
0_0_38419192_19886.cpp:12:18: error: invalid operands of types 'int' and 'double' to binary 'operator%'
             f[i] %= MOD;
                  ^
0_0_38419192_19886.cpp:12:18: error:   in evaluation of 'operator%=(int, double)'
0_0_38419192_19886.cpp:2:13: error: invalid operands of types 'double' and 'double' to binary 'operator%'
 #define MOD 1e9+7
             ^
0_0_38419192_19886.cpp:13:35: note: in expansion of macro 'MOD'
             f[i] = (f[i] + MOD) % MOD;
                                   ^
0_0_38419192_19886.cpp:16:22: error: invalid operands of types 'int' and 'double' to binary 'operator%'
                 f[i] %= MOD;
                      ^
0_0_38419192_19886.cpp:16:22: error:   in evaluation of 'operator%=(int, double)'
0_0_38419192_19886.cpp:2:13: error: invalid operands of types 'double' and 'double' to binary 'operator%'
 #define MOD 1e9+7
             ^
0_0_38419192_19886.cpp:17:39: note: in expansion of macro 'MOD'
                 f[i] = (f[i] + MOD) % 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-29 08:42:39, Gzip enabled