Village.cpp:28:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
28 | main(){
| ^~~~
Village.cpp: In function 'int main()':
Village.cpp:31:35: warning: iteration 200000 invokes undefined behavior [-Waggressive-loop-optimizations]
31 | for(int i = 0;i <= N; i++) dp[i] = -1;
| ~~~~~~^~~~
Village.cpp:31:18: note: within this loop
31 | for(int i = 0;i <= N; i++) dp[i] = -1;
| ~~^~~~
Village.cpp:31:35: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [1600000, 1600007] is out of the bounds [0, 1600000] of object 'dp' with type 'long long int [200000]' [-Warray-bounds]
31 | for(int i = 0;i <= N; i++) dp[i] = -1;
| ~~~~~~^~~~
Village.cpp:11:5: note: 'dp' declared here
11 | int dp[N];
| ^~