|
|
вернуться в форумWHY IS IT CRASHING?? PLSSSSS ANS It is my code ..pls check it and ans me why is it crashing?? #include<stdio.h> int main() { int f[20],n,i,j,s[20],m=0,k; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&f[i]);
scanf("%d",&k); for(j=0;j<k;j++) scanf("%d",&s[j]); for(i=0;i<n;i++){ for(j=0;j<k;j++) if(f[i]+s[j]==10000){ m=1; break; } } if(m==0) printf("NO\n"); else printf("YES\n"); return 0; } |
|
|