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_39076803_8805.cpp: In function 'double getMaxBeans(int, std::vector<int>&, std::vector<int>&)':
0_0_39076803_8805.cpp:11:13: error: 'canGetBeans' was not declared in this scope
   11 |         if (canGetBeans(M, beans, food, mid)) {
      |             ^~~~~~~~~~~
0_0_39076803_8805.cpp: In function 'int main()':
0_0_39076803_8805.cpp:35:26: error: 'setprecision' was not declared in this scope
   35 |         cout << fixed << setprecision(3) << getMaxBeans(M, beans, food) << endl;
      |                          ^~~~~~~~~~~~
0_0_39076803_8805.cpp:4:1: note: 'std::setprecision' is defined in header '<iomanip>'; did you forget to '#include <iomanip>'?
    3 | #include <cmath>
  +++ |+#include <iomanip>
    4 | 


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-25 07:04:28, Gzip enabled