Run id: 65590
Main.cc: In function 'int main()':
Main.cc:4:15: error: redeclaration of 'int y2'
int x1,x2,y2,y2;
^
Main.cc:4:12: note: 'int y2' previously declared here
int x1,x2,y2,y2;
^
Main.cc:6:34: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'double (*)(double) throw ()' [-Wformat=]
scanf("%d%d%d%d",&x1,&x2,&y1,&y2);
^
Main.cc:11:2: error: expected ';' before '}' token
}
^
Main.cc:12:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(y1>y2){
^
Main.cc:13:8: warning: pointer to a function used in arithmetic [-Wpointer-arith]
z=y1-y2;
^
Main.cc:13:7: error: invalid conversion from 'double (*)(double) throw ()' to 'int' [-fpermissive]
z=y1-y2;
^
Main.cc:15:8: error: invalid operands of types 'int' and 'double(double) throw ()' to binary 'operator-'
z=y2-y1;
^
Main.cc:6:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&x1,&x2,&y1,&y2);
^