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_18712448_30649.cpp: In function 'int main()':
0_0_18712448_30649.cpp:5:2: error: 'cin' was not declared in this scope
  cin>>a>>b>>c>>d;
  ^
0_0_18712448_30649.cpp:6:32: error: 'sqrt' was not declared in this scope
  e=sqrt((a-c)*(a-c)+(b-d)*(b-d));
                                ^
0_0_18712448_30649.cpp:7:2: error: 'cout' was not declared in this scope
  cout<<setiosflags(ios::fixed)<<setprecision(2);
  ^
0_0_18712448_30649.cpp:7:20: error: 'ios' has not been declared
  cout<<setiosflags(ios::fixed)<<setprecision(2);
                    ^
0_0_18712448_30649.cpp:7:30: error: 'setiosflags' was not declared in this scope
  cout<<setiosflags(ios::fixed)<<setprecision(2);
                              ^
0_0_18712448_30649.cpp:7:47: error: 'setprecision' was not declared in this scope
  cout<<setiosflags(ios::fixed)<<setprecision(2);
                                               ^
0_0_18712448_30649.cpp:8:11: error: 'endl' was not declared in this scope
  cout<<e<<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-07-07 17:30:33, Gzip enabled