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_29973417_31127.cpp: In function 'int main()':
0_0_29973417_31127.cpp:9:2: error: 'cin' was not declared in this scope
  cin>>p;
  ^
0_0_29973417_31127.cpp:40:2: error: 'cout' was not declared in this scope
  cout<<setiosflags(ios::fixed)<<setprecision(3)<<sqrt(h)<<endl;//小数位精度需要iomanip 
  ^
0_0_29973417_31127.cpp:40:20: error: incomplete type 'std::ios {aka std::basic_ios<char>}' used in nested name specifier
  cout<<setiosflags(ios::fixed)<<setprecision(3)<<sqrt(h)<<endl;//小数位精度需要iomanip 
                    ^
0_0_29973417_31127.cpp:40:59: error: 'endl' was not declared in this scope
  cout<<setiosflags(ios::fixed)<<setprecision(3)<<sqrt(h)<<endl;//小数位精度需要iomanip 
                                                           ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-12 08:46:43, Gzip enabled