exam.cpp: In function 'int main()':
exam.cpp:6:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
6 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
exam.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf("%d", &a[i]);
| ~~~~~^~~~~~~~~~~~~
exam.cpp:13:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | scanf("%d", &b[i]);
| ~~~~~^~~~~~~~~~~~~