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_37024401_15116.cpp: In function 'void solve()':
0_0_37024401_15116.cpp:5:5: error: 'db' was not declared in this scope
     db n, m; int k;
     ^
0_0_37024401_15116.cpp:6:5: error: 'cin' was not declared in this scope
     cin >> n >> m >> k;
     ^
0_0_37024401_15116.cpp:6:12: error: 'n' was not declared in this scope
     cin >> n >> m >> k;
            ^
0_0_37024401_15116.cpp:6:17: error: 'm' was not declared in this scope
     cin >> n >> m >> k;
                 ^
0_0_37024401_15116.cpp:7:8: error: expected ';' before 'ans'
     db ans = 0.0;
        ^
0_0_37024401_15116.cpp:10:16: error: expected ';' before 'p'
             db p = 0.0;
                ^
0_0_37024401_15116.cpp:11:13: error: 'p' was not declared in this scope
             p += (i-1)*(j-1) * (n-i+1)*(m-j+1); // 1 ╨мсроб
             ^
0_0_37024401_15116.cpp:21:13: error: 'ans' was not declared in this scope
             ans += 1 - pow(1-p, k);
             ^
0_0_37024401_15116.cpp:21:34: error: 'pow' was not declared in this scope
             ans += 1 - pow(1-p, k);
                                  ^
0_0_37024401_15116.cpp:24:5: error: 'cout' was not declared in this scope
     cout << int(ans+0.5) << endl;
     ^
0_0_37024401_15116.cpp:24:17: error: 'ans' was not declared in this scope
     cout << int(ans+0.5) << endl;
                 ^
0_0_37024401_15116.cpp:24:29: error: 'endl' was not declared in this scope
     cout << int(ans+0.5) << 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-11-27 18:06:50, Gzip enabled