0_0_29104648_16811.cpp: In function 'int main()': 0_0_29104648_16811.cpp:85:31: error: 'y1' was not declared in this scope scanf("%d%d%d%d",&x1,&y1,&x2,&y2); ^