Problem landmarks
User blackscreen1
Submission Time 2026-08-03 11:59:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

landmarks.cpp:12:13: error: ‘int y1’ redeclared as different kind of entity
12 | int x1, x2, y1, y2;
| ^~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from landmarks.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:221:1: note: previous declaration ‘double y1(double)’
221 | __MATHCALL (y1,, (_Mdouble_));
| ^~~~~~~~~~
landmarks.cpp: In function ‘void dfs(int, int)’:
landmarks.cpp:19:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
19 | if (x < x1 || x > x2 || y < y1 || y > y2) return;
| ^~
landmarks.cpp: In function ‘b