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_28641692_8872.cpp:1:1: error: expected unqualified-id before 'for'
 for(int j=2;j<=k;j++)
 ^
0_0_28641692_8872.cpp:1:13: error: 'j' does not name a type
 for(int j=2;j<=k;j++)
             ^
0_0_28641692_8872.cpp:1:18: error: 'j' does not name a type
 for(int j=2;j<=k;j++)
                  ^
0_0_28641692_8872.cpp:3:13: error: expected unqualified-id before 'for'
             for(int j=k+1;j<=i;j++)
             ^
0_0_28641692_8872.cpp:3:27: error: 'j' does not name a type
             for(int j=k+1;j<=i;j++)
                           ^
0_0_28641692_8872.cpp:3:32: error: 'j' does not name a type
             for(int j=k+1;j<=i;j++)
                                ^
0_0_28641692_8872.cpp:5:24: error: 'c' was not declared in this scope
             double tmp=c[1]*pp[i-1];
                        ^
0_0_28641692_8872.cpp:5:29: error: 'pp' was not declared in this scope
             double tmp=c[1]*pp[i-1];
                             ^
0_0_28641692_8872.cpp:5:32: error: 'i' was not declared in this scope
             double tmp=c[1]*pp[i-1];
                                ^
0_0_28641692_8872.cpp:6:13: error: expected unqualified-id before 'for'
             for(int j=2;j<=k;j++)
             ^
0_0_28641692_8872.cpp:6:25: error: 'j' does not name a type
             for(int j=2;j<=k;j++)
                         ^
0_0_28641692_8872.cpp:6:30: error: 'j' does not name a type
             for(int j=2;j<=k;j++)
                              ^
0_0_28641692_8872.cpp:8:13: error: expected unqualified-id before 'for'
             for(int j=k+1;j<=i;j++)
             ^
0_0_28641692_8872.cpp:8:27: error: 'j' does not name a type
             for(int j=k+1;j<=i;j++)
                           ^
0_0_28641692_8872.cpp:8:32: error: 'j' does not name a type
             for(int j=k+1;j<=i;j++)
                                ^
0_0_28641692_8872.cpp:10:14: error: 'dp' does not name a type
              dp[i][i]=tmp/(1-pp[i]);
              ^
0_0_28641692_8872.cpp:11:14: error: 'dp' does not name a type
              dp[i][1]=p*dp[i][i]+c[1];
              ^
0_0_28641692_8872.cpp:12:14: error: expected unqualified-id before 'for'
              for(int j=2;j<i;j++)
              ^
0_0_28641692_8872.cpp:12:26: error: 'j' does not name a type
              for(int j=2;j<i;j++)
                          ^
0_0_28641692_8872.cpp:12:30: error: 'j' does not name a type
              for(int j=2;j<i;j++)
                              ^


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-23 04:25:31, Gzip enabled