horses.cpp: In function 'long long int init(int, int*, int*)':
horses.cpp:25:8: warning: unused variable 'final' [-Wunused-variable]
25 | ll final = 0;
| ^~~~~
horses.cpp:28:8: warning: unused variable 'ans' [-Wunused-variable]
28 | ll ans = 0;
| ^~~
horses.cpp:31:8: warning: unused variable 'prev' [-Wunused-variable]
31 | ll prev =1;
| ^~~~
horses.cpp:32:14: warning: unused variable 'cleft' [-Wunused-variable]
32 | ll ccnt, cleft, cl;
| ^~~~~
horses.cpp:38:17: warning: 'ccnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
38 | ccnt++;
| ~~~~^~
/usr/bin/ld: /tmp/ccFhYsuU.o: in function `main':
grader.c:(.text.startup+0x16d): undefined reference to `updateY(int, int)'
collect2: error: ld returned 1 exit status