remittance.cpp: In function 'int main()':
remittance.cpp:6:19: warning: unused variable 'j' [-Wunused-variable]
long long extra, j=0;
^
remittance.cpp:7:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
remittance.cpp:8:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1;i<=n;i++)scanf("%lld %lld", &A[i], &B[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~