how can i check if one number is smaller than other table ?

I have to insert a number a that appears how many bread we have . after we want the diameter of the bread and the diameter for the base of the bread for each bread . i have to check for every bread if its diameter is smaller than the base diameter i write this but i don't have right answer.
can anyone help me ?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include<iostream>
using namespace std;

int main (){
int a,z,p,b ;
int num;
int t;
num=2*a;
cin>>a;
for (int i = 0; i < a; i++) {
cin>>p;
}
for (int i = 0; i < a; i++) {
cin>>b;
}
if (p<=b){
    t++;
}
cout<<t<<endl;

return 0 ;
}
closed account (48T7M4Gy)
http://www.cplusplus.com/forum/beginner/176482/
Topic archived. No new replies allowed.