horses.c: In function 'pul':
horses.c:16:12: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
16 | prod[i] = min((long long) prod[l] * prod[r], INF);
| ^~~
horses.c:17:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
17 | prod_[i] = (long long) prod_[l] * prod_[r] % MD;
| ^
horses.c:21:43: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
21 | pp[i] = pp[r], qq[i] = qq[r], suf_[i] = (long long) prod_[l] * suf_[r] % MD;
| ^
horses.c: In function 'init':
horses.c:27:20: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
27 | memcpy(xx, xx_, n * sizeof *xx_), memcpy(yy, yy_, n * sizeof *yy_);
| ^
horses.c:27:54: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
27 | memcpy(xx, xx_, n * sizeof *xx_), memcpy(yy, yy_, n * sizeof *yy_);
| ^
horses.c:33:66: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
33 | pp[n_ + i] = i < n ? yy[i] : 0, qq[n_ + i] = 1, suf_[n_ + i] = (long long) xx[i] * (i < n ? yy[i] : 0) % MD;
| ^
horses.c: In function 'updateX':
horses.c:42:55: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
42 | prod[n_ + i] = prod_[n_ + i] = xx[i], suf_[n_ + i] = (long long) xx[i] * yy[i] % MD;
| ^
horses.c: In function 'updateY':
horses.c:51:53: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
51 | pp[n_ + i] = yy[i], qq[n_ + i] = 1, suf_[n_ + i] = (long long) xx[i] * yy[i] % MD;
| ^