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_38681724_17519.cpp: In function 'int main()':
0_0_38681724_17519.cpp:15:39: error: 'b' was not declared in this scope
   15 |                 for (int i=n-1;i;i--) b[i]+=1.0/i;
      |                                       ^
0_0_38681724_17519.cpp:17:49: error: 'b' was not declared in this scope
   17 |                         long double val=1.0*k/n*b[k];
      |                                                 ^


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-30 05:30:50, Gzip enabled