- #include<stdio.h>
- #include<string.h>
- char k[10000][50],l[50];
- int main()
- {
- int a,b;
- freopen("1.txt","r",stdin);
- a=0;
- while(gets(k[a]))
- {
- a++;
- }
- freopen("2.txt","r",stdin);
- freopen("3.txt","w",stdout);
- b=0;
- while(gets(l))
- {
- printf("%d -> %d\n",b,strcmp(l,k[b]));
- b++;
- }
- return 0;
- }