horses.cpp: In function 'long long int init(int, int*, int*)':
horses.cpp:35:8: warning: unused variable 'final' [-Wunused-variable]
35 | ll final = 0;
| ^~~~~
horses.cpp:39:27: warning: unused variable 'prev' [-Wunused-variable]
39 | ll cnt = 0, left = 0, prev =1;
| ^~~~
horses.cpp:40:28: warning: unused variable 'cl' [-Wunused-variable]
40 | ll ccnt = 0, cleft= 0, cl=0;
| ^~
horses.cpp: In function 'long long int updateX(int, int)':
horses.cpp:87:9: warning: unused variable 'final' [-Wunused-variable]
87 | ll final = 0;
| ^~~~~
horses.cpp:91:27: warning: unused variable 'prev' [-Wunused-variable]
91 | ll cnt = 0, left = 0, prev =1;
| ^~~~
horses.cpp:92:28: warning: unused variable 'cl' [-Wunused-variable]
92 | ll ccnt = 0, cleft= 0, cl=0;
| ^~
horses.cpp: In function 'long long int updateY(int, int)':
horses.cpp:137:9: warning: unused variable 'final' [-Wunused-variable]
137 | ll final = 0;
| ^~~~~
horses.cpp:141:27: warning: unused variable 'prev' [-Wunused-variable]
141 | ll cnt = 0, left = 0, prev =1;
| ^~~~
horses.cpp:142:28: warning: unused variable 'cl' [-Wunused-variable]
142 | ll ccnt = 0, cleft= 0, cl=0;
| ^~
horses.cpp: In function 'int main()':
horses.cpp:181:9: warning: declaration of 'n' shadows a global declaration [-Wshadow]
181 | int n;
| ^
horses.cpp:11:5: note: shadowed declaration is here
11 | int n ;
| ^
/usr/bin/ld: /tmp/ccLB6JJ6.o: in function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'; /tmp/cc1Nj4a4.o:horses.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status