horses.cpp:1:32: warning: '-std=c++11' is not an option that controls warnings [-Wpragmas]
1 | #pragma GCC diagnostic warning "-std=c++11"
| ^~~~~~~~~~~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:29:14: warning: declaration of 'N' shadows a global declaration [-Wshadow]
29 | int init(int N, int X[], int Y[]) {
| ~~~~^
horses.cpp:13:11: note: shadowed declaration is here
13 | const int N=5e5+5;
| ^
horses.cpp:62:17: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
62 | int ARR=arr[idx];
| ~~~~~~~^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:70:22: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
70 | arr[i]*=power(x[pos],MOD-2); arr[i]%=MOD;
| ~~~~~^
horses.cpp:91:17: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
91 | int ARR=arr[idx];
| ~~~~~~~^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:98:23: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
98 | arr[pos]*=power(y[pos],MOD-2); arr[pos]%=MOD;
| ~~~~~^
horses.cpp:118:17: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
118 | int ARR=arr[idx];
| ~~~~~~~^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:62:17: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized]
62 | int ARR=arr[idx];
| ~~~~~~~^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:91:17: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized]
91 | int ARR=arr[idx];
| ~~~~~~~^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:118:17: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized]
118 | int ARR=arr[idx];
| ~~~~~~~^