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_39395676_2861.cpp: In function 'int main()':
0_0_39395676_2861.cpp:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> x1 >> y1 >> x2 >> y2;
      |         ^~~
0_0_39395676_2861.cpp:7:9: error: 'cout' was not declared in this scope
    7 |         cout << sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)) << endl;
      |         ^~~~
0_0_39395676_2861.cpp:7:22: error: 'pow' was not declared in this scope
    7 |         cout << sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)) << endl;
      |                      ^~~
0_0_39395676_2861.cpp:7:17: error: 'sqrt' was not declared in this scope
    7 |         cout << sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)) << endl;
      |                 ^~~~
0_0_39395676_2861.cpp:7:60: error: 'endl' was not declared in this scope
    7 |         cout << sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)) << 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-01 15:21:37, Gzip enabled