horses.cpp: In function 'int solve()':
horses.cpp:17:10: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
17 | return ans;
| ^~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:21:12: error: incompatible types in assignment of 'int*' to 'int [500001]'
21 | n = N; x = X; y = Y; return solve;
| ~~^~~
horses.cpp:21:19: error: incompatible types in assignment of 'int*' to 'int [500001]'
21 | n = N; x = X; y = Y; return solve;
| ~~^~~
horses.cpp:21:31: error: invalid conversion from 'int (*)()' to 'int' [-fpermissive]
21 | n = N; x = X; y = Y; return solve;
| ^~~~~
| |
| int (*)()
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:26:1: warning: no return statement in function returning non-void [-Wreturn-type]
26 | }
| ^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:29:1: warning: no return statement in function returning non-void [-Wreturn-type]
29 | }
| ^