Run id: 65588
Main.cc: In function 'int main()':
Main.cc:6:9: error: redeclaration of 'int a'
int a=0,b=0;
^
Main.cc:5:9: note: 'int a' previously declared here
int a,b,c,d;
^
Main.cc:6:13: error: redeclaration of 'int b'
int a=0,b=0;
^
Main.cc:5:11: note: 'int b' previously declared here
int a,b,c,d;
^
Main.cc:9:6: error: 'n' was not declared in this scope
n=a-b;
^
Main.cc:11:3: error: 'n' was not declared in this scope
n=b-a;
^
Main.cc:14:3: error: 'z' was not declared in this scope
z=c-d;
^
Main.cc:16:3: error: 'z' was not declared in this scope
z=d-c;
^
Main.cc:18:5: error: 'n' was not declared in this scope
if(n>z){
^
Main.cc:18:7: error: 'z' was not declared in this scope
if(n>z){
^
Main.cc:7:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&a,&b,&c,&d);
^