fangorn.cpp:5:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning (disable: 4996)
fangorn.cpp: In function 'bool operator<(const Point&, const Point&)':
fangorn.cpp:17:18: error: binding reference of type 'Point&' to 'const Point' discards qualifiers
int v1 = shogen(a1), v2 = shogen(a2);
^~
fangorn.cpp:11:5: note: initializing argument 1 of 'int shogen(Point&)'
int shogen(Point &p1) {
^~~~~~
fangorn.cpp:18:11: error: 'v2' was not declared in this scope
if (v1 < v2) return true;
^~
fangorn.cpp:18:11: note: suggested alternative: 'v1'
if (v1 < v2) return true;
^~
v1
fangorn.cpp:19:11: error: 'v2' was not declared in this scope
if (v1 > v2) return false;
^~
fangorn.cpp:19:11: note: suggested alternative: 'v1'
if (v1 > v2) return false;
^~
v1
fangorn.cpp: In function 'bool solve(long long int, long long int, int)':
fangorn.cpp:30:62: warning: narrowing conversion of '(cx - ((long long int)G[i].Point::px))' from 'long long int' to 'int' inside { } [-Wnarrowing]
int pos1 = lower_bound(V[i].begin(), V[i].end(), Point{ cx - G[i].px, cy - G[i].py }) - V[i].begin();
~~~^~~~~~~~~
fangorn.cpp:30:76: warning: narrowing conversion of '(cy - ((long long int)G[i].Point::py))' from 'long long int' to 'int' inside { } [-Wnarrowing]
int pos1 = lower_bound(V[i].begin(), V[i].end(), Point{ cx - G[i].px, cy - G[i].py }) - V[i].begin();
~~~^~~~~~~~~
fangorn.cpp: In function 'int main()':
fangorn.cpp:60:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < res.size(); i++) { if (i) printf(" "); printf("%d", res[i]); }
~~^~~~~~~~~~~~
fangorn.cpp:40:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d%d", &H, &W, &sx, &sy, &C);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fangorn.cpp:41:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (int i = 1; i <= C; i++) scanf("%d%d", &ex[i], &ey[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
fangorn.cpp:42:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
~~~~~^~~~~~~~~~
fangorn.cpp:43:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (int i = 1; i <= N; i++) scanf("%d%d", &G[i].px, &G[i].py);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~