horses.cpp: In function 'int Sol2::getPrev2Id(int)':
horses.cpp:23:7: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
23 | i += pow2;
| ~~^~~~~~~
horses.cpp:36:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
36 | return i-pow2;
| ~^~~~~
horses.cpp: In function 'int Sol2::getMax(ll, ll)':
horses.cpp:47:12: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
47 | return res;
| ^~~
horses.cpp: In function 'void Sol2::setX(int, int)':
horses.cpp:53:20: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
53 | int old = x[pos];
| ^
horses.cpp:55:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
55 | pos += pow2;
| ~~~~^~~~~~~
horses.cpp: In function 'int Sol2::getOFId(int, ll)':
horses.cpp:111:28: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
111 | if (i >= pow2) return i-pow2;
| ~^~~~~
horses.cpp: In function 'int Sol2::getMulMod(int)':
horses.cpp:117:15: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
117 | int low = pow2, high = pow2+i;
| ^~~~
horses.cpp:117:32: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
117 | int low = pow2, high = pow2+i;
| ~~~~^~
horses.cpp:124:16: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
124 | return res % MOD;
| ^
horses.cpp: In function 'int Sol2::calc()':
horses.cpp:130:27: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
130 | ll offCnt = getMulMod(ofId);
| ^~~~
horses.cpp:139:18: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
139 | for (int i = ofId; i < n; i = lnk[i]) {
| ^~~~
horses.cpp:139:40: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
139 | for (int i = ofId; i < n; i = lnk[i]) {
| ^
horses.cpp:149:12: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
149 | return mxRes;
| ^~~~~
horses.cpp: In function 'int Sol2::init(int, int*, int*)':
horses.cpp:159:19: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
159 | for (int i = n-1; i >= 0; i--) {
| ~^~
horses.cpp:172:22: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
172 | for (int i = pow2-1; i > 0; i--) {
| ~~~~^~
horses.cpp:180:37: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
180 | for (int i = 0; i < n; i = lnk[i]) {
| ^
horses.cpp: In function 'int Sol2::updateX(int, int)':
horses.cpp:193:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
193 | return v;
| ^
horses.cpp:190:8: warning: unused variable 'val111' [-Wunused-variable]
190 | ll val111 = effY[3493];
| ^~~~~~
horses.cpp:191:8: warning: unused variable 'id' [-Wunused-variable]
191 | ll id = find(y.begin(), y.end(), 999825195) - y.begin();
| ^~
horses.cpp: In function 'int Sol2::updateY(int, int)':
horses.cpp:200:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
200 | return v;
| ^
horses.cpp:197:10: warning: unused variable 'hi' [-Wunused-variable]
197 | bool hi = true;
| ^~
horses.cpp: At global scope:
horses.cpp:201:1: error: expected '}' at end of input
201 | }
| ^
horses.cpp:7:16: note: to match this '{'
7 | namespace Sol2 {
| ^