horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:45:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
45 | return ans;
| ^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:48:17: warning: unused parameter 'pos' [-Wunused-parameter]
48 | int updateX(int pos, int val) {
| ~~~~^~~
horses.cpp:48:26: warning: unused parameter 'val' [-Wunused-parameter]
48 | int updateX(int pos, int val) {
| ~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:52:17: warning: unused parameter 'pos' [-Wunused-parameter]
52 | int updateY(int pos, int val) {
| ~~~~^~~
horses.cpp:52:26: warning: unused parameter 'val' [-Wunused-parameter]
52 | int updateY(int pos, int val) {
| ~~~~^~~
horses.cpp: At global scope:
horses.cpp:8:27: warning: '_outputFile' defined but not used [-Wunused-variable]
8 | static FILE *_inputFile, *_outputFile;
| ^~~~~~~~~~~
horses.cpp:8:14: warning: '_inputFile' defined but not used [-Wunused-variable]
8 | static FILE *_inputFile, *_outputFile;
| ^~~~~~~~~~
horses.cpp:7:12: warning: '_charsNumber' defined but not used [-Wunused-variable]
7 | static int _charsNumber = 0;
| ^~~~~~~~~~~~
horses.cpp:6:12: warning: '_currentChar' defined but not used [-Wunused-variable]
6 | static int _currentChar = 0;
| ^~~~~~~~~~~~
horses.cpp:5:13: warning: '_buffer' defined but not used [-Wunused-variable]
5 | static char _buffer[1024];
| ^~~~~~~