array.cpp: In function 'int getAns(int, int)':
array.cpp:16:93: error: 'max' was not declared in this scope
array.cpp:16:94: error: 'min' was not declared in this scope
array.cpp:17:93: error: 'max' was not declared in this scope
array.cpp:17:94: error: 'min' was not declared in this scope
array.cpp: In function 'int main()':
array.cpp:25:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
array.cpp:28:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]