0_0_13806456_25615.cpp:1:586: fatal error: GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/iostream>usin: Invalid argument
#include<iostream>using namespace std;int f[26];int temp[26];char str[10001];int main(){ //freopen("a.txt","r",stdin); int cas; scanf("%d",&cas); while(cas--){ memset(f,0,sizeof(f)); scanf("%s",str); for(int i=0;i<strlen(str);i++){ f[str[i]-'A']++; } int number; scanf("%d",&number); while(number--){ bool flag=true; for(i=0;i<26;i++){ temp[i]=f[i]; } scanf("%s",str); for(i=0;i<strlen(str);i++){ if(temp[str[i]-'A']>0){ temp[str[i]-'A']--; }else{ flag=false; break; } } if(flag){ printf("YES\n"); }else{ printf("NO\n"); } } }}
^
compilation terminated.
|