horses.cpp: In function 'int init(int, long long int*, long long int*)':
horses.cpp:14:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
14 | return res % mod;
| ~~~~^~~~~
/usr/bin/ld: /tmp/ccRDYh4p.o: in function `main':
grader.c:(.text.startup+0xaa): undefined reference to `init(int, int*, int*)'
/usr/bin/ld: grader.c:(.text.startup+0x113): undefined reference to `updateX(int, int)'
/usr/bin/ld: grader.c:(.text.startup+0x16d): undefined reference to `updateY(int, int)'
collect2: error: ld returned 1 exit status