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_39368889_12918.cpp: In function 'int main()':
0_0_39368889_12918.cpp:26:17: error: 'setiosflags' was not declared in this scope
   26 |         cout << setiosflags(ios::fixed) << setprecision(1) << (1-dp[n])*100 << "%" << endl;
      |                 ^~~~~~~~~~~
0_0_39368889_12918.cpp:3:1: note: 'std::setiosflags' is defined in header '<iomanip>'; did you forget to '#include <iomanip>'?
    2 | #include<iostream>
  +++ |+#include <iomanip>
    3 | using namespace std;
0_0_39368889_12918.cpp:26:44: error: 'setprecision' was not declared in this scope
   26 |         cout << setiosflags(ios::fixed) << setprecision(1) << (1-dp[n])*100 << "%" << endl;
      |                                            ^~~~~~~~~~~~
0_0_39368889_12918.cpp:26:44: note: 'std::setprecision' is defined in header '<iomanip>'; did you forget to '#include <iomanip>'?


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-06-30 18:42:36, Gzip enabled