0_0_28678497_23480.cpp: In function 'int main()':
0_0_28678497_23480.cpp:10:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(i=1;i<=n;i++) cin>>a[i]>>b[i];
^
0_0_28678497_23480.cpp:14:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(v>=b[i]&&v>=a[i])v=v-a[i];
^
0_0_28678497_23480.cpp:14:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(v>=b[i]&&v>=a[i])v=v-a[i];
^
0_0_28678497_23480.cpp:14:28: error: incompatible types in assignment of 'long int*' to 'long int [1005]'
if(v>=b[i]&&v>=a[i])v=v-a[i];
^
|