0_0_39342708_3051.cpp: In function 'int main()':
0_0_39342708_3051.cpp:4:15: error: 'scanf' was not declared in this scope
4 | while(scanf("%d %d %d %d",&x1,&y1,&x2,&y2)!=EOF){
| ^~~~~
0_0_39342708_3051.cpp:4:53: error: 'EOF' was not declared in this scope
4 | while(scanf("%d %d %d %d",&x1,&y1,&x2,&y2)!=EOF){
| ^~~
0_0_39342708_3051.cpp:1:1: note: 'EOF' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | int main(){
0_0_39342708_3051.cpp:5:21: error: 'pow' was not declared in this scope
5 | sum=pow((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2),0.5);
| ^~~
0_0_39342708_3051.cpp:6:17: error: 'printf' was not declared in this scope
6 | printf("%.2lf\n",sum);
| ^~~~~~
0_0_39342708_3051.cpp:6:17: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
|