Problem1001--位置

1001: 位置

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

已知一个长度为10且已经按照从小到大排序的整形数组,要求对于输入的每一个整数,判断该数在数组中的位置并且输出。如果数组中不存在这个数,输出error.

Input

输入10个数,顺序从小到大,输入一个n ,n代表随后要查找n次,随后输入n个要查找的数。

Output

输出查找的结果。

Sample Input Copy

1 2 3 4 5 6 7 8 9 10
5
1
4
7
8
11

Sample Output Copy

1
4
7
8
error

Source/Category