horses.cpp: In constructor 'node::node(double, long long int)':
horses.cpp:20:32: warning: declaration of 'sum' shadows a member of 'node' [-Wshadow]
node(double log, long sum) : log(log), sum(sum) { }
^
horses.cpp:18:10: note: shadowed declaration is here
long sum;
^~~
horses.cpp:20:32: warning: declaration of 'log' shadows a member of 'node' [-Wshadow]
node(double log, long sum) : log(log), sum(sum) { }
^
horses.cpp:17:12: note: shadowed declaration is here
double log;
^~~
horses.cpp: In function 'void update(int, int, node, int, int, int)':
horses.cpp:50:38: warning: declaration of 'y' shadows a global declaration [-Wshadow]
void update(int x, int y, node k, var) {
^
horses.cpp:32:14: note: shadowed declaration is here
int n, x[N], y[N];
^
horses.cpp:50:38: warning: declaration of 'x' shadows a global declaration [-Wshadow]
void update(int x, int y, node k, var) {
^
horses.cpp:32:8: note: shadowed declaration is here
int n, x[N], y[N];
^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:62:33: warning: declaration of 'N' shadows a global declaration [-Wshadow]
int init(int N, int X[], int Y[]) {
^
horses.cpp:8:11: note: shadowed declaration is here
const int N = 1<<19;
^
horses.cpp:71:17: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
return t[1].sum;
~~~~~^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:88:17: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
return t[1].sum;
~~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:96:17: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
return t[1].sum;
~~~~~^~~