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_36176657_10687.cpp:6:1: error: expected initializer before 'struct'
 struct node{
 ^
0_0_36176657_10687.cpp:10:2: error: 'a' does not name a type
 }a[maxn+2];
  ^
0_0_36176657_10687.cpp: In function 'int main()':
0_0_36176657_10687.cpp:20:4: error: 'a' was not declared in this scope
    a[i].p=l/r;
    ^
0_0_36176657_10687.cpp:25:4: error: 'dp' was not declared in this scope
    dp[i]=0;
    ^
0_0_36176657_10687.cpp:27:13: error: 'a' was not declared in this scope
    double p=a[i].p;
             ^
0_0_36176657_10687.cpp:30:29: error: 'dp' was not declared in this scope
    long long tmp=(1.0-p)/p*(dp[i-1]-dp[x]+v);
                             ^
0_0_36176657_10687.cpp:36:11: error: 'dp' was not declared in this scope
    cout<<(dp[b]-dp[a])%mod<<endl;
           ^


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-12-18 12:14:47, Gzip enabled