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:29:27: warning: unused variable 'prev' [-Wunused-variable]
29 | ll cnt = 0, left = 0, prev =1;
| ^~~~
horses.cpp:30:18: warning: unused variable 'cleft' [-Wunused-variable]
30 | ll ccnt = 0, cleft= 0, cl=0;
| ^~~~~
horses.cpp: In function 'long long int updateX(int, int)':
horses.cpp:72:8: warning: unused variable 'final' [-Wunused-variable]
72 | ll final = 0;
| ^~~~~
horses.cpp:76:27: warning: unused variable 'prev' [-Wunused-variable]
76 | ll cnt = 0, left = 0, prev =1;
| ^~~~
horses.cpp:77:18: warning: unused variable 'cleft' [-Wunused-variable]
77 | ll ccnt = 0, cleft= 0, cl=0;
| ^~~~~
horses.cpp: In function 'long long int updateY(int, int)':
horses.cpp:115:8: warning: unused variable 'final' [-Wunused-variable]
115 | ll final = 0;
| ^~~~~
horses.cpp:119:27: warning: unused variable 'prev' [-Wunused-variable]
119 | ll cnt = 0, left = 0, prev =1;
| ^~~~
horses.cpp:120:18: warning: unused variable 'cleft' [-Wunused-variable]
120 | ll ccnt = 0, cleft= 0, cl=0;
| ^~~~~
horses.cpp: In function 'int main()':
horses.cpp:158:9: warning: declaration of 'n' shadows a global declaration [-Wshadow]
158 | int n;
| ^
horses.cpp:11:5: note: shadowed declaration is here
11 | int n ;
| ^
/usr/bin/ld: /tmp/ccemjHW7.o: in function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'; /tmp/ccCpcwE8.o:horses.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status