prog.cpp: In function ‘int maxSubarrayXOR(int*, int)’:
prog.cpp:4:15: error: ‘INT_MIN’ was not declared in this scope
int ans = INT_MIN; // Initialize result
^~~~~~~
prog.cpp:4:15: note: ‘INT_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
prog.cpp:1:1:
+#include <climits>
//function for problem
prog.cpp:4:15:
int ans = INT_MIN; // Initialize result
^~~~~~~
prog.cpp:15:19: error: ‘max’ was not declared in this scope
ans = max(ans, curr_xor);
^~~