olivander.cpp: In function 'int main()':
olivander.cpp:11:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("read.txt","r",stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
olivander.cpp:13:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
olivander.cpp:14:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i = 0; i<n; ++i)scanf("%d", x+i);
~~~~~^~~~~~~~~~~
olivander.cpp:15:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i = 0; i<n; ++i)scanf("%d", y+i);
~~~~~^~~~~~~~~~~