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_32312588_24481.cpp: In function 'int main()':
0_0_32312588_24481.cpp:36:4: error: 'to' was not declared in this scope
    to[a]=b;
    ^
0_0_32312588_24481.cpp:38:17: error: 'to' was not declared in this scope
   mem(dp,0);mem(to,-1);
                 ^
0_0_32312588_24481.cpp:10:26: note: in definition of macro 'mem'
 #define mem(a,x) memset((a),(x),sizeof(a))
                          ^
0_0_32312588_24481.cpp:41:32: error: invalid operands of types 'double [100005]' and 'double' to binary 'operator/'
     REP (j,1,6) dp[i]+=dp[i+j]/6.0;
                                ^
0_0_32312588_24481.cpp:42:10: error: incompatible types in assignment of 'int' to 'double [100005]'
     dp[i]+=1;
          ^


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-17 06:38:12, Gzip enabled