USACO 2019 US Open Contest, Silver Problem 3. Fence Planning

when I declare x1,y1,x2,y2 in global I get some compiler error from USACO but the program works just fine in my pc.I don’t know whats the problem can anyone tell me ?